Merge pull request #971 from Giancarlo-Ma/main

feat: allow to add custom header to deepai
pull/985/head
Tekky 9 months ago committed by GitHub
commit c915050ac7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save