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

Method refreshPluginModelRegistrations

sdk/cliproxy/service.go:224–229  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

222}
223
224func (s *Service) refreshPluginModelRegistrations(ctx context.Context) {
225 if s == nil || s.pluginHost == nil || s.coreManager == nil {
226 return
227 }
228 s.registerModelsForAuthBatch(ctx, s.coreManager.List())
229}
230
231func (s *Service) registerModelsForAuthBatch(ctx context.Context, auths []*coreauth.Auth) {
232 if s == nil || s.coreManager == nil || len(auths) == 0 {

Callers 1

Calls 2

ListMethod · 0.65

Tested by

no test coverage detected