This commit is contained in:
Timothy Jaeryang Baek
2026-04-01 06:40:49 -05:00
parent 2734fcad63
commit 60676bfdcf
2 changed files with 3 additions and 3 deletions

View File

@@ -2512,7 +2512,7 @@ async def process_chat_payload(request, form_data, user, metadata, model):
oauth_token = extra_params.get('__oauth_token__', None)
if oauth_token:
headers['Authorization'] = f'Bearer {oauth_token.get("access_token", "")}'
elif auth_type == 'oauth_2.1':
elif auth_type in ('oauth_2.1', 'oauth_2.1_static'):
try:
splits = server_id.split(':')
server_id = splits[-1] if len(splits) > 1 else server_id