From 9c1b0a315274748a685e666b34ec36c1283f064b Mon Sep 17 00:00:00 2001 From: kqlio67 Date: Fri, 6 Sep 2024 21:14:35 +0300 Subject: Updated g4f/models.py g4f/Provider/CodeNews.py g4f/Provider/FreeChatgpt.py --- g4f/Provider/CodeNews.py | 2 +- g4f/Provider/FreeChatgpt.py | 6 +++--- g4f/models.py | 20 ++++++++++---------- 3 files changed, 14 insertions(+), 14 deletions(-) (limited to 'g4f') diff --git a/g4f/Provider/CodeNews.py b/g4f/Provider/CodeNews.py index a7eb0bb1..05ec7a45 100644 --- a/g4f/Provider/CodeNews.py +++ b/g4f/Provider/CodeNews.py @@ -22,7 +22,7 @@ class CodeNews(AsyncGeneratorProvider, ProviderModelMixin): models = ['free_gpt', 'gpt-4o-mini', 'deepseek-coder', 'chatpdf'] model_aliases = { - "glm4": "free_gpt", + "glm-4": "free_gpt", "gpt-3.5-turbo": "chatpdf", "deepseek": "deepseek-coder", } diff --git a/g4f/Provider/FreeChatgpt.py b/g4f/Provider/FreeChatgpt.py index 8a9c875f..a9dc0f56 100644 --- a/g4f/Provider/FreeChatgpt.py +++ b/g4f/Provider/FreeChatgpt.py @@ -23,9 +23,9 @@ class FreeChatgpt(AsyncGeneratorProvider, ProviderModelMixin): model_aliases = { "qwen-1.5-14b": "@cf/qwen/qwen1.5-14b-chat-awq", "sparkdesk-v1.1": "SparkDesk-v1.1", - "qwen2-7b": "Qwen2-7B-Instruct", - "glm4-9b": "glm4-9B-chat", - "glm3-6b": "chatglm3-6B", + "qwen-2-7b": "Qwen2-7B-Instruct", + "glm-4-9b": "glm4-9B-chat", + "glm-3-6b": "chatglm3-6B", "yi-1.5-9b": "Yi-1.5-9B-Chat", } diff --git a/g4f/models.py b/g4f/models.py index 4e91bb55..fe9dee78 100644 --- a/g4f/models.py +++ b/g4f/models.py @@ -343,22 +343,22 @@ qwen_turbo = Model( ### Zhipu AI ### -glm3_6b = Model( - name = 'glm3-6b', +glm_3_6b = Model( + name = 'glm-3-6b', base_provider = 'Zhipu AI', best_provider = IterListProvider([FreeChatgpt]) ) -glm4_9b = Model( - name = 'glm4-9B', +glm_4_9b = Model( + name = 'glm-4-9B', base_provider = 'Zhipu AI', best_provider = IterListProvider([FreeChatgpt]) ) -glm4 = Model( - name = 'glm4', +glm_4 = Model( + name = 'glm-4', base_provider = 'Zhipu AI', - best_provider = IterListProvider([CodeNews, glm4_9b.best_provider,]) + best_provider = IterListProvider([CodeNews, glm_4_9b.best_provider,]) ) ### 01-ai ### @@ -609,9 +609,9 @@ class ModelUtils: ### Zhipu AI ### -'glm3-6b': glm3_6b, -'glm4-9b': glm4_9b, -'glm4': glm4, +'glm-3-6b': glm_3_6b, +'glm-4-9b': glm_4_9b, +'glm-4': glm_4, ### 01-ai ### -- cgit v1.2.3