-
Notifications
You must be signed in to change notification settings - Fork 838
Add OpenAI's gpt-5-chat-latest non-reasoning model #875
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
Add OpenAI's gpt-5-chat-latest non-reasoning model #875
Conversation
WalkthroughAdded a new ChatGPT-5 latest model to configuration: introduced the key chatgptApi5Latest in chatgptApiModelKeys and added a Models entry mapping to value gpt-5-chat-latest with description. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Suggested labels
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code Graph Analysis (1)src/config/index.mjs (2)
🔇 Additional comments (2)
✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
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.
Pull Request Overview
This PR adds support for OpenAI's new GPT-5 chat model by introducing the gpt-5-chat-latest
non-reasoning model to the application's configuration.
- Adds
chatgptApi5Latest
to the list of available ChatGPT API model keys - Defines the model configuration with value
gpt-5-chat-latest
and descriptionChatGPT (ChatGPT-5 latest)
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
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.
Summary of Changes
Hello @PeterDaveHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!
This pull request introduces support for OpenAI's gpt-5-chat-latest
model by updating the application's configuration. This change allows the system to recognize and utilize the new model for various operations, expanding the range of available AI capabilities.
Highlights
- New Model Integration: The
gpt-5-chat-latest
model from OpenAI has been integrated into the application's configuration. - Configuration Update: The
src/config/index.mjs
file was updated to include the new model keychatgptApi5Latest
in thechatgptApiModelKeys
array and define itsvalue
anddesc
within theModels
object.
Using Gemini Code Assist
The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.
Invoking Gemini
You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command>
or @gemini-code-assist <command>
. Below is a summary of the supported commands.
Feature | Command | Description |
---|---|---|
Code Review | /gemini review |
Performs a code review for the current pull request in its current state. |
Pull Request Summary | /gemini summary |
Provides a summary of the current pull request in its current state. |
Comment | @gemini-code-assist | Responds in comments when explicitly tagged, both in issue comments and review comments. |
Help | /gemini help |
Displays a list of available commands. |
Customization
To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/
folder in the base of the repository. Detailed instructions can be found here.
Limitations & Feedback
Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.
You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.
Footnotes
-
Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
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.
Code Review
This pull request adds support for the new OpenAI model gpt-5-chat-latest
. The changes are straightforward, adding the new model key to chatgptApiModelKeys
and its configuration to the Models
object. I've found a minor inconsistency in the model description string, which I've commented on for improved code consistency.
@@ -249,6 +250,7 @@ export const Models = { | |||
desc: 'ChatGPT (GPT-4-Turbo 128k 0125 Preview)', | |||
}, | |||
chatgptApi4oLatest: { value: 'chatgpt-4o-latest', desc: 'ChatGPT (ChatGPT-4o latest)' }, | |||
chatgptApi5Latest: { value: 'gpt-5-chat-latest', desc: 'ChatGPT (ChatGPT-5 latest)' }, |
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.
For consistency with other model descriptions in this file, it would be better to use GPT-5
instead of ChatGPT-5
inside the description string. Most other models use the GPT-
prefix in their descriptions (e.g., ChatGPT (GPT-4-8k)
, ChatGPT (GPT-3.5-turbo)
). While chatgptApi4oLatest
has a similar format, standardizing new entries will improve maintainability.
chatgptApi5Latest: { value: 'gpt-5-chat-latest', desc: 'ChatGPT (GPT-5 latest)' },
User description
Reference:
PR Type
Enhancement
Description
Add OpenAI's new gpt-5-chat-latest model support
Update model configuration with GPT-5 latest variant
Diagram Walkthrough
File Walkthrough
index.mjs
Add GPT-5 model configuration
src/config/index.mjs
chatgptApi5Latest
to model keys arraySummary by CodeRabbit