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

Method ModelsForProvider

sdk/pluginhost/host.go:127–132  ·  view source on GitHub ↗

ModelsForProvider returns static models registered for a provider by plugins.

(provider string)

Source from the content-addressed store, hash-verified

125
126// ModelsForProvider returns static models registered for a provider by plugins.
127func (h *Host) ModelsForProvider(provider string) []ModelInfo {
128 if h == nil || h.inner == nil {
129 return nil
130 }
131 return registryModelsToPluginModels(h.inner.ModelsForProvider(provider))
132}
133
134// RefreshAuth lets plugin auth providers refresh a credential.
135func (h *Host) RefreshAuth(ctx context.Context, auth *coreauth.Auth) (*coreauth.Auth, bool, error) {

Callers 1

Calls 1

Tested by

no test coverage detected