diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-05-19 06:01:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-19 06:01:06 +0200 |
commit | 23b27cedf1f2d85d311a6e9a677c321b37719305 (patch) | |
tree | d2c8889a24524895c026b6b8d2a428eacf37757e /g4f/Provider/needs_auth | |
parent | Merge pull request #1977 from hlohaus/leech (diff) | |
parent | Update model list / providers (diff) | |
download | gpt4free-0.3.1.6.tar gpt4free-0.3.1.6.tar.gz gpt4free-0.3.1.6.tar.bz2 gpt4free-0.3.1.6.tar.lz gpt4free-0.3.1.6.tar.xz gpt4free-0.3.1.6.tar.zst gpt4free-0.3.1.6.zip |
Diffstat (limited to '')
-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]+"...", |