feat: add custom header to deepai

This commit is contained in:
Giancarlo-Ma 2023-10-02 21:47:21 +08:00 committed by GitHub
parent a4da030d67
commit ba7d5015dc
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