mirror of
https://git.sync.wtf/troed/oc-ls-stats.git
synced 2026-08-31 09:43:38 +03:00
chore: v1.0.17 — detect llama-server from api.state.config.provider
This commit is contained in:
@@ -30,7 +30,7 @@ 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 file (parsed as JSONC) and extracting `baseURL`/`base_url` fields from provider options that contain "localhost". Falls back to `http://localhost:8080`.
|
||||
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.
|
||||
|
||||
### Slot Polling
|
||||
|
||||
|
||||
Reference in New Issue
Block a user