feat(model): 增加模型服务商选择功能

- 在模型配置中添加服务商选择选项
- 实现服务商切换时自动选择该服务商下的第一个可用模型
- 优化模型选择界面,仅显示当前选中服务商的模型
- 添加摘要模型服务商选择功能
- 移除授权页面的 Saas 相关功能
- 调整聊天页面的模型选择逻辑
This commit is contained in:
Tianyi
2025-03-01 22:19:09 +08:00
parent c9ad2dd607
commit 5b8b6de3b5
5 changed files with 135 additions and 91 deletions

View File

@@ -25,9 +25,6 @@ const cn = {
Input: "在此处填写访问码",
Confirm: "确认",
Later: "稍后再说",
// SaasTips: "配置太麻烦,想要立即使用",
// TopTips:
// "🥳 NextChat AI 首发优惠,立刻解锁 OpenAI o1, GPT-4o, Claude-3.5 等最新大模型",
},
ChatItem: {
ChatItemCount: (count: number) => `${count} 条对话`,
@@ -540,14 +537,15 @@ const cn = {
},
},
// 增加厂商选项
ServiceProvider: "服务提供商",
Model: "模型 (model)",
CompressModel: {
Title: "对话摘要模型",
SubTitle: "用于压缩历史记录、生成对话标题的模型",
},
CompressProvider: {
Title: "摘要模型服务商",
SubTitle: "选择生成摘要的模型服务商",
},
Temperature: {
Title: "随机性 (temperature)",
SubTitle: "值越大,回复越随机",
@@ -629,7 +627,7 @@ const cn = {
Prompt: {
History: (content: string) => "这是历史聊天总结作为前情提要:" + content,
Topic:
"使用四到五个字直接返回这句话的简要主题,不要解释、不要标点、不要语气词、不要多余文本,不要加粗,如果没有主题,请直接返回闲聊",
'使用四到五个字直接返回这句话的简要主题,不要解释、不要标点、不要语气词、不要多余文本,不要加粗,如果没有主题,请直接返回"闲聊"',
Summarize:
"简要总结一下对话内容,用作后续的上下文提示 prompt控制在 200 字以内",
},

View File

@@ -26,9 +26,6 @@ const en: LocaleType = {
Input: "access code",
Confirm: "Confirm",
Later: "Later",
SaasTips: "Too Complex, Use Immediately Now",
TopTips:
"🥳 NextChat AI launch promotion: Instantly unlock the latest models like OpenAI o1, GPT-4o, Claude-3.5!",
},
ChatItem: {
ChatItemCount: (count: number) => `${count} messages`,
@@ -626,6 +623,10 @@ const en: LocaleType = {
SubTitle: "Higher values result in more random responses",
},
},
CompressProvider: {
Title: "Summary Model Provider",
SubTitle: "Select a provider for the summary model",
},
},
Store: {
DefaultTopic: "New Conversation",