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

Method ModelsForProvider

internal/pluginhost/adapters.go:1042–1053  ·  view source on GitHub ↗
(provider string)

Source from the content-addressed store, hash-verified

1040}
1041
1042func (h *Host) ModelsForProvider(provider string) []*registry.ModelInfo {
1043 if h == nil {
1044 return nil
1045 }
1046 provider = strings.ToLower(strings.TrimSpace(provider))
1047 if provider == "" {
1048 return nil
1049 }
1050 h.mu.Lock()
1051 defer h.mu.Unlock()
1052 return cloneRegistryModels(h.providerModels[provider])
1053}
1054
1055func (h *Host) HasExecutorCandidateProvider(provider string) bool {
1056 if h == nil {

Calls 1

cloneRegistryModelsFunction · 0.85