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

Function registryModelsToPluginModels

sdk/pluginhost/host.go:215–227  ·  view source on GitHub ↗
(models []*internalregistry.ModelInfo)

Source from the content-addressed store, hash-verified

213}
214
215func registryModelsToPluginModels(models []*internalregistry.ModelInfo) []ModelInfo {
216 if len(models) == 0 {
217 return nil
218 }
219 out := make([]ModelInfo, 0, len(models))
220 for _, model := range models {
221 if model == nil {
222 continue
223 }
224 out = append(out, registryModelToPluginModel(model))
225 }
226 return out
227}
228
229func registryModelToPluginModel(model *internalregistry.ModelInfo) ModelInfo {
230 if model == nil {

Callers 2

ModelsForAuthMethod · 0.85
ModelsForProviderMethod · 0.85

Calls 1

Tested by

no test coverage detected