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:
wizardchen
2026-06-05 14:42:08 +08:00
committed by lyingbug
parent 063809896a
commit e2a41ecf0a
26 changed files with 2075 additions and 1206 deletions
+21
View File
@@ -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: "Alibaba DashScope: qwen3, qwen-plus, qwen-max, qwen-turbo",
},
thinkingType: {
label: "thinking.type",
hint: 'Volcengine Ark; Tencent LKEAP (DeepSeek V3 등, LKEAP 기본값; R1은 「전송 안 함」)',
},
},
dimensionHint:
'모델이 선택되었습니다. "차원 감지" 버튼을 클릭하여 벡터 차원을 자동으로 가져옵니다',
loadModelListFailed: "모델 목록 로드 실패",