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

Function runRouter

core/http/middleware/route_model_test.go:438–440  ·  view source on GitHub ↗
(loader *config.ModelConfigLoader, appConfig *config.ApplicationConfig, store router.DecisionStore, routerCfg *config.ModelConfig, parsed any, scorerFactory ScorerFactory)

Source from the content-addressed store, hash-verified

436}
437
438func runRouter(loader *config.ModelConfigLoader, appConfig *config.ApplicationConfig, store router.DecisionStore, routerCfg *config.ModelConfig, parsed any, scorerFactory ScorerFactory) (*httptest.ResponseRecorder, error) {
439 return runRouterWithDeps(loader, appConfig, store, routerCfg, parsed, ClassifierDeps{Scorer: scorerFactory})
440}
441
442// runRouterWithDeps is runRouter's general form: lets the caller pass
443// a fully-populated ClassifierDeps (ModelLookup, Evaluator, ...) so

Callers 1

Calls 1

runRouterWithDepsFunction · 0.85

Tested by

no test coverage detected