diff --git a/src/lib/components/chat/Settings/Tools/Connection.svelte b/src/lib/components/chat/Settings/Tools/Connection.svelte index 05888eadd..df4908aac 100644 --- a/src/lib/components/chat/Settings/Tools/Connection.svelte +++ b/src/lib/components/chat/Settings/Tools/Connection.svelte @@ -3,6 +3,7 @@ const i18n = getContext('i18n'); import Tooltip from '$lib/components/common/Tooltip.svelte'; + import Switch from '$lib/components/common/Switch.svelte'; import SensitiveInput from '$lib/components/common/SensitiveInput.svelte'; import Cog6 from '$lib/components/icons/Cog6.svelte'; import ConfirmDialog from '$lib/components/common/ConfirmDialog.svelte'; @@ -67,7 +68,7 @@ -
+
+ + + { + if (!connection.config) connection.config = {}; + connection.config.enable = !(connection?.config?.enable ?? true); + onSubmit(connection); + }} + /> +