You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(dspy): exclude gpt-5-chat from reasoning model classification (#9033)
The regex pattern for identifying reasoning models was incorrectly
matching gpt-5-chat, causing it to be subject to reasoning model
validation requirements and attempting to pass reasoning parameters
that Azure's API doesn't support for this model.
Updated the regex to use negative lookahead (?!-chat) to exclude
gpt-5-chat while still allowing other gpt-5 variants like gpt-5-mini,
gpt-5-nano, and gpt-5-pro to be recognized as reasoning models.
- Updated regex pattern in dspy/clients/lm.py
- Added test case for gpt-5-chat in test_reasoning_model_token_parameter
- Added dedicated test test_gpt_5_chat_not_reasoning_model
Fixes issue where gpt-5-chat (Azure AI Foundry) was incorrectly
classified as a reasoning model, preventing normal usage with
standard temperature and max_tokens values.
0 commit comments