mirror of
https://github.com/xtekky/gpt4free.git
synced 2024-09-12 00:29:27 -04:00
Merge pull request #971 from Giancarlo-Ma/main
feat: allow to add custom header to deepai
This commit is contained in:
commit
c915050ac7
@ -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