package runner

import "github.com/easyai/easyai-ai-gateway/apps/api/internal/store"

func pinCandidatesToRoutingAssignment(candidates []store.RuntimeModelCandidate, platformID, platformModelID string) []store.RuntimeModelCandidate {
	for _, candidate := range candidates {
		if candidate.PlatformModelID == platformModelID && (platformID == "" || candidate.PlatformID == platformID) {
			return []store.RuntimeModelCandidate{candidate}
		}
	}
	return nil
}
