From cfd9d93c7288cd4d473939f0dbe6923748d5a910 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Troed=20S=C3=A5ngberg?= Date: Fri, 21 Aug 2026 11:23:43 +0200 Subject: [PATCH] docs: document explicit server option --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5bb461a..d4d6b4c 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,19 @@ The plugin renders a single line in the session prompt right slot: ### Server Discovery -The plugin discovers the llama-server URL by reading the OpenCode configuration via the TUI API and extracting `baseURL`/`base_url` fields from provider options whose name contains "llama" (but excludes providers whose name contains "ollama"). Falls back to `http://localhost:8080` if no matching provider is found. +By default the plugin discovers the llama-server URL by reading the OpenCode configuration via the TUI API and extracting `baseURL`/`base_url` fields from provider options whose name contains "llama" (but excludes providers whose name contains "ollama"). Falls back to `http://localhost:8080` if no matching provider is found. + +If your llama-server provider is named differently, configure the endpoint explicitly via the plugin's `server` option in `tui.json`. An explicit server replaces discovery entirely: + +```json +{ + "plugin": [ + ["@troed/oc-ls-stats@latest", { "server": "http://headless.local:8080" }] + ] +} +``` + +A `baseURL`-style value ending in `/v1` is also accepted. ### Slot Polling