refac: openai additional headers support

This commit is contained in:
Timothy Jaeryang Baek
2025-10-03 00:23:26 -05:00
parent 7e70f8d2c1
commit f25b7b73b4
2 changed files with 67 additions and 1 deletions
+3
View File
@@ -190,6 +190,9 @@ async def get_headers_and_cookies(
if token:
headers["Authorization"] = f"Bearer {token}"
if config.get("headers") and isinstance(config.get("headers"), dict):
headers = {**headers, **config.get("headers")}
return headers, cookies