(category string)
| 365 | } |
| 366 | |
| 367 | func 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 | |
| 375 | func (s *Service) registerModelRefreshCallback() { |
| 376 | // Register callback for startup and periodic model catalog refresh. |
no outgoing calls
no test coverage detected