Refactor(setting-model): Refactor the model management interface and optimize the component structure. #10703 (#10905)

### What problem does this PR solve?

Refactor(setting-model): Refactor the model management interface and
optimize the component structure. #10703

### Type of change

- [x] Refactoring
This commit is contained in:
chanx
2025-10-31 09:27:30 +08:00
committed by GitHub
parent ff2365b146
commit 5a830ea68b
11 changed files with 1191 additions and 338 deletions

View File

@ -671,6 +671,8 @@ General实体和关系提取提示来自 GitHub - microsoft/graphrag基于
tocEnhanceTip: `解析文档时生成了目录信息见General方法的启用目录抽取让大模型返回和用户问题相关的目录项从而利用目录项拿到相关chunk对这些chunk在排序中进行加权。这种方法来源于模仿人类查询书本中知识的行为逻辑`,
},
setting: {
search: '搜索',
availableModels: '可选模型',
profile: '概要',
avatar: '头像',
avatarTip: '这会在你的个人主页展示',
@ -684,7 +686,7 @@ General实体和关系提取提示来自 GitHub - microsoft/graphrag基于
password: '密码',
passwordDescription: '请输入您当前的密码以更改您的密码。',
model: '模型提供商',
modelDescription: '在此设置模型参数和 API KEY。',
systemModelDescription: '请在开始之前完成这些设置',
team: '团队',
system: '系统',
logout: '登出',
@ -715,7 +717,7 @@ General实体和关系提取提示来自 GitHub - microsoft/graphrag基于
cancel: '取消',
addedModels: '添加了的模型',
modelsToBeAdded: '待添加的模型',
addTheModel: '添加模型',
addTheModel: '添加',
apiKey: 'API-Key',
apiKeyMessage: '请输入api key如果是本地部署的模型请忽略它',
apiKeyTip: 'API key可以通过注册相应的LLM供应商来获取。',
@ -729,21 +731,21 @@ General实体和关系提取提示来自 GitHub - microsoft/graphrag基于
tongyiBaseUrlPlaceholder: '(仅国际用户需要)',
modify: '修改',
systemModelSettings: '设置默认模型',
chatModel: '聊天模型',
chatModel: 'LLM',
chatModelTip: '所有新创建的知识库都会使用默认的聊天模型。',
ttsModel: 'TTS模型',
ttsModel: 'TTS',
ttsModelTip:
'默认的tts模型会被用于在对话过程中请求语音生成时使用。如未显示可选模型请根据 https://ragflow.io/docs/dev/supported_models 确认你的模型供应商是否提供该模型。',
embeddingModel: '嵌入模型',
embeddingModel: 'Embedding',
embeddingModelTip:
'所有新创建的知识库使用的默认嵌入模型。如未显示可选模型,请检查你是否在使用 RAGFlow slim 版(不含嵌入模型);或根据 https://ragflow.io/docs/dev/supported_models 确认你的模型供应商是否提供该模型。',
img2txtModel: 'Img2txt模型',
img2txtModel: 'VLM',
img2txtModelTip:
'所有新创建的知识库都将使用默认的 img2txt 模型。 它可以描述图片或视频。如未显示可选模型,请根据 https://ragflow.io/docs/dev/supported_models 确认你的模型供应商是否提供该模型。',
sequence2txtModel: 'Speech2txt模型',
sequence2txtModel: 'ASR',
sequence2txtModelTip:
'所有新创建的知识库都将使用默认的 ASR 模型。 使用此模型将语音翻译为相应的文本。如未显示可选模型,请根据 https://ragflow.io/docs/dev/supported_models 确认你的模型供应商是否提供该模型。',
rerankModel: 'Rerank模型',
rerankModel: 'Rerank',
rerankModelTip: `默认的 reranking 模型。如未显示可选模型,请根据 https://ragflow.io/docs/dev/supported_models 确认你的模型供应商是否提供该模型。`,
workspace: '工作空间',
upgrade: '升级',