add GPT-5 model constants and reasoning validation #1062
Merged
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.
Add GPT-5 model constants and reasoning validation
This PR adds support for OpenAI's newly released GPT-5 model series and extends the existing reasoning model validation to include GPT-5 models.
Model Constants Added:
GPT5
- Main GPT-5 model (gpt-5
)GPT5Mini
- Smaller variant (gpt-5-mini
)GPT5Nano
- Fastest variant (gpt-5-nano
)GPT5ChatLatest
- Latest chat-optimized variant (gpt-5-chat-latest
)Also extended
ReasoningValidator
to include GPT-5 series models as GPT-5 models now validate parameter restrictions like O1/O3/O4 series:logprobs
not supportedtemperature
,top_p
,n
fixed at 1presence_penalty
,frequency_penalty
fixed at 0Testing
TestGPT5ModelsChatCompletionsBetaLimitations
validates parameter restrictionsTestCompletionWithGPT5Models
for completions endpoint restrictions