diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-04-05 21:03:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-05 21:03:12 +0200 |
commit | c791012b218667e1449e1224014f05213fb1fc9c (patch) | |
tree | b4ab92cd92c386b86cdeea1b4d80d3eec43eb02f /g4f/models.py | |
parent | Fix Gemini Proxy Connect call failed (#1768) (diff) | |
parent | Add authless OpenaiChat (diff) | |
download | gpt4free-c791012b218667e1449e1224014f05213fb1fc9c.tar gpt4free-c791012b218667e1449e1224014f05213fb1fc9c.tar.gz gpt4free-c791012b218667e1449e1224014f05213fb1fc9c.tar.bz2 gpt4free-c791012b218667e1449e1224014f05213fb1fc9c.tar.lz gpt4free-c791012b218667e1449e1224014f05213fb1fc9c.tar.xz gpt4free-c791012b218667e1449e1224014f05213fb1fc9c.tar.zst gpt4free-c791012b218667e1449e1224014f05213fb1fc9c.zip |
Diffstat (limited to 'g4f/models.py')
-rw-r--r-- | g4f/models.py | 26 |
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( |