diff --git a/backend/open_webui/routers/openai.py b/backend/open_webui/routers/openai.py index d7b5f75260..184f47038d 100644 --- a/backend/open_webui/routers/openai.py +++ b/backend/open_webui/routers/openai.py @@ -166,7 +166,7 @@ def get_headers_and_cookies( elif auth_type == "session": cookies = request.cookies token = request.state.token.credentials - elif auth_type == "oauth": + elif auth_type == "system_oauth": cookies = request.cookies oauth_token = None diff --git a/backend/open_webui/utils/tools.py b/backend/open_webui/utils/tools.py index fd441df9e1..0ef0cf47fb 100644 --- a/backend/open_webui/utils/tools.py +++ b/backend/open_webui/utils/tools.py @@ -135,7 +135,7 @@ async def get_tools( headers["Authorization"] = ( f"Bearer {request.state.token.credentials}" ) - elif auth_type == "oauth": + elif auth_type == "system_oauth": cookies = request.cookies oauth_token = extra_params.get("__oauth_token__", None) if oauth_token: diff --git a/src/lib/components/AddConnectionModal.svelte b/src/lib/components/AddConnectionModal.svelte index 900dc74d2b..fb4da3175f 100644 --- a/src/lib/components/AddConnectionModal.svelte +++ b/src/lib/components/AddConnectionModal.svelte @@ -330,7 +330,7 @@ {#if !ollama} {#if !direct} - + {/if} {/if} @@ -355,7 +355,7 @@ > {$i18n.t('Forwards system user session credentials to authenticate')} - {:else if auth_type === 'oauth'} + {:else if auth_type === 'system_oauth'}