Merge pull request #971 from Giancarlo-Ma/main

feat: allow to add custom header to deepai
This commit is contained in:
Tekky 2023-10-02 18:56:00 +02:00 committed by GitHub
commit c915050ac7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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