summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/Aibn.py
diff options
context:
space:
mode:
authorHeiner Lohaus <heiner@lohaus.eu>2023-10-02 06:47:07 +0200
committerHeiner Lohaus <heiner@lohaus.eu>2023-10-02 06:47:07 +0200
commitd116f043227f789d6582bc12f69ea4ee7a9330ea (patch)
treed8a07c23a8172e26004560e4d6b08982f637e71c /g4f/Provider/Aibn.py
parentRemove fake_useragent module (diff)
downloadgpt4free-d116f043227f789d6582bc12f69ea4ee7a9330ea.tar
gpt4free-d116f043227f789d6582bc12f69ea4ee7a9330ea.tar.gz
gpt4free-d116f043227f789d6582bc12f69ea4ee7a9330ea.tar.bz2
gpt4free-d116f043227f789d6582bc12f69ea4ee7a9330ea.tar.lz
gpt4free-d116f043227f789d6582bc12f69ea4ee7a9330ea.tar.xz
gpt4free-d116f043227f789d6582bc12f69ea4ee7a9330ea.tar.zst
gpt4free-d116f043227f789d6582bc12f69ea4ee7a9330ea.zip
Diffstat (limited to 'g4f/Provider/Aibn.py')
-rw-r--r--g4f/Provider/Aibn.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/g4f/Provider/Aibn.py b/g4f/Provider/Aibn.py
index fe278f84..df56189b 100644
--- a/g4f/Provider/Aibn.py
+++ b/g4f/Provider/Aibn.py
@@ -4,7 +4,7 @@ import time
import hashlib
from ..typing import AsyncGenerator
-from ..requests import StreamRequest
+from ..requests import StreamSession
from .base_provider import AsyncGeneratorProvider
@@ -20,7 +20,7 @@ class Aibn(AsyncGeneratorProvider):
messages: list[dict[str, str]],
**kwargs
) -> AsyncGenerator:
- async with StreamRequest(impersonate="chrome107") as session:
+ async with StreamSession(impersonate="chrome107") as session:
timestamp = int(time.time())
data = {
"messages": messages,