agentmemory icon indicating copy to clipboard operation
agentmemory copied to clipboard

Status reports the LLM provider only as "llm", never which provider, model or endpoint

Open Rex57 opened this issue 1 month ago • 0 comments

Current-main boundary

On main 007a1a7 (0.9.30), GET /agentmemory/status reports provider.llm from detectLlmProviderKind(), which returns only "llm" or "noop". The status page prints that word as the LLM row. Embeddings, by contrast, are described as "openrouter (1536 dims)".

Reproduction and results

With OPENAI_API_KEY + OPENAI_BASE_URL=https://openrouter.ai/api/v1 + OPENAI_MODEL=deepseek/deepseek-v4.1-flash:floor:

GET /agentmemory/status → "provider": {"llm": "llm", "embeddings": "openrouter (1536 dims)", ...}

The provider is picked by key-detection order (OpenAI → MiniMax → Anthropic → Gemini → OpenRouter), so with several keys set, the operator cannot see from status which client, model and endpoint is billed. The boot log names provider and model but not the endpoint, and is hidden in quiet mode.

Required behavior

  • Status adds a description of the active LLM route: provider type, model, and the endpoint host when a base URL is set (for example openai · deepseek/deepseek-v4.1-flash:floor · openrouter.ai).
  • provider.llm keeps its "llm" / "noop" values, because the viewer and the CLI compare against them.
  • No key or secret appears in the output.

Acceptance checks

Status tests for: no key (noop), Anthropic with default model, OpenAI with an OpenRouter base URL. The status HTML row shows the description.

Source and existing work

detectLlmProviderKind, status input, status HTML row.

Environment: agentmemory 0.9.30, Node v26.10.0, macOS 27.0.1 (arm64).

Rex57 avatar Oct 08 '26 06:10 Rex57