Skip to content

Commit eee2374

Browse files
authored
Merge pull request #100 from ndycode/fix/issue-98-model-catalog-docs
Clarify modern model catalog counts and variant presets
2 parents 5cc2b5e + 1347126 commit eee2374

File tree

7 files changed

+537
-75
lines changed

7 files changed

+537
-75
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ What the installer does:
3535
- normalizes the plugin entry to `"oc-chatgpt-multi-auth"`
3636
- clears the cached plugin copy so OpenCode reinstalls the latest package
3737

38+
By default, the installer now writes a full catalog config that includes both:
39+
- modern base model entries such as `gpt-5.4` for `--variant` workflows
40+
- explicit preset entries such as `gpt-5.4-high` so the shipped catalog is visible directly in model pickers
41+
3842
## Example Usage
3943

4044
```bash
@@ -96,10 +100,10 @@ See [Architecture](docs/development/ARCHITECTURE.md) for implementation details.
96100

97101
Use the quick-start path above for the fastest setup. For full setup, local development installs, legacy OpenCode support, and verification steps, see [Getting Started](docs/getting-started.md).
98102

99-
If you are on OpenCode `v1.0.209` or earlier, use:
103+
If you prefer the compact variant-only config on OpenCode `v1.0.210+`, use:
100104

101105
```bash
102-
npx -y oc-chatgpt-multi-auth@latest --legacy
106+
npx -y oc-chatgpt-multi-auth@latest --modern
103107
```
104108

105109
## Configuration

config/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ This directory contains the official OpenCode config templates for the ChatGPT C
99
| [`opencode-modern.json`](./opencode-modern.json) | **v1.0.210+** | Variant-based config: 9 base models with 34 total presets |
1010
| [`opencode-legacy.json`](./opencode-legacy.json) | **v1.0.209 and below** | Legacy explicit entries: 34 individual model definitions |
1111

12+
The installer currently uses a merged full-catalog mode by default so users get both the modern base entries and the explicit preset entries without having to hand-edit `opencode.json`.
13+
1214
## Quick pick
1315

1416
If your OpenCode version is v1.0.210 or newer:

docs/configuration.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,11 @@ controls how much thinking the model does.
4646
| `gpt-5.1-codex-mini` | medium, high |
4747
| `gpt-5.1` | none, low, medium, high |
4848

49-
the shipped config templates include 7 base model families and 26 shipped presets overall (26 modern variants or 26 legacy explicit entries). add `gpt-5.4-pro` and/or `gpt-5.3-codex-spark` manually only for entitled workspaces.
50-
for context sizing, shipped templates use:
51-
- `gpt-5.4`, `gpt-5.4-mini`, and `gpt-5.4-pro`: `context=1000000`, `output=128000`
52-
- other shipped families: `context=272000`, `output=128000`
49+
The shipped config templates include 9 base model families and 34 shipped presets overall (34 modern variants or 34 legacy explicit entries). On OpenCode `v1.0.210+`, those 34 presets intentionally appear as 9 base model entries plus `--variant` values. `gpt-5.4-pro` ships in the templates but may still be entitlement-gated at runtime, while `gpt-5.3-codex-spark` remains a manual add-on for entitled workspaces only.
50+
For context sizing, shipped templates use:
51+
- `gpt-5.4` and `gpt-5.4-pro`: `context=1050000`, `output=128000`
52+
- `gpt-5.4-mini`, `gpt-5.4-nano`, `gpt-5-codex`, `gpt-5.1-codex`, `gpt-5.1-codex-max`, and `gpt-5.1-codex-mini`: `context=400000`, `output=128000`
53+
- `gpt-5.1`: `context=272000`, `output=128000`
5354

5455
model normalization aliases:
5556
- legacy `gpt-5`, `gpt-5-mini`, `gpt-5-nano` map to `gpt-5.4` (not to `gpt-5.4-mini`)

docs/development/CONFIG_FLOW.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ That file controls plugin behavior such as retry policy, beginner safe mode, fal
4747

4848
`scripts/install-opencode-codex-auth.js` performs these steps:
4949

50-
1. Load the selected template (`config/opencode-modern.json` by default, `config/opencode-legacy.json` with `--legacy`).
50+
1. Load the selected template set (`full` by default, `config/opencode-modern.json` with `--modern`, `config/opencode-legacy.json` with `--legacy`).
5151
2. Back up an existing `~/.config/opencode/opencode.json`.
5252
3. Normalize the plugin list so it ends with plain `oc-chatgpt-multi-auth`.
5353
4. Replace `provider.openai` with the selected shipped template block.
@@ -56,20 +56,32 @@ That file controls plugin behavior such as retry policy, beginner safe mode, fal
5656
Important detail:
5757

5858
- The installer intentionally writes the plugin entry as `oc-chatgpt-multi-auth`, not `oc-chatgpt-multi-auth@latest`.
59+
- The default `full` install mode merges the modern base-model template with the explicit legacy preset entries so users can access `--variant` workflows and still see the full shipped preset catalog directly.
5960

6061
## Shipped Template Structure
6162

6263
### Modern template
6364

64-
`config/opencode-modern.json` is the default for OpenCode `v1.0.210+`.
65+
`config/opencode-modern.json` is the compact variant-based template for OpenCode `v1.0.210+`.
6566

6667
It currently ships:
6768

68-
- 7 base model families
69-
- 26 total variants
70-
- `gpt-5.4` and `gpt-5.4-mini` at 1,000,000 context / 128,000 output
69+
- 9 base model families
70+
- 34 total variants
71+
- `gpt-5.4` and `gpt-5.4-pro` at 1,050,000 context / 128,000 output
72+
- `gpt-5.4-mini`, `gpt-5.4-nano`, and Codex families at 400,000 context / 128,000 output
73+
- `gpt-5.1` at 272,000 context / 128,000 output
7174
- `store: false` plus `include: ["reasoning.encrypted_content"]`
7275

76+
### Full installer mode
77+
78+
The default installer mode combines:
79+
80+
- the 9 modern base model entries from `config/opencode-modern.json`
81+
- the 34 explicit preset entries from `config/opencode-legacy.json`
82+
83+
That hybrid install mode is what fixes the "only 9 models" complaint without removing `--variant` support.
84+
7385
Example shape:
7486

7587
```json
@@ -110,7 +122,7 @@ opencode run "task" --model=openai/gpt-5.4 --variant=high
110122

111123
It currently ships:
112124

113-
- 26 explicit model entries
125+
- 34 explicit model entries
114126
- separate model IDs such as `gpt-5.4-high` and `gpt-5.4-mini-xhigh`
115127
- the same OpenAI provider defaults (`store: false`, `reasoning.encrypted_content`)
116128

docs/getting-started.md

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,17 @@ opencode run "Explain this repository" --model=openai/gpt-5.4 --variant=medium
2929

3030
The installer updates `~/.config/opencode/opencode.json`, backs up the previous config, normalizes the plugin entry to `oc-chatgpt-multi-auth`, and clears the cached plugin copy so OpenCode reinstalls the latest package.
3131

32-
If you are on OpenCode `v1.0.209` or earlier, use:
32+
By default, the installer writes a full catalog config so you get both:
33+
- modern base model entries such as `gpt-5.4` for `--variant` workflows
34+
- explicit preset entries such as `gpt-5.4-high` so the full shipped catalog is visible directly in pickers
35+
36+
If you prefer the compact variant-only config on OpenCode `v1.0.210+`, use:
37+
38+
```bash
39+
npx -y oc-chatgpt-multi-auth@latest --modern
40+
```
41+
42+
If you explicitly want the older explicit-only layout, use:
3343

3444
```bash
3545
npx -y oc-chatgpt-multi-auth@latest --legacy
@@ -101,9 +111,11 @@ The repository ships two supported templates:
101111
| `v1.0.209` and earlier | [`config/opencode-legacy.json`](../config/opencode-legacy.json) |
102112

103113
The templates include the supported GPT-5/Codex families, required `store: false` handling, and `reasoning.encrypted_content` for multi-turn sessions.
104-
Current templates expose 7 shipped base model families and 26 shipped presets overall (26 modern variants or 26 legacy explicit entries), including `gpt-5.4-mini`.
114+
Current templates expose 9 shipped base model families and 34 shipped presets overall (34 modern variants or 34 legacy explicit entries).
115+
116+
On OpenCode `v1.0.210+`, the modern template intentionally shows 9 base model entries because the additional presets are selected through `--variant` instead of separate model keys.
105117

106-
Optional model IDs such as `gpt-5.4-pro` or entitlement-gated Spark variants should be added manually only when your workspace supports them.
118+
`gpt-5.4-pro` ships in the templates but can still be entitlement-gated by your workspace. Add entitlement-gated Spark variants manually only when your workspace supports them.
107119

108120
## Verify the Setup
109121

0 commit comments

Comments
 (0)