Skip to content

feat(openrouter): update model YAMLs [bot]#1022

Closed
models-bot[bot] wants to merge 1 commit into
mainfrom
bot/update-openrouter-20260513-112354
Closed

feat(openrouter): update model YAMLs [bot]#1022
models-bot[bot] wants to merge 1 commit into
mainfrom
bot/update-openrouter-20260513-112354

Conversation

@models-bot
Copy link
Copy Markdown
Contributor

@models-bot models-bot Bot commented May 13, 2026

Auto-generated by poc-agent for provider openrouter.


Note

Low Risk
Low risk config-only change that updates pricing metadata for x-ai/grok-4.20; main risk is incorrect cost reporting/billing estimates if the new rates are wrong.

Overview
Updates providers/openrouter/x-ai/grok-4.20.yaml pricing by lowering input_cost_per_token/output_cost_per_token and removing cache_read_input_token_cost plus the tiered_pricing overrides, leaving a single flat rate for region "*".

Reviewed by Cursor Bugbot for commit 2ac657e. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions
Copy link
Copy Markdown
Contributor

/test-models

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 2ac657e. Configure here.

costs:
- cache_read_input_token_cost: 2e-7
input_cost_per_token: 0.000002
output_cost_per_token: 0.000006
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Missing cache read cost despite prompt_caching feature listed

Medium Severity

The cache_read_input_token_cost field was removed from the costs section, but prompt_caching is still listed as a feature. Every other model in the OpenRouter provider that advertises prompt_caching (e.g., grok-4.yaml, grok-4.20-multi-agent.yaml, aion-2.0.yaml, nova-premier-v1.yaml) includes a corresponding cache_read_input_token_cost. This inconsistency could cause incorrect cost calculations for cached token reads.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 2ac657e. Configure here.

@harshiv-26
Copy link
Copy Markdown
Collaborator

Gateway test results

  • Total: 10
  • Passed: 10
  • Failed: 0
  • Validation failed: 0
  • Errored: 0
  • Skipped: 0
  • Success rate: 100.0%
Provider Model Scenarios
openrouter x-ai/grok-4.20 success: params:text-text, tool-call:text-text, params:text-text:stream, tool-call:text-text:stream, structured-output:text-text:stream, structured-output:text-text, json-output:text-text:stream, json-output:text-text, reasoning:text-text:stream, reasoning:text-text

@harshiv-26 harshiv-26 closed this May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant