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

Method registerModelsForAuth

sdk/cliproxy/service.go:1901–1903  ·  view source on GitHub ↗

registerModelsForAuth (re)binds provider models in the global registry using the core auth ID as client identifier.

(ctx context.Context, a *coreauth.Auth)

Source from the content-addressed store, hash-verified

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

Calls 1