From 69d8ff10347ddfa57ce60340fc0600b743ceb05f Mon Sep 17 00:00:00 2001 From: ccnetcore Date: Mon, 30 Jun 2025 22:07:42 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9deepseek=E6=A0=A1?= =?UTF-8?q?=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Yi.Framework.AiHub.Application/Services/AiChatService.cs | 2 +- Yi.Ai.Vue3/src/components/ModelSelect/index.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/AiChatService.cs b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/AiChatService.cs index 5cd950bc..9952820a 100644 --- a/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/AiChatService.cs +++ b/Yi.Abp.Net8/module/ai-hub/Yi.Framework.AiHub.Application/Services/AiChatService.cs @@ -91,7 +91,7 @@ public class AiChatService : ApplicationService public async Task PostSendAsync(SendMessageInput input, CancellationToken cancellationToken) { //除了免费模型,其他的模型都要校验 - if (input.Model != "DeepSeek-R1") + if (!input.Model.Contains("DeepSeek-R1")) { //有token,需要黑名单校验 if (CurrentUser.IsAuthenticated) diff --git a/Yi.Ai.Vue3/src/components/ModelSelect/index.vue b/Yi.Ai.Vue3/src/components/ModelSelect/index.vue index a63f0568..e7e3c2fc 100644 --- a/Yi.Ai.Vue3/src/components/ModelSelect/index.vue +++ b/Yi.Ai.Vue3/src/components/ModelSelect/index.vue @@ -20,7 +20,7 @@ const userStore = useUserStore(); const modelStore = useModelStore(); // 检查模型是否可用 function isModelAvailable(item: GetSessionListVO) { - return isUserRoleVip.value || item.modelName === 'DeepSeek-R1' || userStore.userInfo?.user?.userName === 'cc'; + return isUserRoleVip.value || item.modelName?.includes('DeepSeek-R1') || userStore.userInfo?.user?.userName === 'cc'; } onMounted(async () => {