LibreChat/api/models
Danny Avila d3622844ad
💰 feat: Add gpt-5.3 context window and pricing (#12049)
* 💰 feat: Add gpt-5.3 context window and pricing

* 💰 feat: Add OpenAI cached input pricing and `gpt-5.2-pro` model

    - Add cached input pricing (write/read) for gpt-4o, gpt-4.1, gpt-5.x,
      o1, o3, o4-mini models with correct per-family discount tiers
    - Add gpt-5.2-pro pricing ($21/$168), context window, and max output
    - Pro models (gpt-5-pro, gpt-5.2-pro) correctly excluded from cache
      pricing as OpenAI does not support caching for these

* 🔍 fix: Address review findings for OpenAI pricing

- Add o1-preview to cacheTokenValues (50% discount, same as o1)
- Fix comment to enumerate all models per discount tier
- Add cache tests for dated variants (gpt-4o-2024-08-06, etc.)
- Add gpt-5-mini/gpt-5-nano to 10% ratio invariant test
- Replace forEach with for...of in new test code
- Fix inconsistent test description phrasing
- Add gpt-5.3-preview to context window tests
2026-03-03 20:44:05 -05:00
..
Action.js
Agent.js
Agent.spec.js
Assistant.js
balanceMethods.js
Banner.js
Categories.js
Conversation.js
Conversation.spec.js
ConversationTag.js
convoStructure.spec.js
File.js
File.spec.js
index.js
interface.js
inviteUser.js
loadAddedAgent.js
Message.js
Message.spec.js
Preset.js
Project.js
Prompt.js
Prompt.spec.js
PromptGroupMigration.spec.js
Role.js
Role.spec.js
spendTokens.js
spendTokens.spec.js
ToolCall.js
Transaction.js
Transaction.spec.js
tx.js
tx.spec.js
userMethods.js