From 5a7258814d68319e5dab5b0277dce7780789cc46 Mon Sep 17 00:00:00 2001 From: Dooy Date: Mon, 26 Aug 2024 10:49:31 +0800 Subject: [PATCH] v2.20.5 --- changlog.md | 1 + src/views/mj/aiModel.vue | 2 ++ 2 files changed, 3 insertions(+) diff --git a/changlog.md b/changlog.md index a52c001f6a..8d48834715 100644 --- a/changlog.md +++ b/changlog.md @@ -3,6 +3,7 @@ # 计划 # 2.20.5 - 😄 新增: flux 相关模型的dall.e格式 +- 🐞 修复:claude-3-5,maxtoken问题 #495 # 2.20.4 - 🐞 修复:更新了背景图版本后。聊天窗口内容上下滚动有时候会失效,要重新刷新页面才能滚动 #490 diff --git a/src/views/mj/aiModel.vue b/src/views/mj/aiModel.vue index 29d4a57fda..b65bbeaa6c 100644 --- a/src/views/mj/aiModel.vue +++ b/src/views/mj/aiModel.vue @@ -93,6 +93,8 @@ watch(()=>nGptStore.value.model,(n)=>{ max=16384 *2; }else if( n.indexOf('gpt-4')>-1 || n.indexOf('16k')>-1 ){ //['16k','8k','32k','gpt-4'].indexOf(n)>-1 max=4096*2; + }else if( n.toLowerCase().includes('claude-3-5') ){ + max=4096*2*2; }else if( n.toLowerCase().includes('claude-3') ){ max=4096*2; }