mirror of
https://github.com/Tencent/WeKnora.git
synced 2026-09-24 16:29:01 +08:00
feat: Enhance temperature configuration handling in AgentSettings
This commit is contained in:
@@ -1724,6 +1724,7 @@ const handleSystemPromptNormalChange = async () => {
|
||||
|
||||
const handleTemperatureNormalChange = async (value: number) => {
|
||||
if (!conversationConfigLoaded.value) return
|
||||
if (value === savedTemperatureNormal) return
|
||||
|
||||
try {
|
||||
await saveConversationConfig(
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user