-
Notifications
You must be signed in to change notification settings - Fork 5k
feat(gpt5): add model_verbosity for GPT‑5 via Responses API #2108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2 small comments but LGTM otherwise!
…T-5 via Responses API; docs and tests
- improve code readability by removing unnecessary line breaks and indentation - maintain existing behavior while making the code more concise and consistent
…o streamline documentation and avoid confusion
…t-5 models to improve debugging and clarity
8b68120
to
2da6343
Compare
with this make cargo build and test passing
dylan-hurd-oai
approved these changes
Aug 22, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested locally - confirmed this works. Thanks for adding!
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
model_verbosity
config (values: low, medium, high).text.verbosity
only for GPT‑5 family models via the Responses API.Motivation
mpt surgery.
and repeatable.
Changes
Verbosity
enum (low|medium|high).model_verbosity
toConfigToml
,Config
, andConfigProfi le
.ResponsesApiRequest
with optionaltext
object.text.verbosity
only when model family isgpt-5
; omitted otherwise.
text.verbosity
serializes when set and is omitted when not set.codex-rs/README.md
.model_verbosity
section tocodex-rs/config.md
.Usage
~/.codex/config.toml
:model = "gpt-5"
model_verbosity = "low"
(or"medium"
default,"high"
)codex -c model="gpt-5" -c model_verbosity="high"
API Impact
text: { verbosity: "low|medium|h igh" }
when configured.text
is omitted.Backward Compatibility
model_verbosity
is not set (server default “medium”).
Testing
text.verbosity
.cargo fmt
andcargo test --all-features
(all green).Docs
README.md
: new “GPT‑5 Verbosity” note under Config with example.config.md
: newmodel_verbosity
section.Out of Scope
Risks / Notes
Respons esApiRequest
.gpt-5
model family to avoid unexpected effects elsewhere.Checklist
README.md
,config.md
)Release note: Add
model_verbosity
config to control GPT‑5 output verbosity viathe Responses API (low|medium|high).