diff --git a/src/lib/components/admin/Settings/Connections/OpenAIConnection.svelte b/src/lib/components/admin/Settings/Connections/OpenAIConnection.svelte index bab6c773a..fe8cfb809 100644 --- a/src/lib/components/admin/Settings/Connections/OpenAIConnection.svelte +++ b/src/lib/components/admin/Settings/Connections/OpenAIConnection.svelte @@ -45,7 +45,7 @@ })} placement="top-start" > - {#if !(config?.enabled ?? true)} + {#if !(config?.enable ?? true)}
diff --git a/src/lib/components/admin/Settings/Connections/OpenAIConnectionModal.svelte b/src/lib/components/admin/Settings/Connections/OpenAIConnectionModal.svelte index 4c24898b9..c27567412 100644 --- a/src/lib/components/admin/Settings/Connections/OpenAIConnectionModal.svelte +++ b/src/lib/components/admin/Settings/Connections/OpenAIConnectionModal.svelte @@ -26,7 +26,7 @@ let key = ''; let prefixId = ''; - let enabled = true; + let enable = true; let modelId = ''; let modelIds = []; @@ -63,7 +63,7 @@ url, key, config: { - enabled: enabled, + enable: enable, prefix_id: prefixId, model_ids: modelIds } @@ -85,7 +85,7 @@ url = connection.url; key = connection.key; - enabled = connection.config?.enabled ?? true; + enable = connection.config?.enable ?? true; prefixId = connection.config?.prefix_id ?? ''; modelIds = connection.config?.model_ids ?? []; } @@ -179,8 +179,8 @@