summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/needs_auth
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2024-05-19 05:09:55 +0200
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2024-05-19 05:09:55 +0200
commit19944818724c98d2f06a10f619acf622ba0876ad (patch)
treed2c8889a24524895c026b6b8d2a428eacf37757e /g4f/Provider/needs_auth
parentAdd dark mode config, slide system prompt (diff)
downloadgpt4free-19944818724c98d2f06a10f619acf622ba0876ad.tar
gpt4free-19944818724c98d2f06a10f619acf622ba0876ad.tar.gz
gpt4free-19944818724c98d2f06a10f619acf622ba0876ad.tar.bz2
gpt4free-19944818724c98d2f06a10f619acf622ba0876ad.tar.lz
gpt4free-19944818724c98d2f06a10f619acf622ba0876ad.tar.xz
gpt4free-19944818724c98d2f06a10f619acf622ba0876ad.tar.zst
gpt4free-19944818724c98d2f06a10f619acf622ba0876ad.zip
Diffstat (limited to 'g4f/Provider/needs_auth')
-rw-r--r--g4f/Provider/needs_auth/OpenaiChat.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/g4f/Provider/needs_auth/OpenaiChat.py b/g4f/Provider/needs_auth/OpenaiChat.py
index d8ea4fad..f40ae961 100644
--- a/g4f/Provider/needs_auth/OpenaiChat.py
+++ b/g4f/Provider/needs_auth/OpenaiChat.py
@@ -373,6 +373,7 @@ class OpenaiChat(AsyncGeneratorProvider, ProviderModelMixin):
except NoValidHarFileError as e:
if cls._api_key is None and cls.needs_auth:
raise e
+ cls._create_request_args()
if cls.default_model is None:
cls.default_model = cls.get_model(await cls.get_default_model(session, cls._headers))
@@ -420,7 +421,7 @@ class OpenaiChat(AsyncGeneratorProvider, ProviderModelMixin):
**requirements["proofofwork"],
user_agent=cls._headers["user-agent"],
proofTokens=proofTokens
- )
+ )
if debug.logging:
print(
'Arkose:', False if not need_arkose else arkose_token[:12]+"...",