fix(agent): 媒体准入参数结构化纠错
This commit is contained in:
1 parent
7466119867
commit
fb03cfca1e
9 files changed
+157
-117
No files matched your search
@@ -207,7 +207,7 @@ func (s *Service) ResolveLogicalModel(logicalModelID string, intent ModelRequest
|
||||
}
|
||||
}
|
||||
if match := MatchCapability(cached.ProductSpec, intent); !match.Matched {
|
||||
return nil, BadAuthRequest("所选模型不支持当前请求:" + strings.Join(match.Reasons, ";"))
|
||||
return nil, modelCapabilityMismatchError(match)
|
||||
}
|
||||
eligible := s.eligibleLogicalRoutes(cached.Routes, intent, nil, cached.Model.PricePolicy == "channel")
|
||||
if len(eligible) == 0 {
|
||||
|
||||
Reference in new issue
Block a user