diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-02-28 09:48:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-28 09:48:57 +0100 |
commit | 96db520ff030cd0beae8b469876013b8f18b793a (patch) | |
tree | 0d2d6cf85371cc454279bd454ae851ca0fee930a /g4f/Provider/ChatgptNext.py | |
parent | Merge pull request #1635 from hlohaus/flow (diff) | |
parent | Add websocket support in OpenaiChat (diff) | |
download | gpt4free-96db520ff030cd0beae8b469876013b8f18b793a.tar gpt4free-96db520ff030cd0beae8b469876013b8f18b793a.tar.gz gpt4free-96db520ff030cd0beae8b469876013b8f18b793a.tar.bz2 gpt4free-96db520ff030cd0beae8b469876013b8f18b793a.tar.lz gpt4free-96db520ff030cd0beae8b469876013b8f18b793a.tar.xz gpt4free-96db520ff030cd0beae8b469876013b8f18b793a.tar.zst gpt4free-96db520ff030cd0beae8b469876013b8f18b793a.zip |
Diffstat (limited to '')
-rw-r--r-- | g4f/Provider/ChatgptNext.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/g4f/Provider/ChatgptNext.py b/g4f/Provider/ChatgptNext.py index c107a0bf..1ae37bd5 100644 --- a/g4f/Provider/ChatgptNext.py +++ b/g4f/Provider/ChatgptNext.py @@ -4,8 +4,7 @@ import json from aiohttp import ClientSession from ..typing import AsyncResult, Messages -from .base_provider import AsyncGeneratorProvider -from .helper import format_prompt +from ..providers.base_provider import AsyncGeneratorProvider class ChatgptNext(AsyncGeneratorProvider): @@ -24,7 +23,7 @@ class ChatgptNext(AsyncGeneratorProvider): if not model: model = "gpt-3.5-turbo" headers = { - "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/119.0", + "User-Agent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:122.0) Gecko/20100101 Firefox/122.0", "Accept": "text/event-stream", "Accept-Language": "de,en-US;q=0.7,en;q=0.3", "Accept-Encoding": "gzip, deflate, br", |