-
Notifications
You must be signed in to change notification settings - Fork 851
Add support for OpenAI's gpt-5.1-chat-latest model #905
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,6 +53,7 @@ export const chatgptApiModelKeys = [ | |
| 'chatgptApi4o_128k', | ||
| 'chatgptApi4oLatest', | ||
| 'chatgptApi5Latest', | ||
| 'chatgptApi5_1Latest', | ||
| 'chatgptApi4oMini', | ||
| 'chatgptApi4_8k', | ||
| 'chatgptApi4_8k_0613', | ||
|
|
@@ -256,6 +257,7 @@ export const Models = { | |
| }, | ||
| chatgptApi4oLatest: { value: 'chatgpt-4o-latest', desc: 'ChatGPT (ChatGPT-4o latest)' }, | ||
| chatgptApi5Latest: { value: 'gpt-5-chat-latest', desc: 'ChatGPT (ChatGPT-5 latest)' }, | ||
| chatgptApi5_1Latest: { value: 'gpt-5.1-chat-latest', desc: 'ChatGPT (ChatGPT-5.1 latest)' }, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The ordering in the |
||
|
|
||
| chatgptApi4_1: { value: 'gpt-4.1', desc: 'ChatGPT (GPT-4.1)' }, | ||
| chatgptApi4_1_mini: { value: 'gpt-4.1-mini', desc: 'ChatGPT (GPT-4.1 mini)' }, | ||
|
|
||
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.
While adding the new model here is logical, it places the
gpt-5models betweengpt-4omodels (chatgptApi4oLateston line 54 andchatgptApi4oMinion line 57), which can be confusing for future maintenance. To improve readability, it would be better to group all models of the same family together. A small refactoring to group allgpt-4omodels before thegpt-5models would be an improvement.