feat: Enhance temperature configuration handling in AgentSettings

This commit is contained in:
wizardchen
2025-11-20 10:33:25 +08:00
parent 884a765f3a
commit fe117af66e
2 changed files with 3 additions and 0 deletions
@@ -1724,6 +1724,7 @@ const handleSystemPromptNormalChange = async () => {
const handleTemperatureNormalChange = async (value: number) => {
if (!conversationConfigLoaded.value) return
if (value === savedTemperatureNormal) return
try {
await saveConversationConfig(
+2
View File
@@ -353,6 +353,8 @@ func (h *TenantHandler) updateTenantAgentConfigInternal(c *gin.Context) {
c.Error(errors.NewAgentInvalidTemperatureError())
return
}
// thinking_model_id 不再强制要求,允许先启用 Agent 再设置模型
// 实际使用时会在 AgentQA 中进行验证
if len(req.AllowedTools) == 0 {
c.Error(errors.NewAgentMissingAllowedToolsError())
return