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
@@ -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 {