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:
Ettore Di Giacinto committed 2026-11-03 19:24:13 +00:00
1 parent 8a62b90d02
commit ca8b398650
2 files changed
+2 -4

No files matched your search

+1 -1
View File
@@ -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.
+1 -3
View File
@@ -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