Files
6krrt/opencode.json
adlee-was-taken 79aa907351 chore(opencode): cap auto's advertised context at 200k
At 782k opencode never compacted, and planning sessions grew to 500-640k
tokens before the models degraded (incident #8). The live global config
already carries 200k; this brings the repo copy in line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N9biTbFC63yDfYfUsZmhgd
2026-09-26 15:21:38 -04:00

107 lines
2.3 KiB
JSON

{
"$schema": "https://opencode.ai/config.json",
"model": "llm-router/auto",
"provider": {
"llm-router": {
"name": "Local LLM Router",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "http://127.0.0.1:8080/v1",
"apiKey": "unused"
},
"models": {
"auto": {
"name": "auto (router picks, interactive)",
"limit": {
"context": 200000,
"output": 16384
},
"modalities": {
"input": [
"text",
"image"
]
}
},
"auto:batch": {
"name": "auto (router picks, admits flex/async)",
"limit": {
"context": 782324,
"output": 16384
},
"modalities": {
"input": [
"text",
"image"
]
}
},
"deepseek-v4-flash": {
"name": "Deepseek V4 Flash (pin)",
"limit": {
"context": 1048560,
"output": 16384
},
"modalities": {
"input": [
"text"
]
}
},
"gemma-4-31b": {
"name": "Gemma 4 31B (pin)",
"limit": {
"context": 262128,
"output": 16384
},
"modalities": {
"input": [
"text",
"image"
]
}
},
"kimi-k2.7-code": {
"name": "Kimi K2.7 Code (pin)",
"limit": {
"context": 262128,
"output": 16384
},
"modalities": {
"input": [
"text",
"image"
]
}
},
"kimi-k3": {
"name": "Kimi K3 (pin)",
"limit": {
"context": 1048560,
"output": 16384
},
"modalities": {
"input": [
"text",
"image"
]
}
},
"qwen3.6-35b": {
"name": "Qwen 3.6 35B (pin)",
"limit": {
"context": 131056,
"output": 16384
},
"modalities": {
"input": [
"text",
"image"
]
}
}
}
}
}
}