chore(config): revisteded ai configuration for opencode
This commit is contained in:
1 parent
1989ec9383
commit
b74c0e0ccc
1 file changed
+22
-6
@@ -16,23 +16,39 @@ curl -fsSL https://opencode.ai/install | bash
|
||||
```json
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"model": "omniroute/qwen3.8-27b-local//models/Qwen3.8-27B-UD-Q4_K_XL.gguf",
|
||||
"provider": {
|
||||
"llm-server": {
|
||||
"omniroute": {
|
||||
"npm": "@ai-sdk/openai-compatible",
|
||||
"name": "LLM-Server gateway",
|
||||
"name": "OmniRoute",
|
||||
"options": {
|
||||
"baseURL": "http://<server>:<OMNIROUTE_API_PORT>/v1",
|
||||
"apiKey": "<opencode-cli API key>"
|
||||
"baseURL": "https://<YOUR-OMNIROUTE-PROXY>/v1"
|
||||
},
|
||||
"models": {
|
||||
"qwen3.8-27b-local": {
|
||||
"qwen3.8-27b-local//models/Qwen3.8-27B-UD-Q4_K_XL.gguf": {
|
||||
"name": "Qwen3.8-27B",
|
||||
"limit": { "context": <LLAMA_CTX_SIZE / LLAMA_PARALLEL>, "output": 8192 }
|
||||
"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.
|
||||
|
||||
Reference in new issue
Block a user