MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / modelRegistrationMaxWorkersForCategory

Function modelRegistrationMaxWorkersForCategory

sdk/cliproxy/service.go:367–373  ·  view source on GitHub ↗
(category string)

Source from the content-addressed store, hash-verified

365}
366
367func modelRegistrationMaxWorkersForCategory(category string) int {
368 category = strings.ToLower(strings.TrimSpace(category))
369 if strings.HasPrefix(category, "openai-compatible-") || strings.HasPrefix(category, "openai-compatibility") {
370 return modelRegistrationMaxWorkersOpenAICompatibility
371 }
372 return modelRegistrationMaxWorkersPerCategory
373}
374
375func (s *Service) registerModelRefreshCallback() {
376 // Register callback for startup and periodic model catalog refresh.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected