mirror of
https://git.sync.wtf/troed/oc-ls-stats.git
synced 2026-08-31 09:43:38 +03:00
docs: document explicit server option
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user