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