mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-11-18 14:08:21 +00:00
* 🐉 feat: Add Claude Mythos 5.2 Support
* test: Track Numeric Matcher Search Performance
* test: Distinguish Mythos Version Boundary Regressions
---------
Co-authored-by: Lia <lia@librechat.ai>
32 lines
1.2 KiB
TypeScript
32 lines
1.2 KiB
TypeScript
import { defaultModels } from '../src/config';
|
|
import { EModelEndpoint, anthropicSettings } from '../src/schemas';
|
|
import {
|
|
supportsContext1m,
|
|
supportsPromptCache,
|
|
hasAlwaysOnThinking,
|
|
bindsThinkingBlocks,
|
|
omitsSamplingParameters,
|
|
supportsAdaptiveThinking,
|
|
resolveThinkingDisplay,
|
|
} from '../src/bedrock';
|
|
|
|
describe('Claude Mythos 5.2', () => {
|
|
it('does not offer a verification-restricted model in the default catalog', () => {
|
|
expect(defaultModels[EModelEndpoint.anthropic]).not.toContain('claude-mythos-5-2');
|
|
});
|
|
|
|
it.each(['claude-mythos-5-2', 'anthropic/claude-mythos-5-2'])(
|
|
'uses the modern Claude capability profile for %s',
|
|
(model) => {
|
|
expect(supportsContext1m(model)).toBe(true);
|
|
expect(supportsPromptCache(model)).toBe(true);
|
|
expect(hasAlwaysOnThinking(model)).toBe(true);
|
|
expect(bindsThinkingBlocks(model)).toBe(true);
|
|
expect(supportsAdaptiveThinking(model)).toBe(true);
|
|
expect(omitsSamplingParameters(model)).toBe(true);
|
|
expect(resolveThinkingDisplay(model)).toBe('summarized');
|
|
expect(anthropicSettings.maxOutputTokens.reset(model)).toBe(128000);
|
|
expect(anthropicSettings.maxOutputTokens.set(200000, model)).toBe(128000);
|
|
},
|
|
);
|
|
});
|