fix(runtime): honor requested platform for routing

This commit is contained in:
2026-07-24 07:56:48 +08:00
parent 22ee5bb624
commit fb7e08fe5c
4 changed files with 105 additions and 0 deletions
+4
View File
@@ -31,6 +31,10 @@ func (s *Service) Estimate(ctx context.Context, kind string, model string, body
if err != nil {
return EstimateResult{}, err
}
candidates, err = filterCandidatesByRequestedPlatform(candidates, body)
if err != nil {
return EstimateResult{}, err
}
candidates, _, err = filterRuntimeCandidatesByRequest(kind, model, modelType, body, candidates)
if err != nil {
return EstimateResult{}, err