mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-09-10 08:31:37 +00:00
* 🦉 feat: Claude Opus 4.7 Model Support
- Add `claude-opus-4-7` to shared Anthropic models and `anthropic.claude-opus-4-7` to Bedrock models
- Register 1M context window and 128K max output in anthropic token maps
- Add token pricing ($5/$25), cache rates (6.25/0.5), and premium tier ($10/$37.50 above 200K) in tx.ts
- Update `.env.example` with Opus 4.7 IDs in `ANTHROPIC_MODELS` and `BEDROCK_AWS_MODELS` examples
- Add parallel Opus 4.7 test cases for token/cache/premium rates, context length, max output, name-variation matching, and 1M-context qualification
* feat: Add `xhigh` Effort Level for Opus 4.7
- Add `xhigh` variant to `AnthropicEffort` enum between `high` and `max`
- Expose `xhigh` in `anthropicSettings.effort.options` and the UI slider `enumMappings`
- Reuse existing `com_ui_xhigh` translation key
* test: Cover `xhigh` Effort and Exact Opus 4.7 Premium Rates
- Assert `xhigh` position (between high and max), inclusion in
`anthropicSettings.effort.options`, zod acceptance, and rejection of
unknown values in schemas.spec.ts
- Verify bedrockInputParser emits `output_config: { effort: 'xhigh' }`
for adaptive `anthropic.claude-opus-4-7`
- Verify getLLMConfig sets adaptive thinking and `output_config.effort =
'xhigh'` for `claude-opus-4-7`
- Pin Opus 4.7 premium pricing to exact threshold/prompt/completion
values (200000 / 10 / 37.5) so silent rate drift fails the test
|
||
|---|---|---|
| .. | ||
| __tests__ | ||
| axios.spec.ts | ||
| axios.ts | ||
| azure.spec.ts | ||
| azure.ts | ||
| code.ts | ||
| common.spec.ts | ||
| common.ts | ||
| content.spec.ts | ||
| content.ts | ||
| email.ts | ||
| env.spec.ts | ||
| env.ts | ||
| events.ts | ||
| files.spec.ts | ||
| files.ts | ||
| generators.ts | ||
| graph.spec.ts | ||
| graph.ts | ||
| http.ts | ||
| import.ts | ||
| index.ts | ||
| key.test.ts | ||
| key.ts | ||
| latex.spec.ts | ||
| latex.ts | ||
| llm.test.ts | ||
| llm.ts | ||
| math.integration.spec.ts | ||
| math.spec.ts | ||
| math.ts | ||
| memory.ts | ||
| message.spec.ts | ||
| message.ts | ||
| oidc.spec.ts | ||
| oidc.ts | ||
| openid.ts | ||
| path.spec.ts | ||
| path.ts | ||
| ports.spec.ts | ||
| ports.ts | ||
| promise.spec.ts | ||
| promise.ts | ||
| sanitizeTitle.spec.ts | ||
| sanitizeTitle.ts | ||
| text.spec.ts | ||
| text.ts | ||
| tokenizer.spec.ts | ||
| tokenizer.ts | ||
| tokenMap.ts | ||
| tokens.ts | ||
| tracing.ts | ||
| url.spec.ts | ||
| url.ts | ||
| yaml.ts | ||