Skip to content

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

Merged
merged 2 commits into from
Aug 8, 2025
Merged

FEATURE: support GPT-5 #34168

merged 2 commits into from
Aug 8, 2025

Conversation

SamSaffron
Copy link
Member

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

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
@github-actions github-actions bot added i18n PRs which update English locale files or i18n related code discourse-ai labels Aug 8, 2025
@discoursebot
Copy link

This pull request has been mentioned on Discourse Meta. There might be relevant details there:

https://meta.discourse.org/t/discourse-ai/259214/226

(
llm_model.name.start_with?("o1") || llm_model.name.start_with?("o3") ||
llm_model.name.start_with?("gpt-5")
)
Copy link
Contributor

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")
Copy link
Contributor

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

Copy link
Member Author

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

@SamSaffron SamSaffron merged commit d410df3 into main Aug 8, 2025
16 checks passed
@SamSaffron SamSaffron deleted the gpt-5 branch August 8, 2025 07:32
pento pushed a commit that referenced this pull request Aug 11, 2025
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
@discoursebot
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discourse-ai i18n PRs which update English locale files or i18n related code
Development

Successfully merging this pull request may close these issues.

3 participants