From ba7d5015dcad5c88c07fee88c74aef09d1894a04 Mon Sep 17 00:00:00 2001 From: Giancarlo-Ma <65126107+Giancarlo-Ma@users.noreply.github.com> Date: Mon, 2 Oct 2023 21:47:21 +0800 Subject: feat: add custom header to deepai --- g4f/Provider/DeepAi.py | 1 + 1 file changed, 1 insertion(+) (limited to 'g4f/Provider/DeepAi.py') diff --git a/g4f/Provider/DeepAi.py b/g4f/Provider/DeepAi.py index 80126d20..f08f17bb 100644 --- a/g4f/Provider/DeepAi.py +++ b/g4f/Provider/DeepAi.py @@ -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 -- cgit v1.2.3