From 4cea3a57be18869eb2b9dc2484b80a9cb0a68619 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Mon, 8 Sep 2025 19:09:26 +0400 Subject: [PATCH] refac --- backend/open_webui/utils/tools.py | 3 +++ src/lib/components/AddServerModal.svelte | 8 ++++++++ 2 files changed, 11 insertions(+) diff --git a/backend/open_webui/utils/tools.py b/backend/open_webui/utils/tools.py index f7e7f7acef..74974e1461 100644 --- a/backend/open_webui/utils/tools.py +++ b/backend/open_webui/utils/tools.py @@ -127,6 +127,9 @@ async def get_tools( headers["Authorization"] = ( f"Bearer {tool_server_connection.get('key', '')}" ) + elif auth_type == "none": + # No authentication + pass elif auth_type == "session": cookies = request.cookies headers["Authorization"] = ( diff --git a/src/lib/components/AddServerModal.svelte b/src/lib/components/AddServerModal.svelte index fdd905aef0..fd70534d28 100644 --- a/src/lib/components/AddServerModal.svelte +++ b/src/lib/components/AddServerModal.svelte @@ -283,6 +283,8 @@ class={`w-full text-sm bg-transparent pr-5 ${($settings?.highContrastMode ?? false) ? 'placeholder:text-gray-700 dark:placeholder:text-gray-100' : 'outline-hidden placeholder:text-gray-300 dark:placeholder:text-gray-700'}`} bind:value={auth_type} > + + @@ -299,6 +301,12 @@ placeholder={$i18n.t('API Key')} required={false} /> + {:else if auth_type === 'none'} +
+ {$i18n.t('No authentication')} +
{:else if auth_type === 'session'}