chore: v1.0.17 — detect llama-server from api.state.config.provider

This commit is contained in:
Troed Sångberg
2026-07-08 13:10:52 +02:00
parent 04baa5b053
commit dfd3591f16
3 changed files with 23 additions and 85 deletions
+1 -1
View File
@@ -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