Repository navigation
π°οΈ feat: Add GPT-5.5 + Frontier OpenAI Models, Drop Deprecated Defaults #13636
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
549fb38
3968115
ea432bc
13aa046
09052a2
1c4d1fd
70c841a
ffa6359
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 |
|---|---|---|
|
|
@@ -1578,40 +1578,27 @@ export const alternateName = { | |
| }; | ||
|
|
||
| const sharedOpenAIModels = [ | ||
| 'gpt-5.5', | ||
| 'gpt-5.5-pro', | ||
|
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.
Exposing Useful? React with πΒ / π.
Collaborator
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. Keeping it listed, deliberately β the maintainer descoped endpoint/handler behavior from this PR: the OpenAI-compat surface (including pro-model streaming handling) is moving into the agents SDK, and the catalog should reflect the current frontier lineup. The same constraint class already ships today via |
||
| 'chat-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.
Adding Useful? React with πΒ / π.
Collaborator
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. Confirmed and fixed in ea432bc β added 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.
When users select the new Useful? React with πΒ / π.
Collaborator
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. Confirmed and fixed in 13aa046 β the max-token conversion guard now also matches
Collaborator
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. Update: the endpoint/handler fix for this was reverted in 1c4d1fd β this PR is intentionally trimmed to model-catalog changes only (lists, token windows, pricing, fetched-model filter). The OpenAI-compat endpoint/handler surface is moving out of LibreChat into the agents SDK, where this behavior belongs. |
||
| 'gpt-5.4', | ||
| // TODO: gpt-5.4-thinking may have separate reasoning token pricing β verify before release | ||
| 'gpt-5.4-thinking', | ||
| 'gpt-5.4-pro', | ||
| 'gpt-5.4-mini', | ||
| 'gpt-5.4-nano', | ||
| 'gpt-5.3-codex', | ||
| 'gpt-5.2', | ||
| 'gpt-5.1', | ||
| 'gpt-5.1-chat-latest', | ||
| 'gpt-5.1-codex', | ||
| 'gpt-5.1-codex-max', | ||
|
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.
OpenAI now marks Useful? React with πΒ / π.
Collaborator
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. Keeping this one β the model page only marks a dated snapshot as deprecated; the default 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.
When the OpenAI model fetch is skipped or fails, this static list is what users can select, so adding Useful? React with πΒ / π.
Collaborator
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. Re-checked the model page just now: the Deprecated label still applies only to a dated snapshot row in the Snapshots section β the model itself carries no deprecation marking, the page describes it as current ("purpose-built for agentic coding") with active pricing, no replacement is recommended, and it is absent from the deprecations page. Same conclusion as the earlier thread on this entry; keeping it. If OpenAI deprecates the model proper (as with gpt-5.2-codex, which this PR deliberately excludes), it should come out in a catalog follow-up. |
||
| 'gpt-5.1-codex-mini', | ||
| 'gpt-5', | ||
| 'gpt-5-mini', | ||
| 'gpt-5-nano', | ||
| 'gpt-5-chat-latest', | ||
| 'gpt-4.1', | ||
| 'gpt-4.1-mini', | ||
| 'gpt-4.1-nano', | ||
| 'gpt-4o-mini', | ||
| 'gpt-4o', | ||
| 'gpt-4.5-preview', | ||
| 'gpt-4.5-preview-2025-02-27', | ||
| 'gpt-3.5-turbo', | ||
| 'gpt-3.5-turbo-0125', | ||
| 'gpt-4-turbo', | ||
| 'gpt-4-turbo-2024-04-09', | ||
| 'gpt-4-0125-preview', | ||
| 'gpt-4-turbo-preview', | ||
| 'gpt-4-1106-preview', | ||
| 'gpt-3.5-turbo-1106', | ||
| 'gpt-3.5-turbo-16k-0613', | ||
| 'gpt-3.5-turbo-16k', | ||
| 'gpt-4', | ||
| 'gpt-4-0314', | ||
| 'gpt-4-32k-0314', | ||
| 'gpt-4-0613', | ||
| 'gpt-3.5-turbo-0613', | ||
| ]; | ||
|
|
||
| const sharedAnthropicModels = [ | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -129,8 +129,16 @@ export const tokenValues: Record<string, { prompt: number; completion: number }> | |
| 'gpt-5.2': { prompt: 1.75, completion: 14 }, | ||
| 'gpt-5.3': { prompt: 1.75, completion: 14 }, | ||
| 'gpt-5.4': { prompt: 2.5, completion: 15 }, | ||
| // TODO: gpt-5.4-pro pricing not yet officially published β verify before release | ||
| 'gpt-5.4-pro': { prompt: 5, completion: 30 }, | ||
| 'gpt-5.4-pro': { prompt: 30, completion: 180 }, | ||
| 'gpt-5.4-mini': { prompt: 0.75, completion: 4.5 }, | ||
|
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.
When OpenAI returns Useful? React with πΒ / π.
Collaborator
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. Confirmed and fixed in ffa6359 β |
||
| 'gpt-5.4-nano': { prompt: 0.2, completion: 1.25 }, | ||
| 'gpt-5.5': { prompt: 5, completion: 30 }, | ||
|
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.
For GPT-5.5, OpenAI publishes separate long-context rates ( Useful? React with πΒ / π.
Collaborator
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. Confirmed and fixed in 3968115 β added |
||
| 'gpt-5.5-pro': { prompt: 30, completion: 180 }, | ||
| 'chat-latest': { prompt: 5, completion: 30 }, | ||
| 'gpt-5-chat-latest': { prompt: 1.25, completion: 10 }, | ||
| 'gpt-5.1-chat-latest': { prompt: 1.25, completion: 10 }, | ||
| 'gpt-5.2-chat-latest': { prompt: 1.75, completion: 14 }, | ||
| 'gpt-5.3-chat-latest': { prompt: 1.75, completion: 14 }, | ||
| 'gpt-5-nano': { prompt: 0.05, completion: 0.4 }, | ||
| 'gpt-5-mini': { prompt: 0.25, completion: 2 }, | ||
| 'gpt-5-pro': { prompt: 15, completion: 120 }, | ||
|
|
@@ -310,6 +318,14 @@ export const cacheTokenValues: Record<string, { write: number; read: number }> = | |
| 'gpt-5.2': { write: 1.75, read: 0.175 }, | ||
| 'gpt-5.3': { write: 1.75, read: 0.175 }, | ||
| 'gpt-5.4': { write: 2.5, read: 0.25 }, | ||
| 'gpt-5.4-mini': { write: 0.75, read: 0.075 }, | ||
| 'gpt-5.4-nano': { write: 0.2, read: 0.02 }, | ||
| 'gpt-5.5': { write: 5, read: 0.5 }, | ||
|
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.
For Useful? React with πΒ / π.
Collaborator
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. Real but deferred β |
||
| 'chat-latest': { write: 5, read: 0.5 }, | ||
| 'gpt-5-chat-latest': { write: 1.25, read: 0.125 }, | ||
| 'gpt-5.1-chat-latest': { write: 1.25, read: 0.125 }, | ||
| 'gpt-5.2-chat-latest': { write: 1.75, read: 0.175 }, | ||
| 'gpt-5.3-chat-latest': { write: 1.75, read: 0.175 }, | ||
| 'gpt-5-mini': { write: 0.25, read: 0.025 }, | ||
| 'gpt-5-nano': { write: 0.05, read: 0.005 }, | ||
| o1: { write: 15, read: 7.5 }, | ||
|
|
@@ -348,6 +364,10 @@ export const premiumTokenValues: Record< | |
| { threshold: number; prompt: number; completion: number } | ||
| > = { | ||
| 'gemini-3.1': { threshold: 200000, prompt: 4, completion: 18 }, | ||
| 'gpt-5.4': { threshold: 272000, prompt: 5, completion: 22.5 }, | ||
| 'gpt-5.4-pro': { threshold: 272000, prompt: 60, completion: 270 }, | ||
| 'gpt-5.5': { threshold: 272000, prompt: 10, completion: 45 }, | ||
|
Comment on lines
+367
to
+369
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.
When a Useful? React with πΒ / π.
Collaborator
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. Partially confirmed, fixed in 70c841a β added 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.
For Useful? React with πΒ / π.
Collaborator
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. Confirmed and fixed in ffa6359 β |
||
| 'gpt-5.5-pro': { threshold: 272000, prompt: 60, completion: 270 }, | ||
|
Comment on lines
+367
to
+370
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.
For GPT-5.4/5.5 requests above the 272K-token breakpoint, these new premium entries only affect uncached prompt and completion multipliers; structured cached reads still go through Useful? React with πΒ / π.
Collaborator
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. Duplicate of the earlier cached-input thread on this file β same answer: |
||
| }; | ||
|
|
||
| export function createTxMethods( | ||
|
|
||
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.
OpenAI documents
gpt-5.5-prowith streaming as unsupported (https://developers.openai.com/api/docs/models/gpt-5.5-pro), whilegetOpenAIConfigdefaultsstreaming = truefor OpenAI requests. Adding this model to the default list means a user who selects it in the normal OpenAI flow will send a streaming request by default and hit an API failure unless they know to disable streaming first.Useful? React with πΒ / π.
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.
Confirmed and fixed in 3968115 β
getOpenAILLMConfignow forcesstreaming: falsefor pro reasoning models (o1-pro,o3-pro,gpt-5-pro,gpt-5.x-pro), with spec coverage for both the pro and non-pro paths. This also coversgpt-5.4-pro, which was already in the default list before this PR with the same constraint.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.
Update: the endpoint/handler fix for this was reverted in 1c4d1fd β this PR is intentionally trimmed to model-catalog changes only (lists, token windows, pricing, fetched-model filter). The OpenAI-compat endpoint/handler surface is moving out of LibreChat into the agents SDK, where this behavior belongs.