mirror of
https://github.com/mudler/LocalAI.git
synced 2026-11-06 04:23:15 -05:00
chore(mcp): drop stale welcome-JSON comments
Assisted-by: Claude:claude-sonnet-5-5 go-test Signed-off-by: Ettore Di Giacinto <mudler@localai.io> (cherry picked from commit 92283865d720f7cee08391ed2ea4816578538174)
This commit is contained in:
2 files changed
+2
-4
No files matched your search
@@ -22,7 +22,7 @@ import (
|
||||
// "(none)" is a deliberate sentinel for tools whose data is not exposed
|
||||
// over a single REST endpoint (e.g. system_info aggregates data the
|
||||
// inproc client picks up directly from services). The httpapi.Client may
|
||||
// approximate via the welcome JSON; the test still requires an entry so
|
||||
// compose it from several routes; the test still requires an entry so
|
||||
// the contributor explicitly acknowledges the asymmetry.
|
||||
var toolToHTTPRoute = map[string]string{
|
||||
// Read-only tools.
|
||||
|
||||
@@ -232,9 +232,7 @@ var _ = Describe("httpapi.Client against the LocalAI admin REST surface", func()
|
||||
info, err := c.SystemInfo(ctx)
|
||||
Expect(err).ToNot(HaveOccurred())
|
||||
Expect(info.Version).To(Equal("v0.0.0-test"))
|
||||
// /system.backends carries the installed set; /backends is the
|
||||
// authoritative list. Both are exercised; the test asserts the
|
||||
// union is non-empty and contains the known backends.
|
||||
// The installed backends come from /backends.
|
||||
Expect(info.InstalledBackends).To(ContainElement("llama-cpp"))
|
||||
Expect(info.InstalledBackends).To(ContainElement("whisper"))
|
||||
// loaded_models comes from /system
|
||||
|
||||
Reference in new issue
Block a user