Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions providers/deepinfra/anthropic/claude-sonnet-5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
costs:
- input_cost_per_token: 2e-6
output_cost_per_token: 1e-5
region: "*"
features:
- function_calling
- json_output
limits:
context_window: 1000000
max_tokens: 1000000

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong max output token limit

Medium Severity

limits.max_tokens is set to 1000000, matching context_window instead of Claude Sonnet 5’s actual maximum response size. In this registry, max_tokens is the cap on generated tokens; Sonnet 5 supports a 1M context but only about 128K output, as in the canonical Anthropic and OpenRouter entries.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 1a0c7e5. Configure here.

modalities:
input:
- text
- image
Comment thread
cursor[bot] marked this conversation as resolved.
output:
- text
mode: chat
model: anthropic/claude-sonnet-5
provisioning: serverless
sources:
- https://deepinfra.com/anthropic/claude-sonnet-5
status: active
supportedModes:
- chat
thinking: true
Loading