docs: document explicit server option

This commit is contained in:
Troed Sångberg
2026-08-21 11:23:43 +02:00
parent f4d2cb6e17
commit cfd9d93c72
+13 -1
View File
@@ -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