LibreChat/api/utils
Danny Avila ad1503abdc
🧪 feat: Claude Sonnet 4 - 1M Context Window (Beta Header) (#9093)
* adding beta header context-1m-2025-08-07 to claude sonnet 4 to increase contact window to 1M tokens

* adding context-1m beta header to test cases

* ci: Update Anthropic `getLLMConfig` tests and headers for model variations

- Refactored test cases to ensure proper handling of model variations for 'claude-sonnet-4'.
- Cleaned up unused mock implementations in tests for better clarity and performance.

* refactor: regex in header retrieval for 'claude-sonnet-4' models

* refactor: default tokens for 'claude-sonnet-4' to `1,000,000`

* refactor: add token value retrieval and pattern matching to model tests

---------

Co-authored-by: Dirk Petersen <no-reply@nowhere.com>
2025-08-16 13:36:46 -04:00
..
deriveBaseURL.js 🦙 feat: Ollama Vision Support (#2643) 2024-05-08 20:24:40 -04:00
deriveBaseURL.spec.js 🦙 feat: Ollama Vision Support (#2643) 2024-05-08 20:24:40 -04:00
extractBaseURL.js ☁️ feat: Additional AI Gateway Provider Support; fix: Reasoning Effort for Presets/Agents (#5600) 2025-02-02 09:04:10 -05:00
extractBaseURL.spec.js 🪶 feat: Add Support for Azure OpenAI Base URL (#1596) 2024-01-19 14:57:03 -05:00
findMessageContent.js refactor(api): Central Logging 📜 (#1348) 2023-12-14 07:49:27 -05:00
index.js 🕐 feat: Configurable Retention Period for Temporary Chats (#8056) 2025-06-25 17:16:26 -04:00
logger.js feat: Logins log for Fail2Ban (#986) 2023-09-24 12:18:10 -04:00
LoggingSystem.js feat: Logins log for Fail2Ban (#986) 2023-09-24 12:18:10 -04:00
tokens.js 🧪 feat: Claude Sonnet 4 - 1M Context Window (Beta Header) (#9093) 2025-08-16 13:36:46 -04:00
tokens.spec.js 🧪 feat: Claude Sonnet 4 - 1M Context Window (Beta Header) (#9093) 2025-08-16 13:36:46 -04:00