summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g4f/Provider/DeepAi.py1
-rw-r--r--g4f/__init__.py4
2 files changed, 3 insertions, 2 deletions
diff --git a/g4f/Provider/DeepAi.py b/g4f/Provider/DeepAi.py
index 676f901e..7239f6ac 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
diff --git a/g4f/__init__.py b/g4f/__init__.py
index 01481f16..cd900e77 100644
--- a/g4f/__init__.py
+++ b/g4f/__init__.py
@@ -5,7 +5,7 @@ from .typing import Any, CreateResult, Union
from requests import get
logging = False
-version = '0.1.4.4'
+version = '0.1.4.6'
def check_pypi_version():
try:
@@ -104,4 +104,4 @@ class Completion:
result = provider.create_completion(model.name,
[{"role": "user", "content": prompt}], stream, **kwargs)
- return result if stream else ''.join(result) \ No newline at end of file
+ return result if stream else ''.join(result)