LibreChat/api/server/services/Endpoints/anthropic
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
..
build.js 🚀 feat: Claude 3.7 Support + Reasoning (#6008) 2025-02-24 20:08:55 -05:00
helpers.js 🧪 feat: Claude Sonnet 4 - 1M Context Window (Beta Header) (#9093) 2025-08-16 13:36:46 -04:00
index.js 🔃 refactor: rename all server endpoints to use same file names (#4364) 2024-10-19 08:24:07 -04:00
initialize.js 🧠 fix: Agent Title Config & Resource Handling (#8028) 2025-06-23 19:44:24 -04:00
llm.js 🔍 feat: Anthropic Web Search (#8281) 2025-07-06 21:43:09 -04:00
llm.spec.js 🧪 feat: Claude Sonnet 4 - 1M Context Window (Beta Header) (#9093) 2025-08-16 13:36:46 -04:00
title.js 🤖 refactor: Improve Agents Memory Usage, Bump Keyv, Grok 3 (#6850) 2025-04-12 18:46:36 -04:00