1
0
forked from boos/BoosAPI

test: align claude count tokens encoding expectation

This commit is contained in:
ciat-777
2026-03-21 12:56:34 +08:00
parent 1b78359739
commit 424e1e210b
@@ -145,7 +145,7 @@ describe('claude count_tokens proxy route', () => {
expect(targetUrl).toBe('https://api.anthropic.com/v1/messages/count_tokens?beta=true');
expect(options.headers['anthropic-version']).toBe('2023-06-01');
expect(options.headers['anthropic-beta']).toContain('claude-code-20250219');
expect(options.headers['Accept-Encoding']).toBe('gzip, deflate, br, zstd');
expect(options.headers['Accept-Encoding']).toBe('identity');
const forwardedBody = JSON.parse(String(options.body));
expect(forwardedBody.model).toBe('claude-opus-4-6');