-
Notifications
You must be signed in to change notification settings - Fork 8.6k
FEATURE: support GPT-5 #34168
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
FEATURE: support GPT-5 #34168
Conversation
Also adds mappings for Claude on AWS - ensures developer message is used - ensures we do the max token remapping needed - ensures reasoning effort is passed along
This pull request has been mentioned on Discourse Meta. There might be relevant details there: |
( | ||
llm_model.name.start_with?("o1") || llm_model.name.start_with?("o3") || | ||
llm_model.name.start_with?("gpt-5") | ||
) |
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.
it would be nice to have REASONING_MODEL_PREFIX_LIST
. Just ultra NIT improvement
@@ -14,7 +14,7 @@ def normalize_model_params(model_params) | |||
# max_tokens is deprecated however we still need to support it | |||
# on older OpenAI models and older Azure models, so we will only normalize | |||
# if our model name starts with o (to denote all the reasoning models) | |||
if llm_model.name.starts_with?("o") | |||
if llm_model.name.starts_with?("o") | llm_model.name.starts_with?("gpt-5") |
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.
Then that magic const can be used here as well
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.
Cool yeah will follow up next week
Also adds mappings for Claude on AWS - ensures developer message is used - ensures we do the max token remapping needed - ensures reasoning effort is passed along
This pull request has been mentioned on Discourse Meta. There might be relevant details there: https://meta.discourse.org/t/weekly-summary-of-ai-topics/293532/81 |
Also adds mappings for Claude on AWS