refac/fix

This commit is contained in:
Timothy Jaeryang Baek
2025-11-16 00:30:03 -05:00
parent 8f48e96f5e
commit 80388855f4
3 changed files with 5 additions and 5 deletions

View File

@@ -1380,7 +1380,7 @@ async def process_chat_payload(request, form_data, user, metadata, model):
oauth_token = None
connection_headers = mcp_server_connection.get("headers", None)
if connection_headers:
if connection_headers and isinstance(connection_headers, dict):
for key, value in connection_headers.items():
headers[key] = value