fix(agent): 媒体准入参数结构化纠错

This commit is contained in:
ddcat666 committed 2026-10-13 20:54:44 +08:00
1 parent 7466119867
commit fb03cfca1e
9 files changed
+157 -117

No files matched your search

+1 -1
View File
@@ -578,7 +578,7 @@ func (s *Service) resolveSystemChannelModelSelection(input map[string]any, taskT
return input, InvalidModelSelection("指定的模型能力配置无效,请联系管理员")
}
if match := MatchCapability(*capabilitySpec, intent); !match.Matched {
return input, ModelCapabilityNotSupported("所选模型不支持当前请求:" + strings.Join(match.Reasons, ";"))
return input, modelCapabilityMismatchError(match)
}
}