XFE Git
XFE Studio Git
Git 首页 全局搜索
XFE 主站 文档 NuGet
公开
关注 0 Fork 0 Star 1
返回提交历史

XFEstudio/gpt4free

feat: add custom header to deepai

ba7d5015
Giancarlo-Ma <65126107+Giancarlo-Ma@users.noreply.github.com>
提交于

代码差异

1 个文件 +1 -0
Modified g4f/Provider/DeepAi.py +1 -0
@@ -52,6 +52,7 @@ f = function () {
52 52 headers = {
53 53 "api-key": api_key,
54 54 "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",
55 **kwargs.get("headers", {})
55 56 }
56 57 async with ClientSession(
57 58 headers=headers