fix(agent): 媒体准入参数结构化纠错
This commit is contained in:
1 parent
7466119867
commit
fb03cfca1e
9 files changed
+157
-117
No files matched your search
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user