From b74c0e0cccf56f5ac8aa7bd19cd80cb936081204 Mon Sep 17 00:00:00 2001 From: Arthur Erlich <1+haylan@noreply.localhost> Date: Fri, 2 Oct 2026 06:53:33 +0000 Subject: [PATCH] chore(config): revisteded ai configuration for opencode --- docs/coding-cli-setup/opencode.md | 46 +++++++++++++++++++++---------- 1 file changed, 31 insertions(+), 15 deletions(-) diff --git a/docs/coding-cli-setup/opencode.md b/docs/coding-cli-setup/opencode.md index 050bb94..41a94ed 100644 --- a/docs/coding-cli-setup/opencode.md +++ b/docs/coding-cli-setup/opencode.md @@ -15,24 +15,40 @@ curl -fsSL https://opencode.ai/install | bash ```json { - "$schema": "https://opencode.ai/config.json", - "provider": { - "llm-server": { - "npm": "@ai-sdk/openai-compatible", - "name": "LLM-Server gateway", - "options": { - "baseURL": "http://:/v1", - "apiKey": "" - }, - "models": { - "qwen3.8-27b-local": { - "name": "Qwen3.8-27B", - "limit": { "context": , "output": 8192 } + "$schema": "https://opencode.ai/config.json", + "model": "omniroute/qwen3.8-27b-local//models/Qwen3.8-27B-UD-Q4_K_XL.gguf", + "provider": { + "omniroute": { + "npm": "@ai-sdk/openai-compatible", + "name": "OmniRoute", + "options": { + "baseURL": "https:///v1" + }, + "models": { + "qwen3.8-27b-local//models/Qwen3.8-27B-UD-Q4_K_XL.gguf": { + "name": "Qwen3.8-27B", + "reasoning": true, + "interleaved": { + "field": "reasoning_content" + }, + "limit": { + "context": 131000, + "output": 65536 + }, + "cost": { + "input": 0.4, + "output": 3.0, + "cache": { + "read": 0.04, + "write": 0 + } + } + } + } } - } } - } } + ``` `limit.context` is the per-slot context ([overview](index.md)). OpenCode uses it for its own context bookkeeping; the server doesn't read it.