summaryrefslogtreecommitdiffstats
path: root/g4f/models.py
diff options
context:
space:
mode:
authorHeiner Lohaus <hlohaus@users.noreply.github.com>2023-11-16 16:56:23 +0100
committerHeiner Lohaus <hlohaus@users.noreply.github.com>2023-11-16 16:56:23 +0100
commit0c4e5e5127f91c6789da8dbfbcbfee63d7a578a3 (patch)
treeba69bbcf859f6608c262f27d666af174f845cf8b /g4f/models.py
parentUpdate README.md (diff)
downloadgpt4free-0c4e5e5127f91c6789da8dbfbcbfee63d7a578a3.tar
gpt4free-0c4e5e5127f91c6789da8dbfbcbfee63d7a578a3.tar.gz
gpt4free-0c4e5e5127f91c6789da8dbfbcbfee63d7a578a3.tar.bz2
gpt4free-0c4e5e5127f91c6789da8dbfbcbfee63d7a578a3.tar.lz
gpt4free-0c4e5e5127f91c6789da8dbfbcbfee63d7a578a3.tar.xz
gpt4free-0c4e5e5127f91c6789da8dbfbcbfee63d7a578a3.tar.zst
gpt4free-0c4e5e5127f91c6789da8dbfbcbfee63d7a578a3.zip
Diffstat (limited to '')
-rw-r--r--g4f/models.py25
1 files changed, 16 insertions, 9 deletions
diff --git a/g4f/models.py b/g4f/models.py
index cdca0e3f..868bf5b2 100644
--- a/g4f/models.py
+++ b/g4f/models.py
@@ -3,6 +3,9 @@ from dataclasses import dataclass
from .typing import Union
from .Provider import BaseProvider, RetryProvider
from .Provider import (
+ Chatgpt4Online,
+ ChatAnywhere,
+ PerplexityAi,
GptForLove,
ChatgptAi,
DeepInfra,
@@ -11,14 +14,12 @@ from .Provider import (
GeekGpt,
FakeGpt,
FreeGpt,
- NoowAi,
Berlin,
Llama2,
Vercel,
- GPTalk,
+ Phind,
Koala,
GptGo,
- Phind,
Bard,
Bing,
You,
@@ -39,20 +40,24 @@ default = Model(
name = "",
base_provider = "",
best_provider = RetryProvider([
- Bing, # Not fully GPT 3 or 4
+ Bing,
ChatgptAi, GptGo, GeekGpt,
- Phind, You
+ You,
+ Chatgpt4Online,
+ ChatAnywhere,
])
)
-# GPT-3.5 too, but all providers supports long responses and a custom timeouts
+# GPT-3.5 too, but all providers supports long requests and responses
gpt_35_long = Model(
name = 'gpt-3.5-turbo',
base_provider = 'openai',
best_provider = RetryProvider([
FreeGpt, You,
GeekGpt, FakeGpt,
- Berlin, Koala
+ Berlin, Koala,
+ Chatgpt4Online,
+ ChatAnywhere,
])
)
@@ -62,7 +67,9 @@ gpt_35_turbo = Model(
base_provider = 'openai',
best_provider=RetryProvider([
ChatgptX, GptGo, You,
- NoowAi, GPTalk, GptForLove, Phind, ChatBase
+ GptForLove, ChatBase,
+ Chatgpt4Online,
+ ChatAnywhere,
])
)
@@ -70,7 +77,7 @@ gpt_4 = Model(
name = 'gpt-4',
base_provider = 'openai',
best_provider = RetryProvider([
- Bing, GeekGpt, Phind
+ Bing, Phind, PerplexityAi
])
)