Files
Agent-Workbench/src/shared/contracts/official-model-capacity.mjs
T

13 lines
744 B
JavaScript

// Exact pinned IDs from Anthropic's Models overview, checked 2026-11-06.
// These are synchronous Messages declarations, not measured gateway limits.
// The separate 300K Message Batches beta is not used for ordinary requests.
const sourceUrl = 'https://platform.claude.com/docs/en/models/overview';
const claude = Object.freeze(Object.fromEntries([
'claude-fable-5-1', 'claude-opus-5-5', 'claude-sonnet-5-5', 'claude-haiku-5-5',
].map(model => [model, Object.freeze({ model, contextLimit: 1000000, maxOutputTokens: 128000,
sourceUrl, checkedAt: '2026-11-06', source: 'official_model_spec' })])));
export function officialModelCapacity(model) {
return typeof model === 'string' && Object.hasOwn(claude, model) ? claude[model] : null;
}