Add support for GPT-5.4 (#93)

Co-authored-by: Nigel Norris <ras@alghul.com>
This commit is contained in:
Ra's al Ghul
2026-03-08 07:08:14 -04:00
committed by GitHub
parent 5b51b53a20
commit baf312a02e
6 changed files with 21 additions and 6 deletions

View File

@@ -116,6 +116,7 @@ curl http://127.0.0.1:8000/v1/chat/completions \
- `gpt-5`
- `gpt-5.1`
- `gpt-5.2`
- `gpt-5.4`
- `gpt-5-codex`
- `gpt-5.2-codex`
- `gpt-5.3-codex`
@@ -128,9 +129,9 @@ curl http://127.0.0.1:8000/v1/chat/completions \
### Thinking effort
- `--reasoning-effort` (choice of minimal,low,medium,high,xhigh)<br>
- `--reasoning-effort` (choice of none,minimal,low,medium,high,xhigh)<br>
GPT-5 has a configurable amount of "effort" it can put into thinking, which may cause it to take more time for a response to return, but may overall give a smarter answer. Applying this parameter after `serve` forces the server to use this reasoning effort by default, unless overrided by the API request with a different effort set. The default reasoning effort without setting this parameter is `medium`.<br>
The `gpt-5.1` family (including codex) supports `low`, `medium`, and `high` while `gpt-5.1-codex-max` adds `xhigh`. The `gpt-5.2` and `gpt-5.3` families (including codex) support `low`, `medium`, `high`, and `xhigh`.
The `gpt-5.1` family (including codex) supports `low`, `medium`, and `high` while `gpt-5.1-codex-max` adds `xhigh`. The `gpt-5.2` and `gpt-5.3` families (including codex) support `low`, `medium`, `high`, and `xhigh`. GPT-5.4 supports `none`, `low`, `medium`, `high`, and `xhigh`.
### Thinking summaries