fix(bedrock): remove the bare xai.grok-4.7 cost-map row that AWS cannot invoke (#45460)

Co-authored-by: kerry <kerry@berri.ai>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
devin-ai-integration[bot] 2026-10-08 23:02:31 +00:00 • committed by GitHub
parent f09408dd37
commit 4f62bbfd8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 1 additions and 47 deletions

View file

@ -80458,29 +80458,6 @@
"supports_tool_choice": true,
"supports_vision": true
},
"xai.grok-4.7": {
"supports_regex_lookaround": false,
"cache_read_input_token_cost": 5e-07,
"cache_read_input_token_cost_flex": 2.5e-07,
"cache_read_input_token_cost_priority": 8.75e-07,
"input_cost_per_token": 2e-06,
"input_cost_per_token_flex": 1e-06,
"input_cost_per_token_priority": 3.5e-06,
"litellm_provider": "bedrock_converse",
"max_input_tokens": 500000,
"max_output_tokens": 500000,
"max_tokens": 500000,
"mode": "chat",
"output_cost_per_token": 6e-06,
"output_cost_per_token_flex": 3e-06,
"output_cost_per_token_priority": 1.05e-05,
"source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json",
"supports_function_calling": true,
"supports_prompt_caching": false,
"supports_reasoning": true,
"supports_tool_choice": true,
"supports_vision": true
},
"openrouter/anthropic/claude-sonnet-5.5:batch": {
"cache_creation_input_token_cost": 1.25e-06,
"cache_creation_input_token_cost_above_1hr": 2e-06,

View file

@ -80458,29 +80458,6 @@
"supports_tool_choice": true,
"supports_vision": true
},
"xai.grok-4.7": {
"supports_regex_lookaround": false,
"cache_read_input_token_cost": 5e-07,
"cache_read_input_token_cost_flex": 2.5e-07,
"cache_read_input_token_cost_priority": 8.75e-07,
"input_cost_per_token": 2e-06,
"input_cost_per_token_flex": 1e-06,
"input_cost_per_token_priority": 3.5e-06,
"litellm_provider": "bedrock_converse",
"max_input_tokens": 500000,
"max_output_tokens": 500000,
"max_tokens": 500000,
"mode": "chat",
"output_cost_per_token": 6e-06,
"output_cost_per_token_flex": 3e-06,
"output_cost_per_token_priority": 1.05e-05,
"source": "https://b0.p.awsstatic.com/pricing/2.0/meteredUnitMaps/bedrock/USD/current/bedrock.json",
"supports_function_calling": true,
"supports_prompt_caching": false,
"supports_reasoning": true,
"supports_tool_choice": true,
"supports_vision": true
},
"openrouter/anthropic/claude-sonnet-5.5:batch": {
"cache_creation_input_token_cost": 1.25e-06,
"cache_creation_input_token_cost_above_1hr": 2e-06,

View file

@ -742,7 +742,7 @@ def _tool_schema_properties(model, tool, litellm_params=None):
"us.xai.grok-4.6",
"us-gov.xai.grok-4.6",
"global.xai.grok-4.7",
"xai.grok-4.7",
"us.xai.grok-4.7",
],
)
def test_transform_request_drops_lookaround_regex_for_models_the_cost_map_flags(tool, model):