MCPcopy Index your code
hub / github.com/anomalyco/models.dev / openRouterModel

Function openRouterModel

packages/core/test/sync.test.ts:318–343  ·  view source on GitHub ↗
(overrides: Partial<OpenRouterModel> = {})

Source from the content-addressed store, hash-verified

316}
317
318function openRouterModel(overrides: Partial<OpenRouterModel> = {}): OpenRouterModel {
319 return {
320 id: "anthropic/claude-sonnet-5",
321 name: "Anthropic: Claude Sonnet 5",
322 created: 1_782_777_600,
323 hugging_face_id: null,
324 knowledge_cutoff: "2026-01-31",
325 context_length: 1_000_000,
326 architecture: {
327 input_modalities: ["text", "image", "file"],
328 output_modalities: ["text"],
329 },
330 pricing: {
331 prompt: "0.000002",
332 completion: "0.00001",
333 input_cache_read: "0.0000002",
334 input_cache_write: "0.0000025",
335 },
336 top_provider: {
337 context_length: 1_000_000,
338 max_completion_tokens: 128_000,
339 },
340 supported_parameters: ["include_reasoning", "reasoning", "structured_outputs", "tools"],
341 ...overrides,
342 };
343}

Callers 2

sync.test.tsFile · 0.85
unavailableStubFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected