🤖 feat: GPT-5.4 and GPT-5.4-pro Context + Pricing (#12099)
Some checks are pending
Docker Dev Branch Images Build / build (Dockerfile, lc-dev, node) (push) Waiting to run
Docker Dev Branch Images Build / build (Dockerfile.multi, lc-dev-api, api-build) (push) Waiting to run
Docker Dev Images Build / build (Dockerfile, librechat-dev, node) (push) Waiting to run
Docker Dev Images Build / build (Dockerfile.multi, librechat-dev-api, api-build) (push) Waiting to run
Sync Locize Translations & Create Translation PR / Sync Translation Keys with Locize (push) Waiting to run
Sync Locize Translations & Create Translation PR / Create Translation PR on Version Published (push) Blocked by required conditions

*  feat: Add support for new GPT-5.4 and GPT-5.4-pro models

- Introduced new token values and cache settings for 'gpt-5.4' and 'gpt-5.4-pro' in the API model configurations.
- Updated maximum output limits for the new models in the tokens utility.
- Included 'gpt-5.4' and 'gpt-5.4-pro' in the shared OpenAI models list for consistent access across the application.

* 🔧 update: Enhance GPT-5.4 and GPT-5.4-pro model configurations

- Refined token pricing and cache settings for 'gpt-5.4' and 'gpt-5.4-pro' in the API model configurations.
- Added tests for cache multipliers and maximum token limits for the new models.
- Updated shared OpenAI models list to include 'gpt-5.4-thinking' and added a note for verifying pricing before release.

* 🔧 update: Add clarification to token pricing for 'gpt-5.4-pro'

- Added a comment to the 'gpt-5.4-pro' model configuration in tokens.ts to specify that it shares the same token window as 'gpt-5.4', enhancing clarity for future reference.
This commit is contained in:
Danny Avila 2026-03-06 02:11:01 -05:00 committed by GitHub
parent 3b84cc048a
commit a79f7cebd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 100 additions and 24 deletions

View file

@ -1101,6 +1101,10 @@ export const alternateName = {
};
const sharedOpenAIModels = [
'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.1',
'gpt-5.1-chat-latest',
'gpt-5.1-codex',
@ -1276,6 +1280,7 @@ export const visionModels = [
'o4-mini',
'o3',
'o1',
'gpt-5',
'gpt-4.1',
'gpt-4.5',
'llava',