fix(copilot): exclude internal search models

Andrey Nering created

Change summary

cmd/copilot/main.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

cmd/copilot/main.go 🔗

@@ -92,7 +92,7 @@ func run() error {
 
 	// NOTE(@andreynering): Exclude versioned models and keep only the main version of each.
 	copilotModels = slices.DeleteFunc(copilotModels, func(m Model) bool {
-		return m.ID != m.Version || versionedModelRegexp.MatchString(m.ID) || strings.Contains(m.ID, "embedding")
+		return m.ID != m.Version || versionedModelRegexp.MatchString(m.ID) || strings.Contains(m.ID, "embedding") || strings.HasPrefix(m.ID, "accounts/msft/routers")
 	})
 
 	catwalkModels := modelsToCatwalk(copilotModels)