-
Notifications
You must be signed in to change notification settings - Fork 853
Add GPT-5 ~ GPT-5.4 stable models #948
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 |
|---|---|---|
|
|
@@ -51,9 +51,13 @@ export const chatgptApiModelKeys = [ | |
| 'chatgptApi35_0125', | ||
| 'chatgptApi4o_128k', | ||
| 'chatgptApi5Latest', | ||
| 'chatgptApi5', | ||
| 'chatgptApi5_1Latest', | ||
| 'chatgptApi5_1', | ||
| 'chatgptApi5_2Latest', | ||
| 'chatgptApi5_2', | ||
| 'chatgptApi5_3Latest', | ||
| 'chatgptApi5_4', | ||
|
Comment on lines
59
to
+60
Contributor
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. 🧩 Analysis chain🏁 Script executed: # First, let's examine the src/config/index.mjs file to see the models around lines 59-60
cd /repo && head -n 270 src/config/index.mjs | tail -n +50 | head -n 70Repository: ChatGPTBox-dev/chatGPTBox Length of output: 124 🌐 Web query:
💡 Result: As of March 5, 2026, the stable GPT‑5 family model versions you can use are: OpenAI API (developer model IDs)
ChatGPT (end-user model names)
Sources: [1] [2] [3] 🏁 Script executed: git ls-files src/config/index.mjsRepository: ChatGPTBox-dev/chatGPTBox Length of output: 89 🏁 Script executed: # Get the actual content of the file around the flagged lines
head -n 270 src/config/index.mjs | tail -n +50Repository: ChatGPTBox-dev/chatGPTBox Length of output: 6640 Add missing GPT-5.3 Instant was released on March 3, 2026 and is available via the API. The code includes Add 🤖 Prompt for AI Agents
Member
Author
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. Not true.
Contributor
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. Question:Not true. Answer:To reduce “confident but wrong” claims like this in
Add to your [pr_code_suggestions]
extra_instructions = """\
- Do not use web queries or external knowledge (release dates/model availability). Base findings only on the PR diff and repository files provided.
- Before claiming something is missing/incorrect, quote the exact existing pattern from the code (relevant keys/arrays/sections) and explain why it violates that pattern.
- If the evidence is insufficient, do not propose a fix; ask a clarifying question or label it as a hypothesis (e.g., "might be missing").
- Avoid absolute language ("Not true", "breaking") unless you can point to a concrete reference in the code showing the failure.
"""If this is happening under Relevant Sources:
Contributor
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.
Contributor
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.
|
||
| 'chatgptApi4oMini', | ||
| 'chatgptApi4_8k', | ||
| 'chatgptApi4_8k_0613', | ||
|
|
@@ -246,9 +250,13 @@ export const Models = { | |
| desc: 'ChatGPT (GPT-4-Turbo 128k 0125 Preview)', | ||
| }, | ||
| chatgptApi5Latest: { value: 'gpt-5-chat-latest', desc: 'ChatGPT (ChatGPT-5 latest)' }, | ||
| chatgptApi5: { value: 'gpt-5', desc: 'ChatGPT (GPT-5)' }, | ||
| chatgptApi5_1Latest: { value: 'gpt-5.1-chat-latest', desc: 'ChatGPT (ChatGPT-5.1 latest)' }, | ||
| chatgptApi5_1: { value: 'gpt-5.1', desc: 'ChatGPT (GPT-5.1)' }, | ||
| chatgptApi5_2Latest: { value: 'gpt-5.2-chat-latest', desc: 'ChatGPT (ChatGPT-5.2 latest)' }, | ||
| chatgptApi5_2: { value: 'gpt-5.2', desc: 'ChatGPT (GPT-5.2)' }, | ||
| chatgptApi5_3Latest: { value: 'gpt-5.3-chat-latest', desc: 'ChatGPT (ChatGPT-5.3 latest)' }, | ||
| chatgptApi5_4: { value: 'gpt-5.4', desc: 'ChatGPT (GPT-5.4)' }, | ||
|
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. |
||
|
|
||
| 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)' }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -65,6 +65,10 @@ test('getNavigatorLanguage treats zh-Hant locale as zhHant', () => { | |||||||||||||||||||
|
|
||||||||||||||||||||
| test('isUsingChatgptApiModel detects chatgpt API models and excludes custom model', () => { | ||||||||||||||||||||
| assert.equal(isUsingChatgptApiModel({ modelName: 'chatgptApi4oMini' }), true) | ||||||||||||||||||||
| assert.equal(isUsingChatgptApiModel({ modelName: 'chatgptApi5' }), true) | ||||||||||||||||||||
| assert.equal(isUsingChatgptApiModel({ modelName: 'chatgptApi5_1' }), true) | ||||||||||||||||||||
| assert.equal(isUsingChatgptApiModel({ modelName: 'chatgptApi5_2' }), true) | ||||||||||||||||||||
| assert.equal(isUsingChatgptApiModel({ modelName: 'chatgptApi5_4' }), true) | ||||||||||||||||||||
|
Comment on lines
67
to
+71
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. To improve readability and make it easier to add more models in the future, you could refactor these repeated assertions into a loop. This avoids repeating
Suggested change
|
||||||||||||||||||||
| assert.equal(isUsingChatgptApiModel({ modelName: 'customModel' }), false) | ||||||||||||||||||||
| }) | ||||||||||||||||||||
|
|
||||||||||||||||||||
|
|
||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -117,6 +117,13 @@ test('modelNameToDesc returns desc for a known model name without t function', ( | |||||||||||||||||||||||||||||||||||
| assert.equal(desc, 'ChatGPT (Web)') | ||||||||||||||||||||||||||||||||||||
| }) | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| test('modelNameToDesc returns desc for GPT-5 stable presets', () => { | ||||||||||||||||||||||||||||||||||||
| assert.equal(modelNameToDesc('chatgptApi5'), 'ChatGPT (GPT-5)') | ||||||||||||||||||||||||||||||||||||
| assert.equal(modelNameToDesc('chatgptApi5_1'), 'ChatGPT (GPT-5.1)') | ||||||||||||||||||||||||||||||||||||
| assert.equal(modelNameToDesc('chatgptApi5_2'), 'ChatGPT (GPT-5.2)') | ||||||||||||||||||||||||||||||||||||
| assert.equal(modelNameToDesc('chatgptApi5_4'), 'ChatGPT (GPT-5.4)') | ||||||||||||||||||||||||||||||||||||
| }) | ||||||||||||||||||||||||||||||||||||
|
Comment on lines
+120
to
+125
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. This is a good test case. To make it more concise and easier to extend with more models in the future, consider using a data-driven approach. You can iterate over a map of model names to their expected descriptions.
Suggested change
|
||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
| test('modelNameToDesc appends extraCustomModelName for customModel', () => { | ||||||||||||||||||||||||||||||||||||
| const desc = modelNameToDesc('customModel', null, 'my-gpt') | ||||||||||||||||||||||||||||||||||||
| assert.equal(desc, 'Custom Model (my-gpt)') | ||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.