summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/needs_auth
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-11-19 11:04:01 +0100
committerGitHub <noreply@github.com>2024-11-19 11:04:01 +0100
commit23b3458216c86dbc8815e42379d32a8887ccd94c (patch)
tree1dd2ea30923cb356c1e57d1a3f7816cc93060c90 /g4f/Provider/needs_auth
parentMerge pull request #2372 from hlohaus/info (diff)
parentAdd image upload to Copilot provider (diff)
downloadgpt4free-23b3458216c86dbc8815e42379d32a8887ccd94c.tar
gpt4free-23b3458216c86dbc8815e42379d32a8887ccd94c.tar.gz
gpt4free-23b3458216c86dbc8815e42379d32a8887ccd94c.tar.bz2
gpt4free-23b3458216c86dbc8815e42379d32a8887ccd94c.tar.lz
gpt4free-23b3458216c86dbc8815e42379d32a8887ccd94c.tar.xz
gpt4free-23b3458216c86dbc8815e42379d32a8887ccd94c.tar.zst
gpt4free-23b3458216c86dbc8815e42379d32a8887ccd94c.zip
Diffstat (limited to 'g4f/Provider/needs_auth')
-rw-r--r--g4f/Provider/needs_auth/CopilotAccount.py3
-rw-r--r--g4f/Provider/needs_auth/OpenaiChat.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/g4f/Provider/needs_auth/CopilotAccount.py b/g4f/Provider/needs_auth/CopilotAccount.py
index fa43867e..76e51278 100644
--- a/g4f/Provider/needs_auth/CopilotAccount.py
+++ b/g4f/Provider/needs_auth/CopilotAccount.py
@@ -5,4 +5,5 @@ from ..Copilot import Copilot
class CopilotAccount(Copilot):
needs_auth = True
parent = "Copilot"
- default_model = "" \ No newline at end of file
+ default_model = "Copilot"
+ default_vision_model = default_model \ No newline at end of file
diff --git a/g4f/Provider/needs_auth/OpenaiChat.py b/g4f/Provider/needs_auth/OpenaiChat.py
index 13e15f1d..22264dd9 100644
--- a/g4f/Provider/needs_auth/OpenaiChat.py
+++ b/g4f/Provider/needs_auth/OpenaiChat.py
@@ -396,7 +396,7 @@ class OpenaiChat(AsyncGeneratorProvider, ProviderModelMixin):
f"{cls.url}/backend-anon/sentinel/chat-requirements"
if cls._api_key is None else
f"{cls.url}/backend-api/sentinel/chat-requirements",
- json={"p": get_requirements_token(RequestConfig.proof_token)},
+ json={"p": get_requirements_token(RequestConfig.proof_token) if RequestConfig.proof_token else None},
headers=cls._headers
) as response:
cls._update_request_args(session)