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