MCPcopy
hub / github.com/mudler/LocalAI / AvailableBackends

Function AvailableBackends

core/gallery/gallery.go:372–374  ·  view source on GitHub ↗

List available backends

(galleries []config.Gallery, systemState *system.SystemState)

Source from the content-addressed store, hash-verified

370
371// List available backends
372func AvailableBackends(galleries []config.Gallery, systemState *system.SystemState) (GalleryElements[*GalleryBackend], error) {
373 return availableBackendsWithFilter(galleries, systemState, true)
374}
375
376// AvailableBackendsUnfiltered returns all available backends without filtering by system capability.
377func AvailableBackendsUnfiltered(galleries []config.Gallery, systemState *system.SystemState) (GalleryElements[*GalleryBackend], error) {

Callers 9

RegisterUIAPIRoutesFunction · 0.92
RunMethod · 0.92
ListKnownBackendsMethod · 0.92
CheckUpgradesAgainstFunction · 0.85
UpgradeBackendFunction · 0.85

Calls 1

Tested by

no test coverage detected