diff --git a/ui/components/SettingsDialog.tsx b/ui/components/SettingsDialog.tsx index 2487c71..671ec52 100644 --- a/ui/components/SettingsDialog.tsx +++ b/ui/components/SettingsDialog.tsx @@ -93,10 +93,12 @@ const SettingsDialog = ({ Settings {config && !isLoading && ( -
+
{config.providers && (
-

LLM Provider

+

+ Chat model Provider +

)} - {config.selectedProvider === 'openai' && ( -
-

OpenAI API Key

- - setConfig({ - ...config, - openeaiApiKey: e.target.value, - }) - } - className="bg-[#111111] px-3 py-2 flex items-center overflow-hidden border border-[#1C1C1C] text-white rounded-lg text-sm" - /> -
- )} - {config.selectedProvider === 'ollama' && ( -
-

Ollama API URL

- - setConfig({ - ...config, - ollamaApiUrl: e.target.value, - }) - } - className="bg-[#111111] px-3 py-2 flex items-center overflow-hidden border border-[#1C1C1C] text-white rounded-lg text-sm" - /> -
- )} +
+

OpenAI API Key

+ + setConfig({ + ...config, + openeaiApiKey: e.target.value, + }) + } + className="bg-[#111111] px-3 py-2 flex items-center overflow-hidden border border-[#1C1C1C] text-white rounded-lg text-sm" + /> +
+
+

Ollama API URL

+ + setConfig({ + ...config, + ollamaApiUrl: e.target.value, + }) + } + className="bg-[#111111] px-3 py-2 flex items-center overflow-hidden border border-[#1C1C1C] text-white rounded-lg text-sm" + /> +
)} {isLoading && ( @@ -211,9 +211,9 @@ const SettingsDialog = ({ disabled={isLoading || isUpdating} > {isUpdating ? ( - + ) : ( - + )}