From 60dcbb1323a5a3453d9ebb17dde8099a54d058be Mon Sep 17 00:00:00 2001 From: xiamuceer Date: Sat, 8 Nov 2025 15:47:00 +0800 Subject: [PATCH] =?UTF-8?q?fix:1.=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E6=A8=A1=E5=9E=8B=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=8C=E7=A7=BB=E9=99=A4=E8=BF=87=E6=BB=A4=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/app/api/settings.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/backend/app/api/settings.py b/backend/app/api/settings.py index 1ac0320..2de4cc5 100644 --- a/backend/app/api/settings.py +++ b/backend/app/api/settings.py @@ -242,10 +242,8 @@ async def get_available_models( if "data" in data and isinstance(data["data"], list): for model in data["data"]: model_id = model.get("id", "") - # 过滤出常用的文本生成模型 - if any(keyword in model_id.lower() for keyword in [ - "gpt", "gemini", "claude", "llama", "mistral", "qwen", "deepseek" - ]): + # 返回所有模型,不进行过滤 + if model_id: models.append({ "value": model_id, "label": model_id,