litellm - ✅(Solved) Fix [Bug]: Missing jp. (Japan) region prefix for claude-sonnet-4-6 in model_prices_and_context_window.json [2 pull requests, 1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
BerriAI/litellm#22972Fetched 2026-04-08 00:39:07
View on GitHub
Comments
1
Participants
1
Timeline
10
Reactions
0
Author
Participants
Timeline (top)
cross-referenced ×4referenced ×3closed ×1commented ×1

Fix Action

Fixed

PR fix notes

PR #22974: fix(model_prices): add jp. region prefix for claude-sonnet-4-6

Description (problem / solution / changelog)

Relevant issues

Fixes #22972

Summary

  • Add missing JP region Bedrock inference profiles to model_prices_and_context_window.json and the backup JSON
  • jp.anthropic.claude-sonnet-4-6 — other region prefixes (us., eu., au., global.) already existed, but jp. was missing
  • jp.amazon.nova-2-lite-v1:0 — also confirmed ACTIVE in ap-northeast-1 via aws bedrock list-inference-profiles, but was missing from JSON
  • Pricing matches the corresponding regional entries (au. for Claude Sonnet 4.6, apac. for Nova 2 Lite)

Pre-Submission checklist

Please complete all items before asking a LiteLLM maintainer to review your PR

  • I have Added testing in the tests/test_litellm/ directory, Adding at least 1 test is a hard requirement - see details
  • My PR passes all unit tests on make test-unit
  • My PR's scope is as isolated as possible, it only solves 1 specific problem

Type

🐛 Bug Fix

Changes

  • Added jp.anthropic.claude-sonnet-4-6 to both JSON files
  • Added jp.amazon.nova-2-lite-v1:0 to both JSON files
  • Renamed tests/test_litellm/test_claude_sonnet_4_6_jp_region.pytests/test_litellm/test_jp_region_bedrock_models.py
  • 6 tests total:
    • jp.anthropic.claude-sonnet-4-6: entry existence, pricing parity with au., bedrock_converse_models registration
    • jp.amazon.nova-2-lite-v1:0: entry existence, pricing parity with apac., bedrock_converse_models registration

Changed files

  • litellm/model_prices_and_context_window_backup.json (modified, +47/-0)
  • model_prices_and_context_window.json (modified, +47/-0)
  • tests/test_litellm/test_jp_region_bedrock_models.py (added, +164/-0)

PR #22975: fix: add jp. (Japan) region prefix for claude-sonnet-4-6 Bedrock

Description (problem / solution / changelog)

Description

Adds the missing jp.anthropic.claude-sonnet-4-6 entry to model_prices_and_context_window.json.

Problem

The Japan (jp.) Bedrock cross-region inference profile prefix was missing for claude-sonnet-4-6, while all other region prefixes were present:

  • us.anthropic.claude-sonnet-4-6
  • eu.anthropic.claude-sonnet-4-6
  • au.anthropic.claude-sonnet-4-6
  • global.anthropic.claude-sonnet-4-6
  • jp.anthropic.claude-sonnet-4-6 ❌ ← this PR adds it

Solution

Added jp.anthropic.claude-sonnet-4-6 with the same pricing/capabilities structure as au.anthropic.claude-sonnet-4-6, consistent with how other JP models are defined (e.g., jp.anthropic.claude-haiku-4-5-20251001-v1:0).

Closes #22972

Changed files

  • litellm/model_prices_and_context_window_backup.json (modified, +30/-0)
  • model_prices_and_context_window.json (modified, +30/-0)

Code Example

$ grep "jp.anthropic.claude-sonnet-4-6" model_prices_and_context_window.json
(no results)
RAW_BUFFERClick to expand / collapse

What happened?

model_prices_and_context_window.json is missing the jp. (Japan) Bedrock cross-region inference profile prefix for claude-sonnet-4-6.

Other region prefixes are present:

  • us.anthropic.claude-sonnet-4-6
  • eu.anthropic.claude-sonnet-4-6
  • au.anthropic.claude-sonnet-4-6
  • global.anthropic.claude-sonnet-4-6
  • jp.anthropic.claude-sonnet-4-6missing

The jp. prefix exists for other models (e.g., jp.anthropic.claude-sonnet-4-5-20250929-v1:0, jp.anthropic.claude-haiku-4-5-20251001-v1:0), so it appears this was simply overlooked for claude-sonnet-4-6.

Expected: jp.anthropic.claude-sonnet-4-6 should be added to model_prices_and_context_window.json with the same structure as the other region-prefixed entries.

Steps to Reproduce

  1. Open model_prices_and_context_window.json
  2. Search for jp.anthropic.claude-sonnet-4-6
  3. No entry found

Relevant log output

$ grep "jp.anthropic.claude-sonnet-4-6" model_prices_and_context_window.json
(no results)

LiteLLM version: v1.82.1 Component: SDK (litellm Python package)

extent analysis

Fix Plan

To fix the issue, add the missing jp. prefix entry for claude-sonnet-4-6 to model_prices_and_context_window.json.

Here are the steps:

  • Open model_prices_and_context_window.json in a text editor.
  • Add the following JSON object with the same structure as other region-prefixed entries:
{
  "model": "jp.anthropic.claude-sonnet-4-6",
  "price": <price_value>, // Replace with the actual price value
  "context_window": <context_window_value> // Replace with the actual context window value
}
  • Save the changes to model_prices_and_context_window.json.

Verification

To verify the fix, run the following command:

$ grep "jp.anthropic.claude-sonnet-4-6" model_prices_and_context_window.json

This should now return the newly added entry.

Extra Tips

  • Make sure to replace <price_value> and <context_window_value> with the actual values for the claude-sonnet-4-6 model.
  • If you're using a version control system, commit the changes to model_prices_and_context_window.json with a descriptive commit message.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

litellm - ✅(Solved) Fix [Bug]: Missing jp. (Japan) region prefix for claude-sonnet-4-6 in model_prices_and_context_window.json [2 pull requests, 1 comments, 1 participants]