diff --git a/ui/app/settings/page.tsx b/ui/app/settings/page.tsx index 371d091..6aff1b0 100644 --- a/ui/app/settings/page.tsx +++ b/ui/app/settings/page.tsx @@ -563,12 +563,16 @@ const Page = () => { - setConfig({ - ...config, + value={config.customOpenaiModelName} + isSaving={savingStates['customOpenaiModelName']} + onChange={(e: React.ChangeEvent) => { + setConfig((prev) => ({ + ...prev!, customOpenaiModelName: e.target.value, - }) + })); + }} + onSave={(value) => + saveConfig('customOpenaiModelName', value) } /> @@ -579,12 +583,16 @@ const Page = () => { - setConfig({ - ...config, + value={config.customOpenaiApiKey} + isSaving={savingStates['customOpenaiApiKey']} + onChange={(e: React.ChangeEvent) => { + setConfig((prev) => ({ + ...prev!, customOpenaiApiKey: e.target.value, - }) + })); + }} + onSave={(value) => + saveConfig('customOpenaiApiKey', value) } /> @@ -595,12 +603,16 @@ const Page = () => { - setConfig({ - ...config, + value={config.customOpenaiApiUrl} + isSaving={savingStates['customOpenaiApiUrl']} + onChange={(e: React.ChangeEvent) => { + setConfig((prev) => ({ + ...prev!, customOpenaiApiUrl: e.target.value, - }) + })); + }} + onSave={(value) => + saveConfig('customOpenaiApiUrl', value) } />