summaryrefslogtreecommitdiffstats
path: root/g4f/Provider/needs_auth
diff options
context:
space:
mode:
authorkqlio67 <166700875+kqlio67@users.noreply.github.com>2024-07-25 08:21:55 +0200
committerkqlio67 <166700875+kqlio67@users.noreply.github.com>2024-07-25 08:21:55 +0200
commit29c13e26cd794208786a8a6cf421c264015c7e3a (patch)
treeda3a3ebdc903ac22c451d1ffd749eebd7c0aeec8 /g4f/Provider/needs_auth
parentMerge pull request #2106 from zachey01/main (diff)
downloadgpt4free-29c13e26cd794208786a8a6cf421c264015c7e3a.tar
gpt4free-29c13e26cd794208786a8a6cf421c264015c7e3a.tar.gz
gpt4free-29c13e26cd794208786a8a6cf421c264015c7e3a.tar.bz2
gpt4free-29c13e26cd794208786a8a6cf421c264015c7e3a.tar.lz
gpt4free-29c13e26cd794208786a8a6cf421c264015c7e3a.tar.xz
gpt4free-29c13e26cd794208786a8a6cf421c264015c7e3a.tar.zst
gpt4free-29c13e26cd794208786a8a6cf421c264015c7e3a.zip
Diffstat (limited to 'g4f/Provider/needs_auth')
-rw-r--r--g4f/Provider/needs_auth/Openai.py3
-rw-r--r--g4f/Provider/needs_auth/OpenaiChat.py2
2 files changed, 3 insertions, 2 deletions
diff --git a/g4f/Provider/needs_auth/Openai.py b/g4f/Provider/needs_auth/Openai.py
index 9da6bad8..a0740c47 100644
--- a/g4f/Provider/needs_auth/Openai.py
+++ b/g4f/Provider/needs_auth/Openai.py
@@ -16,6 +16,7 @@ class Openai(AsyncGeneratorProvider, ProviderModelMixin):
needs_auth = True
supports_message_history = True
supports_system_message = True
+ default_model = ""
@classmethod
async def create_async_generator(
@@ -120,4 +121,4 @@ class Openai(AsyncGeneratorProvider, ProviderModelMixin):
if api_key is not None else {}
),
**({} if headers is None else headers)
- } \ No newline at end of file
+ }
diff --git a/g4f/Provider/needs_auth/OpenaiChat.py b/g4f/Provider/needs_auth/OpenaiChat.py
index 9321c24a..e581cf55 100644
--- a/g4f/Provider/needs_auth/OpenaiChat.py
+++ b/g4f/Provider/needs_auth/OpenaiChat.py
@@ -61,7 +61,7 @@ class OpenaiChat(AsyncGeneratorProvider, ProviderModelMixin):
supports_system_message = True
default_model = None
default_vision_model = "gpt-4o"
- models = ["gpt-3.5-turbo", "gpt-4", "gpt-4-gizmo", "gpt-4o", "auto"]
+ models = ["gpt-3.5-turbo", "gpt-4", "gpt-4-gizmo", "gpt-4o", "gpt-4o-mini", "auto"]
model_aliases = {
"text-davinci-002-render-sha": "gpt-3.5-turbo",
"": "gpt-3.5-turbo",