diff options
author | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-05-19 05:09:55 +0200 |
---|---|---|
committer | Heiner Lohaus <hlohaus@users.noreply.github.com> | 2024-05-19 05:09:55 +0200 |
commit | 19944818724c98d2f06a10f619acf622ba0876ad (patch) | |
tree | d2c8889a24524895c026b6b8d2a428eacf37757e /g4f/Provider/needs_auth | |
parent | Add dark mode config, slide system prompt (diff) | |
download | gpt4free-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.py | 3 |
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]+"...", |