feat(providers): support Codex fast mode

This commit is contained in:
chengyongru
2026-07-21 17:55:17 +08:00
committed by chengyongru
parent b46e7f4377
commit 1d7bad3909
4 changed files with 59 additions and 0 deletions
+19
View File
@@ -676,6 +676,25 @@ Then run:
nanobot agent -m "Hello!"
```
To opt in to Codex Fast mode, merge this provider setting into `config.json`:
```json
{
"providers": {
"openaiCodex": {
"extraBody": {
"service_tier": "priority"
}
}
}
}
```
`priority` is the Responses API request value used by Codex Fast mode. The setting only works
for models and accounts that support Fast mode; remove `service_tier` to return to standard
processing. Fast mode consumes Codex credits at a higher rate. See the
[OpenAI Codex rate card](https://help.openai.com/en/articles/20001106) for current details.
For proxy, remote/headless login, model-name, or config-key errors, see [`troubleshooting.md`](./troubleshooting.md#provider-and-model-problems).
</details>