Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 48 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,12 +233,56 @@ This plugin can still use the newest model by **mapping** the selected Codex mod
to the latest backend model on ChatGPT.

Default behavior:
- If you select `openai/gpt-5.2-codex` (or `openai/gpt-5-codex`), the plugin will send requests as `gpt-5.3-codex`.
- If you opt in, selecting `openai/gpt-5.3-codex`, `openai/gpt-5.2-codex`, or `openai/gpt-5-codex` can be routed to `gpt-5.4`.

Environment variables:
- `OPENCODE_MULTI_AUTH_PREFER_CODEX_LATEST=0` disables the mapping (use exact model).
- `OPENCODE_MULTI_AUTH_CODEX_LATEST_MODEL=gpt-5.3-codex` overrides the target model.
- `OPENCODE_MULTI_AUTH_DEBUG=1` prints mapping logs like: `model map: gpt-5.2-codex -> gpt-5.3-codex`.
- `OPENCODE_MULTI_AUTH_PREFER_CODEX_LATEST=1` enables the mapping (default is exact model).
- `OPENCODE_MULTI_AUTH_CODEX_LATEST_MODEL=gpt-5.4` overrides the target model.
- `OPENCODE_MULTI_AUTH_DEBUG=1` prints mapping logs like: `model map: gpt-5.3-codex -> gpt-5.4`.

## Fast Mode

For OpenCode, the clean way to mirror Codex Fast mode is:

- keep the model as `openai/gpt-5.4`
- use a model variant such as `fast`
- set `serviceTier=priority` in the variant config

Behavior:
- the backend model stays `gpt-5.4`
- the plugin forwards the request with `service_tier=priority`
- the plugin does not automatically lower reasoning or verbosity

Recommended OpenCode config:

```json
{
"provider": {
"openai": {
"models": {
"gpt-5.4": {
"variants": {
"Medium Fast": {
"reasoningEffort": "medium",
"serviceTier": "priority"
},
"High Fast": {
"reasoningEffort": "high",
"serviceTier": "priority"
},
"XHigh Fast": {
"reasoningEffort": "xhigh",
"serviceTier": "priority"
}
}
}
}
}
}
}
```

See [docs/gpt-5.4-fast-benchmark.md](./docs/gpt-5.4-fast-benchmark.md) for a continued-session benchmark summary.

## Troubleshooting

Expand Down
2 changes: 1 addition & 1 deletion dist/index.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

61 changes: 40 additions & 21 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/models.d.ts.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 34 additions & 0 deletions dist/models.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading