diff --git a/src/lib/components/AddServerModal.svelte b/src/lib/components/AddServerModal.svelte index ca07e8b88..d0f79c576 100644 --- a/src/lib/components/AddServerModal.svelte +++ b/src/lib/components/AddServerModal.svelte @@ -25,7 +25,7 @@ export let connection = null; let url = ''; - let openApiPath = '/openapi.json'; + let path = '/openapi.json'; let auth_type = 'bearer'; let key = ''; @@ -42,6 +42,8 @@ const connection = { url, + path, + auth_type, key, config: { enable: enable @@ -55,15 +57,18 @@ url = ''; key = ''; + path = '/openapi.json'; + auth_type = 'bearer'; + enable = true; }; const init = () => { if (connection) { url = connection.url; - openApiPath = connection.openApiPath ?? '/openapi.json'; + path = connection?.path ?? '/openapi.json'; - auth_type = connection.auth_type ?? 'bearer'; + auth_type = connection?.auth_type ?? 'bearer'; key = connection?.key ?? ''; enable = connection.config?.enable ?? true; @@ -137,7 +142,7 @@ {$i18n.t(`WebUI will make requests to "{{url}}{{path}}"`, { url: url, - path: openApiPath + path: path })} diff --git a/src/lib/components/chat/Settings/Tools.svelte b/src/lib/components/chat/Settings/Tools.svelte index 7195fc699..bb207ce7f 100644 --- a/src/lib/components/chat/Settings/Tools.svelte +++ b/src/lib/components/chat/Settings/Tools.svelte @@ -74,9 +74,7 @@