Skip to content

Commit e2e756d

Browse files
committed
Merge origin/main into fix/max-output-tokens
2 parents f2f1d93 + 405ef3f commit e2e756d

14 files changed

+732
-134
lines changed

config/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ This directory contains the official OpenCode config templates for the ChatGPT C
66

77
| File | OpenCode version | Description |
88
|------|------------------|-------------|
9-
| [`opencode-modern.json`](./opencode-modern.json) | **v1.0.210+** | Variant-based config: 7 base models with 26 total presets |
10-
| [`opencode-legacy.json`](./opencode-legacy.json) | **v1.0.209 and below** | Legacy explicit entries: 26 individual model definitions |
9+
| [`opencode-modern.json`](./opencode-modern.json) | **v1.0.210+** | Variant-based config: 9 base models with 34 total presets |
10+
| [`opencode-legacy.json`](./opencode-legacy.json) | **v1.0.209 and below** | Legacy explicit entries: 34 individual model definitions |
1111

1212
## Quick pick
1313

@@ -34,16 +34,16 @@ opencode --version
3434
OpenCode v1.0.210+ added model `variants`, so one model entry can expose multiple reasoning levels. That keeps modern config much smaller while preserving the same effective presets.
3535

3636
Both templates include:
37-
- GPT-5.4, GPT-5.4 Mini, GPT-5 Codex, GPT-5.1, GPT-5.1 Codex, GPT-5.1 Codex Max, GPT-5.1 Codex Mini
37+
- GPT-5.4, GPT-5.4 Pro, GPT-5.4 Mini, GPT-5.4 Nano, GPT-5 Codex, GPT-5.1, GPT-5.1 Codex, GPT-5.1 Codex Max, GPT-5.1 Codex Mini
3838
- Reasoning variants per model family
3939
- `store: false` and `include: ["reasoning.encrypted_content"]`
40-
- Context metadata (`gpt-5.4*`: 1,000,000 context / 128,000 output; other shipped models: 272,000 / 128,000)
40+
- Context metadata (`gpt-5.4`/`gpt-5.4-pro`: 1,050,000; `gpt-5.4-mini`/`gpt-5.4-nano`/Codex models: 400,000; `gpt-5.1`: 272,000; all output: 128,000)
4141

4242
Use `opencode debug config` to verify that these template entries were merged into your effective config. `opencode models openai` currently shows OpenCode's built-in provider catalog and can omit config-defined entries such as `gpt-5.4-mini`.
4343

4444
If your OpenCode runtime supports global compaction tuning, you can also set:
45-
- `model_context_window = 1000000`
46-
- `model_auto_compact_token_limit = 900000`
45+
- `model_context_window = 1050000`
46+
- `model_auto_compact_token_limit = 950000`
4747

4848
## Spark model note
4949

0 commit comments

Comments
 (0)