From 425c5b127c60de6b27e8eb80a84446888c5ba3ee Mon Sep 17 00:00:00 2001 From: Wenjie Zhang Date: Wed, 17 Dec 2025 22:23:37 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E7=BB=9F=E4=B8=80=20together.ai=20?= =?UTF-8?q?=E4=B8=BA=20together=20=E5=B9=B6=E6=B3=A8=E9=87=8A=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 将 together.ai 的引用统一改为 together,同时注释掉相关的模型配置 --- src/config/static/models.py | 16 ++++++++-------- web/src/utils/modelIcon.js | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/config/static/models.py b/src/config/static/models.py index cc8a2790..d1b83b8d 100644 --- a/src/config/static/models.py +++ b/src/config/static/models.py @@ -83,14 +83,14 @@ DEFAULT_CHAT_MODEL_PROVIDERS: dict[str, ChatModelProvider] = { "zai-org/GLM-4.6", ], ), - "together.ai": ChatModelProvider( - name="Together.ai", - url="https://api.together.ai/models", - base_url="https://api.together.xyz/v1/", - default="meta-llama/Llama-3.3-70B-Instruct-Turbo-Free", - env="TOGETHER_API_KEY", - models=["meta-llama/Llama-3.3-70B-Instruct-Turbo-Free"], - ), + # "together": ChatModelProvider( + # name="Together", + # url="https://api.together.ai/models", + # base_url="https://api.together.xyz/v1/", + # default="meta-llama/Llama-3.3-70B-Instruct-Turbo-Free", + # env="TOGETHER_API_KEY", + # models=["meta-llama/Llama-3.3-70B-Instruct-Turbo-Free"], + # ), "dashscope": ChatModelProvider( name="阿里百炼 (DashScope)", url="https://bailian.console.aliyun.com/?switchAgent=10226727&productCode=p_efm#/model-market", diff --git a/web/src/utils/modelIcon.js b/web/src/utils/modelIcon.js index 11f0fe1b..3f36229f 100644 --- a/web/src/utils/modelIcon.js +++ b/web/src/utils/modelIcon.js @@ -17,7 +17,7 @@ export const modelIcons = { zhipu: zhipuIcon, siliconflow: siliconflowIcon, ark: arkIcon, - 'together.ai': togetherIcon, + together: togetherIcon, openrouter: openrouterIcon, modelscope: modelscopeIcon, default: defaultIcon // 添加默认图标