mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-11-19 03:25:32 +00:00
feat: add custom header to deepai
This commit is contained in:
parent
a4da030d67
commit
ba7d5015dc
@ -52,6 +52,7 @@ f = function () {
|
||||
headers = {
|
||||
"api-key": api_key,
|
||||
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36",
|
||||
**kwargs.get("headers", {})
|
||||
}
|
||||
async with ClientSession(
|
||||
headers=headers
|
||||
|
Loading…
Reference in New Issue
Block a user