registerModelsForAuth (re)binds provider models in the global registry using the core auth ID as client identifier.
(ctx context.Context, a *coreauth.Auth)
| 1899 | |
| 1900 | // registerModelsForAuth (re)binds provider models in the global registry using the core auth ID as client identifier. |
| 1901 | func (s *Service) registerModelsForAuth(ctx context.Context, a *coreauth.Auth) { |
| 1902 | s.registerModelsForAuthWithCache(ctx, a, nil) |
| 1903 | } |
| 1904 | |
| 1905 | func (s *Service) registerModelsForAuthWithCache(ctx context.Context, a *coreauth.Auth, compatCache *openAICompatibilityRegistrationCache) { |
| 1906 | if a == nil || a.ID == "" { |