feat(thinkingControl): implement thinking mode configuration in model editor
- Added a new thinking mode control field in the ModelEditorDialog, allowing users to specify how the agent's thinking mode is formatted for API requests. - Introduced localization strings for thinking mode labels and descriptions in English, Korean, Russian, and Chinese, enhancing user experience across multiple languages. - Updated the model form data structure to include thinking control settings, ensuring proper handling during model edits and saves. - Implemented utility functions for resolving and defaulting thinking control values based on provider and model, improving backend integration. - Added tests for the new thinking control functionality to ensure reliability and correctness in handling user configurations.
This commit is contained in:
@@ -2542,6 +2542,27 @@ export default {
|
||||
remoteDimensionDetected: "检测到向量维度:{value}",
|
||||
supportsVisionLabel: "支持视觉/多模态",
|
||||
supportsVisionDesc: "模型是否支持图片等多模态输入",
|
||||
thinkingControlLabel: "思考模式参数格式",
|
||||
thinkingControlDesc:
|
||||
"决定智能体「思考模式」开/关时如何写入 API。已尝试按厂商/模型预选,若与实际情况不符请按 API 文档手动修改;选「不写入」时,智能体「思考模式」开关不生效。",
|
||||
thinkingControl: {
|
||||
none: {
|
||||
label: "不写入思考参数",
|
||||
hint: "智能体「思考模式」开关不生效,不会在请求中写入思考相关参数",
|
||||
},
|
||||
chatTemplateKwargs: {
|
||||
label: "chat_template_kwargs",
|
||||
hint: "自定义 OpenAI 兼容、NVIDIA NIM、vLLM / 本地 Qwen 部署",
|
||||
},
|
||||
enableThinking: {
|
||||
label: "enable_thinking",
|
||||
hint: "阿里云 DashScope:qwen3、qwen-plus、qwen-max、qwen-turbo",
|
||||
},
|
||||
thinkingType: {
|
||||
label: "thinking.type",
|
||||
hint: "火山引擎 Ark;腾讯云 LKEAP(DeepSeek V3 等,选 LKEAP 时默认此项;R1 请改「不写入」)",
|
||||
},
|
||||
},
|
||||
dimensionHint: '模型已选择,点击"检测维度"按钮自动获取向量维度',
|
||||
loadModelListFailed: "加载模型列表失败",
|
||||
listRefreshed: "列表已刷新",
|
||||
|
||||
Reference in New Issue
Block a user