summaryrefslogtreecommitdiffstats
path: root/g4f
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g4f/Provider/FreeChatgpt.py2
-rw-r--r--g4f/Provider/__init__.py1
-rw-r--r--g4f/models.py31
3 files changed, 26 insertions, 8 deletions
diff --git a/g4f/Provider/FreeChatgpt.py b/g4f/Provider/FreeChatgpt.py
index 20487594..8a9c875f 100644
--- a/g4f/Provider/FreeChatgpt.py
+++ b/g4f/Provider/FreeChatgpt.py
@@ -25,7 +25,7 @@ class FreeChatgpt(AsyncGeneratorProvider, ProviderModelMixin):
"sparkdesk-v1.1": "SparkDesk-v1.1",
"qwen2-7b": "Qwen2-7B-Instruct",
"glm4-9b": "glm4-9B-chat",
- "chatglm3-6b": "chatglm3-6B",
+ "glm3-6b": "chatglm3-6B",
"yi-1.5-9b": "Yi-1.5-9B-Chat",
}
diff --git a/g4f/Provider/__init__.py b/g4f/Provider/__init__.py
index 4f30b2be..1aa94d07 100644
--- a/g4f/Provider/__init__.py
+++ b/g4f/Provider/__init__.py
@@ -22,6 +22,7 @@ from .ChatGot import ChatGot
from .Chatgpt4Online import Chatgpt4Online
from .Chatgpt4o import Chatgpt4o
from .ChatgptFree import ChatgptFree
+from .CodeNews import CodeNews
from .DDG import DDG
from .DeepInfra import DeepInfra
from .DeepInfraImage import DeepInfraImage
diff --git a/g4f/models.py b/g4f/models.py
index fd50009c..4e91bb55 100644
--- a/g4f/models.py
+++ b/g4f/models.py
@@ -13,6 +13,7 @@ from .Provider import (
Chatgpt4Online,
Chatgpt4o,
ChatgptFree,
+ CodeNews,
DDG,
DeepInfra,
DeepInfraImage,
@@ -105,7 +106,7 @@ gpt_35_turbo = Model(
name = 'gpt-3.5-turbo',
base_provider = 'OpenAI',
best_provider = IterListProvider([
- Allyfy, TwitterBio, Nexra, Bixin123,
+ Allyfy, TwitterBio, Nexra, Bixin123, CodeNews,
])
)
@@ -122,7 +123,7 @@ gpt_4o_mini = Model(
name = 'gpt-4o-mini',
base_provider = 'OpenAI',
best_provider = IterListProvider([
- DDG, Liaobots, You, FreeNetfly, MagickPenAsk, MagickPenChat, Pizzagpt, ChatgptFree, AiChatOnline, OpenaiChat, Koala,
+ DDG, Liaobots, You, FreeNetfly, MagickPenAsk, MagickPenChat, Pizzagpt, ChatgptFree, AiChatOnline, CodeNews, OpenaiChat, Koala,
])
)
@@ -342,18 +343,23 @@ qwen_turbo = Model(
### Zhipu AI ###
-glm4_9b = Model(
- name = 'glm4-9B',
+glm3_6b = Model(
+ name = 'glm3-6b',
base_provider = 'Zhipu AI',
best_provider = IterListProvider([FreeChatgpt])
)
-chatglm3_6b = Model(
- name = 'chatglm3-6b',
+glm4_9b = Model(
+ name = 'glm4-9B',
base_provider = 'Zhipu AI',
best_provider = IterListProvider([FreeChatgpt])
)
+glm4 = Model(
+ name = 'glm4',
+ base_provider = 'Zhipu AI',
+ best_provider = IterListProvider([CodeNews, glm4_9b.best_provider,])
+)
### 01-ai ###
yi_1_5_9b = Model(
@@ -405,6 +411,13 @@ donutlm_v1 = Model(
best_provider = Snova
)
+### DeepSeek ###
+deepseek = Model(
+ name = 'deepseek',
+ base_provider = 'DeepSeek',
+ best_provider = CodeNews
+)
+
#############
@@ -596,8 +609,9 @@ class ModelUtils:
### Zhipu AI ###
+'glm3-6b': glm3_6b,
'glm4-9b': glm4_9b,
-'chatglm3-6b': chatglm3_6b,
+'glm4': glm4,
### 01-ai ###
@@ -626,6 +640,9 @@ class ModelUtils:
### CookinAI ###
'donutlm-v1': donutlm_v1,
+
+### DeepSeek ###
+'deepseek': deepseek,