summaryrefslogtreecommitdiffstats
path: root/g4f/models.py
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-04-05 21:03:12 +0200
committerGitHub <noreply@github.com>2024-04-05 21:03:12 +0200
commitc791012b218667e1449e1224014f05213fb1fc9c (patch)
treeb4ab92cd92c386b86cdeea1b4d80d3eec43eb02f /g4f/models.py
parentFix Gemini Proxy Connect call failed (#1768) (diff)
parentAdd authless OpenaiChat (diff)
downloadgpt4free-0.2.8.0.tar
gpt4free-0.2.8.0.tar.gz
gpt4free-0.2.8.0.tar.bz2
gpt4free-0.2.8.0.tar.lz
gpt4free-0.2.8.0.tar.xz
gpt4free-0.2.8.0.tar.zst
gpt4free-0.2.8.0.zip
Diffstat (limited to 'g4f/models.py')
-rw-r--r--g4f/models.py26
1 files changed, 9 insertions, 17 deletions
diff --git a/g4f/models.py b/g4f/models.py
index 6fcfdd14..7be74dbf 100644
--- a/g4f/models.py
+++ b/g4f/models.py
@@ -10,19 +10,15 @@ from .Provider import (
ChatgptNext,
HuggingChat,
HuggingFace,
- ChatgptDemo,
- GptForLove,
+ OpenaiChat,
ChatgptAi,
DeepInfra,
- ChatBase,
GigaChat,
Liaobots,
FreeGpt,
Llama2,
Vercel,
Gemini,
- GptGo,
- Gpt6,
Bing,
You,
Pi,
@@ -41,7 +37,7 @@ class Model:
name: str
base_provider: str
best_provider: ProviderType = None
-
+
@staticmethod
def __all__() -> list[str]:
"""Returns a list of all model names."""
@@ -52,9 +48,10 @@ default = Model(
base_provider = "",
best_provider = RetryProvider([
Bing,
- ChatgptAi, GptGo,
+ ChatgptAi,
You,
- Chatgpt4Online
+ Chatgpt4Online,
+ OpenaiChat
])
)
@@ -63,11 +60,10 @@ gpt_35_long = Model(
name = 'gpt-3.5-turbo',
base_provider = 'openai',
best_provider = RetryProvider([
- FreeGpt, You,
- Chatgpt4Online,
+ FreeGpt,
+ You,
ChatgptNext,
- ChatgptDemo,
- Gpt6,
+ OpenaiChat,
])
)
@@ -75,11 +71,7 @@ gpt_35_long = Model(
gpt_35_turbo = Model(
name = 'gpt-3.5-turbo',
base_provider = 'openai',
- best_provider = RetryProvider([
- GptGo, You,
- GptForLove, ChatBase,
- Chatgpt4Online,
- ])
+ best_provider = OpenaiChat
)
gpt_4 = Model(