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
+3
View File
@@ -222,6 +222,9 @@ func (s *Service) executeWithToken(ctx context.Context, task store.GatewayTask,
CacheAffinityKeys: cacheAffinityKeys.Lookup,
CacheAffinityPolicy: runnerPolicy.CacheAffinityPolicy,
})
if err == nil {
candidates, err = filterCandidatesByRequestedPlatform(candidates, body)
}
if err != nil {
if task.Kind == "responses" && responseExecution.PreviousChain != nil {
err = responseChainUnavailableError()