(overrides: Partial<OpenRouterModel> = {})
| 316 | } |
| 317 | |
| 318 | function 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 | } |
no outgoing calls
no test coverage detected