refac: openai additional headers support
This commit is contained in:
1 parent
7e70f8d2c1
commit
f25b7b73b4
2 files changed
+67
-1
No files matched your search
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user