feat: Enhance temperature configuration handling in AgentSettings
This commit is contained in:
@@ -1724,6 +1724,7 @@ const handleSystemPromptNormalChange = async () => {
|
|||||||
|
|
||||||
const handleTemperatureNormalChange = async (value: number) => {
|
const handleTemperatureNormalChange = async (value: number) => {
|
||||||
if (!conversationConfigLoaded.value) return
|
if (!conversationConfigLoaded.value) return
|
||||||
|
if (value === savedTemperatureNormal) return
|
||||||
|
|
||||||
try {
|
try {
|
||||||
await saveConversationConfig(
|
await saveConversationConfig(
|
||||||
|
|||||||
@@ -353,6 +353,8 @@ func (h *TenantHandler) updateTenantAgentConfigInternal(c *gin.Context) {
|
|||||||
c.Error(errors.NewAgentInvalidTemperatureError())
|
c.Error(errors.NewAgentInvalidTemperatureError())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
// thinking_model_id 不再强制要求,允许先启用 Agent 再设置模型
|
||||||
|
// 实际使用时会在 AgentQA 中进行验证
|
||||||
if len(req.AllowedTools) == 0 {
|
if len(req.AllowedTools) == 0 {
|
||||||
c.Error(errors.NewAgentMissingAllowedToolsError())
|
c.Error(errors.NewAgentMissingAllowedToolsError())
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user