Skip to content

fix(router): let an exact base_model widen a deployment's context window - #46197

Merged
mateo-berri merged 10 commits into
BerriAI:mainfrom
setarm01:litellm_bedrock_base_model_capacity
Oct 16, 2026
Merged

mateo-berri merged 10 commits into
BerriAI:mainfrom
setarm01:litellm_bedrock_base_model_capacity

Conversation

@setarm01

@setarm01 setarm01 commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • The router ignores a non-Azure base_model window
  • /model/info already shows that larger window, so the two disagree

How it solves it:

  • A same-model base_model in model_info or litellm_params with an exact cost-map row widens the input window
  • Region prefixes like global. and a base's @... suffix still match
  • It never lowers or adds a window, and explicit max_input_tokens wins
  • Other-model bases change nothing, and Azure is unchanged

Intentional product change: a non-Azure same-model base_model with a larger window now sets the routing window

User Flow

Before: the router refuses a prompt that fits the window /model/info shows

  1. The admin adds bedrock/converse/moonshotai.kimi-k2.5 with model_info.base_model: bedrock/us-east-1/moonshotai.kimi-k2.5 and enable_pre_call_checks: true
  2. GET https://litellm-domain/model/info shows max_input_tokens: 262144 for it
  3. A developer sends a 258,000-token prompt to POST https://litellm-domain/v1/messages (or /v1/chat/completions, /v1/responses)
  4. The proxy answers 400 ContextWindowExceededError ... Max Input Tokens=256000 without calling Bedrock

After: the same prompt reaches Bedrock and comes back with a normal answer

  1. The admin adds bedrock/converse/moonshotai.kimi-k2.5 with model_info.base_model: bedrock/us-east-1/moonshotai.kimi-k2.5 and enable_pre_call_checks: true
  2. GET https://litellm-domain/model/info shows max_input_tokens: 262144 for it
  3. A developer sends a 258,000-token prompt to POST https://litellm-domain/v1/messages
  4. The proxy returns 200 with the model's answer

Linear ticket

Resolves LIT-9605

Pre-Submission checklist

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

  • I have added meaningful tests
  • The handful of test files covering my change pass locally, e.g. uv run pytest tests/unit/<your_test_file>.py -v. Leave the suites (make test-unit-*, make test-unit) to CI: it finishes in ~15 minutes where a laptop takes an hour or more
  • My PR passes all required CI/CD checks (e.g., lint, schema.d.ts sync check, etc.)
  • My PR's scope is as isolated as possible; it only solves 1 specific problem
  • Every automated review on my PR's latest commit has finished, and I have addressed or replied to each of its findings before requesting a maintainer review

The 43 tests cover Bedrock, Bedrock Mantle, and OpenAI with base_model in either place, both, or neither, explicit limits, many base shapes, and global. routes. Main fails 11 of them and 5 of the 10 new integration cells

Design choice: widening only max_input_tokens keeps base_model pricing stand-ins working, where a whole model-info swap would break them with 400s. The same-model check keeps a stand-in for a bigger model from admitting prompts the deployment cannot take. Complexity routing and context compaction see the same window

Base source decision: model_info.base_model wins, then litellm_params.base_model, the router's existing order. Reading only model_info would keep the ticket's litellm_params setup on the 400

Lookup decision: the base row is looked up as written, like /model/info does. Adding the route's provider would make a bare moonshotai.kimi-k2.5 (256,000) read bedrock/moonshotai.kimi-k2.5 (262,144)

Same-model decision: an id is its last / segment minus Bedrock region and routing prefixes, and a base may add an @... suffix. Prefix matching would let X-extended count as X, and dropping @ on both sides would merge X@first and X@second

Delays in PR merge?

If you're seeing a delay in your PR being merged, ping the LiteLLM Team on Slack (#pr-review).

Screenshots / Proof of Fix

Last updated: d0b5938. QA and /live-pr-risk ran on f925647, the last commit with a product diff

Both legs ran on real Bedrock in us-east-1, each on its own commit and database. The served cost map adds three @global:us-east-1 base rows and lowers global.anthropic.claude-sonnet-4-6 to 200,000. The main prompt is 258,421 tokens

Proxy config and payload generator

The cost map served through LITELLM_MODEL_COST_MAP_URL is the bundled one plus bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0@global:us-east-1 and bedrock/anthropic.claude-sonnet-4-6@global:us-east-1 at 1,000,000 and bedrock/moonshotai.kimi-k2.5@global:us-east-1 at 262,144, with global.anthropic.claude-sonnet-4-6 lowered to 200,000. Bundled windows are 256,000 for moonshotai.kimi-k2.5, 262,144 for bedrock/us-east-1/moonshotai.kimi-k2.5, 200,000 for global.anthropic.claude-sonnet-4-5-20250929-v1:0, 8,192 for meta.llama3-8b-instruct-v1:0, and 128,000 for meta.llama3-1-8b-instruct-v1:0. $PORT, $LITELLM_MASTER_KEY, and $D are the port, master key, and payload directory

model_list:
  - model_name: kimi-k2-5-us-east-1
    litellm_params:
      model: bedrock/converse/moonshotai.kimi-k2.5
      aws_region_name: us-east-1
    model_info:
      base_model: bedrock/us-east-1/moonshotai.kimi-k2.5
  - model_name: kimi-k2-5-base-in-litellm-params
    litellm_params:
      model: bedrock/converse/moonshotai.kimi-k2.5
      aws_region_name: us-east-1
      base_model: bedrock/us-east-1/moonshotai.kimi-k2.5
  - model_name: kimi-k2-5-unmapped-base
    litellm_params:
      model: bedrock/converse/moonshotai.kimi-k2.5
      aws_region_name: us-east-1
    model_info:
      base_model: bedrock/us-east-1/moonshotai.kimi-k2.5-not-in-cost-map
  - model_name: kimi-k2-5-smaller-base
    litellm_params:
      model: bedrock/converse/moonshotai.kimi-k2.5
      aws_region_name: us-east-1
    model_info:
      base_model: bedrock/us-east-1/meta.llama3-8b-instruct-v1:0
  - model_name: llama-8b-standin-base
    litellm_params:
      model: bedrock/meta.llama3-8b-instruct-v1:0
      aws_region_name: us-east-1
    model_info:
      id: small-llama3-8b
      base_model: bedrock/meta.llama3-1-8b-instruct-v1:0
  - model_name: llama-8b-standin-base
    litellm_params:
      model: bedrock/us.meta.llama3-1-8b-instruct-v1:0
      aws_region_name: us-east-1
    model_info:
      id: big-llama3-1-8b

  - model_name: sonnet-4-5-global-at-qualified-base
    litellm_params:
      model: bedrock/converse/global.anthropic.claude-sonnet-4-5-20250929-v1:0
      aws_region_name: us-east-1
    model_info:
      base_model: bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0@global:us-east-1

  - model_name: kimi-k2-5-at-qualified-base
    litellm_params:
      model: bedrock/converse/moonshotai.kimi-k2.5
      aws_region_name: us-east-1
    model_info:
      base_model: bedrock/moonshotai.kimi-k2.5@global:us-east-1

  - model_name: sonnet-4-6-global-at-qualified-base
    litellm_params:
      model: bedrock/converse/global.anthropic.claude-sonnet-4-6
      aws_region_name: us-east-1
    model_info:
      base_model: bedrock/anthropic.claude-sonnet-4-6@global:us-east-1

  - model_name: kimi-k2-5-bare-base
    litellm_params:
      model: bedrock/converse/moonshotai.kimi-k2.5
      aws_region_name: us-east-1
    model_info:
      base_model: moonshotai.kimi-k2.5

router_settings:
  enable_pre_call_checks: true

litellm_settings:
  model_group_settings:
    forward_client_headers_to_llm_api:
      - sonnet-4-5-global-at-qualified-base
import json
lines = "\n".join(f"Line {i}: the value of item {i} is {(i * 7) % 1000}." for i in range(1, 16251))
text = f"{lines}\n\nWhat is the value of item 12345? Answer with the number only."
json.dump({"model": "MODEL", "max_tokens": 16, "messages": [{"role": "user", "content": text}]}, open("messages.json", "w"))
json.dump({"model": "MODEL", "max_tokens": 16, "messages": [{"role": "user", "content": text}]}, open("chat.json", "w"))
json.dump({"model": "MODEL", "max_output_tokens": 16, "input": text}, open("responses.json", "w"))
small = "\n".join(f"Line {i}: the value of item {i} is {(i * 7) % 1000}." for i in range(1, 1301))
small_text = f"{small}\n\nWhat is the value of item 1234? Answer with the number only."
json.dump({"model": "MODEL", "max_tokens": 16, "messages": [{"role": "user", "content": small_text}]}, open("messages_20k.json", "w"))
json.dump({"model": "MODEL", "max_tokens": 16, "messages": [{"role": "user", "content": small_text}]}, open("chat_20k.json", "w"))
Case Before After
/model/info windows 262144 / 256000 / 256000 / 8192 262144 / 256000 / 256000 / 8192
Smaller base, 18,845 tokens 200 200
Unmapped base 400 from router 400 from router
/v1/messages 400 from router 200
/v1/chat/completions 400 from router 200
/v1/responses 400 from router 200
litellm_params base 400 from router 200
Stand-in base, 6 calls 6 of 6 ok, all big 6 of 6 ok, all big
global. route, @ base 400 from router 400 from Bedrock
@ base 400 from router 200
global. + @, Sonnet 4.6 400 from router 200
Bare base 400 from router 400 from router

Before (1938f53)

Cases 1 to 12

Case 1, GET /model/info

  1. Run

    curl -sS http://localhost:$PORT/model/info -H "Authorization: Bearer $LITELLM_MASTER_KEY" | jq '[.data[] | {model_name, max_input_tokens: .model_info.max_input_tokens, key: .model_info.key}]'
  2. Observed

    [
      {
        "model_name": "kimi-k2-5-us-east-1",
        "max_input_tokens": 262144,
        "key": "bedrock/us-east-1/moonshotai.kimi-k2.5"
      },
      {
        "model_name": "kimi-k2-5-base-in-litellm-params",
        "max_input_tokens": 256000,
        "key": "moonshotai.kimi-k2.5"
      },
      {
        "model_name": "kimi-k2-5-unmapped-base",
        "max_input_tokens": 256000,
        "key": "moonshotai.kimi-k2.5"
      },
      {
        "model_name": "kimi-k2-5-smaller-base",
        "max_input_tokens": 8192,
        "key": "bedrock/us-east-1/meta.llama3-8b-instruct-v1:0"
      },
      {
        "model_name": "llama-8b-standin-base",
        "max_input_tokens": 128000,
        "key": "meta.llama3-1-8b-instruct-v1:0"
      },
      {
        "model_name": "llama-8b-standin-base",
        "max_input_tokens": 128000,
        "key": "us.meta.llama3-1-8b-instruct-v1:0"
      },
      {
        "model_name": "sonnet-4-5-global-at-qualified-base",
        "max_input_tokens": 1000000,
        "key": "bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0@global:us-east-1"
      },
      {
        "model_name": "kimi-k2-5-at-qualified-base",
        "max_input_tokens": 262144,
        "key": "bedrock/moonshotai.kimi-k2.5@global:us-east-1"
      },
      {
        "model_name": "sonnet-4-6-global-at-qualified-base",
        "max_input_tokens": 1000000,
        "key": "bedrock/anthropic.claude-sonnet-4-6@global:us-east-1"
      },
      {
        "model_name": "kimi-k2-5-bare-base",
        "max_input_tokens": 256000,
        "key": "moonshotai.kimi-k2.5"
      }
    ]
    

Case 2, smaller base

  1. Run

    jq '.model="kimi-k2-5-smaller-base"' $D/messages_20k.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/messages -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @-
  2. Observed

    {"id":"chatcmpl-181b74af-8b87-47c3-a264-653d876e437a","type":"message","role":"assistant","model":"kimi-k2-5-smaller-base","stop_sequence":null,"usage":{"input_tokens":18845,"output_tokens":2},"content":[{"type":"text","text":" 638"}],"stop_reason":"end_turn","stop_details":null}
    HTTP 200 in 1.651758s
    

Case 3, unmapped base

  1. Run

    jq '.model="kimi-k2-5-unmapped-base"' $D/messages.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/messages -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @-
  2. Observed

    {"type":"error","error":{"type":"invalid_request_error","message":"litellm.ContextWindowExceededError: litellm.BadRequestError: litellm._pre_call_checks: Context Window exceeded for given call. No models have context window large enough for this call.\nModel=bedrock/us-east-1/moonshotai.kimi-k2.5-not-in-cost-map, Max Input Tokens=256000, Got=258421\nmodel=kimi-k2-5-unmapped-base. context_window_fallbacks=None. fallbacks=None.\n\nSet 'context_window_fallback' - https://docs.litellm.ai/docs/routing#fallbacks\n\nLiteLLM: model group 'kimi-k2-5-unmapped-base' failed with the error above. No fallback was attempted."}}
    HTTP 400 in 0.392663s
    

Case 4, POST /v1/messages

  1. Run

    jq '.model="kimi-k2-5-us-east-1"' $D/messages.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/messages -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @-
  2. Observed

    {"type":"error","error":{"type":"invalid_request_error","message":"litellm.ContextWindowExceededError: litellm.BadRequestError: litellm._pre_call_checks: Context Window exceeded for given call. No models have context window large enough for this call.\nModel=bedrock/us-east-1/moonshotai.kimi-k2.5, Max Input Tokens=256000, Got=258421\nmodel=kimi-k2-5-us-east-1. context_window_fallbacks=None. fallbacks=None.\n\nSet 'context_window_fallback' - https://docs.litellm.ai/docs/routing#fallbacks\n\nLiteLLM: model group 'kimi-k2-5-us-east-1' failed with the error above. No fallback was attempted."}}
    HTTP 400 in 0.170479s
    

Case 5, POST /v1/chat/completions

  1. Run

    jq '.model="kimi-k2-5-us-east-1"' $D/chat.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/chat/completions -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @-
  2. Observed

    {"error":{"message":"litellm.ContextWindowExceededError: litellm.BadRequestError: litellm._pre_call_checks: Context Window exceeded for given call. No models have context window large enough for this call.\nModel=bedrock/us-east-1/moonshotai.kimi-k2.5, Max Input Tokens=256000, Got=258421\nmodel=kimi-k2-5-us-east-1. context_window_fallbacks=None. fallbacks=None.\n\nSet 'context_window_fallback' - https://docs.litellm.ai/docs/routing#fallbacks\n\nLiteLLM: model group 'kimi-k2-5-us-east-1' failed with the error above. No fallback was attempted.","type":"invalid_request_error","param":null,"code":"400"}}
    HTTP 400 in 0.155628s
    

Case 6, POST /v1/responses

  1. Run

    jq '.model="kimi-k2-5-us-east-1"' $D/responses.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/responses -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @-
  2. Observed

    {"error":{"message":"litellm.ContextWindowExceededError: litellm.BadRequestError: litellm._pre_call_checks: Context Window exceeded for given call. No models have context window large enough for this call.\nModel=bedrock/us-east-1/moonshotai.kimi-k2.5, Max Input Tokens=256000, Got=258421\nmodel=kimi-k2-5-us-east-1. context_window_fallbacks=None. fallbacks=None.\n\nSet 'context_window_fallback' - https://docs.litellm.ai/docs/routing#fallbacks\n\nLiteLLM: model group 'kimi-k2-5-us-east-1' failed with the error above. No fallback was attempted.","type":"invalid_request_error","param":null,"code":"400"}}
    HTTP 400 in 0.165191s
    

Case 7, base in litellm_params

  1. Run

    jq '.model="kimi-k2-5-base-in-litellm-params"' $D/messages.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/messages -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @-
  2. Observed

    {"type":"error","error":{"type":"invalid_request_error","message":"litellm.ContextWindowExceededError: litellm.BadRequestError: litellm._pre_call_checks: Context Window exceeded for given call. No models have context window large enough for this call.\nModel=bedrock/us-east-1/moonshotai.kimi-k2.5, Max Input Tokens=256000, Got=258421\nmodel=kimi-k2-5-base-in-litellm-params. context_window_fallbacks=None. fallbacks=None.\n\nSet 'context_window_fallback' - https://docs.litellm.ai/docs/routing#fallbacks\n\nLiteLLM: model group 'kimi-k2-5-base-in-litellm-params' failed with the error above. No fallback was attempted."}}
    HTTP 400 in 0.148211s
    

Case 8, stand-in base

  1. Run

    for i in 1 2 3 4 5 6; do
      jq '.model="llama-8b-standin-base"' $D/chat_20k.json \
        | curl -sS -D - -o /dev/null -w 'HTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/chat/completions \
            -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @- \
        | grep -iE '^(x-litellm-model-id|HTTP [0-9]{3} in)'
    done
  2. Observed

    x-litellm-model-id: big-llama3-1-8b
    HTTP 200 in 0.938040s
    x-litellm-model-id: big-llama3-1-8b
    HTTP 200 in 0.978833s
    x-litellm-model-id: big-llama3-1-8b
    HTTP 200 in 0.908877s
    x-litellm-model-id: big-llama3-1-8b
    HTTP 200 in 0.907244s
    x-litellm-model-id: big-llama3-1-8b
    HTTP 200 in 0.553291s
    x-litellm-model-id: big-llama3-1-8b
    HTTP 200 in 0.570771s
    

Case 9, global. route, @ base

  1. Run

    jq '.model="sonnet-4-5-global-at-qualified-base"' $D/messages.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/messages -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @- -H 'anthropic-beta: context-1m-2025-08-07'
  2. Observed

    {"type":"error","error":{"type":"invalid_request_error","message":"litellm.ContextWindowExceededError: litellm.BadRequestError: litellm._pre_call_checks: Context Window exceeded for given call. No models have context window large enough for this call.\nModel=bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0@global:us-east-1, Max Input Tokens=200000, Got=258421\nmodel=sonnet-4-5-global-at-qualified-base. context_window_fallbacks=None. fallbacks=None.\n\nSet 'context_window_fallback' - https://docs.litellm.ai/docs/routing#fallbacks\n\nLiteLLM: model group 'sonnet-4-5-global-at-qualified-base' failed with the error above. No fallback was attempted."}}
    HTTP 400 in 0.149251s
    

Case 10, @ base

  1. Run

    jq '.model="kimi-k2-5-at-qualified-base"' $D/messages.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/messages -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @-
  2. Observed

    {"type":"error","error":{"type":"invalid_request_error","message":"litellm.ContextWindowExceededError: litellm.BadRequestError: litellm._pre_call_checks: Context Window exceeded for given call. No models have context window large enough for this call.\nModel=bedrock/moonshotai.kimi-k2.5@global:us-east-1, Max Input Tokens=256000, Got=258421\nmodel=kimi-k2-5-at-qualified-base. context_window_fallbacks=None. fallbacks=None.\n\nSet 'context_window_fallback' - https://docs.litellm.ai/docs/routing#fallbacks\n\nLiteLLM: model group 'kimi-k2-5-at-qualified-base' failed with the error above. No fallback was attempted."}}
    HTTP 400 in 0.153838s
    

Case 11, global. route, @ base, Sonnet 4.6

  1. Run

    jq '.model="sonnet-4-6-global-at-qualified-base"' $D/messages.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/messages -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @-
  2. Observed

    {"type":"error","error":{"type":"invalid_request_error","message":"litellm.ContextWindowExceededError: litellm.BadRequestError: litellm._pre_call_checks: Context Window exceeded for given call. No models have context window large enough for this call.\nModel=bedrock/anthropic.claude-sonnet-4-6@global:us-east-1, Max Input Tokens=200000, Got=258421\nmodel=sonnet-4-6-global-at-qualified-base. context_window_fallbacks=None. fallbacks=None.\n\nSet 'context_window_fallback' - https://docs.litellm.ai/docs/routing#fallbacks\n\nLiteLLM: model group 'sonnet-4-6-global-at-qualified-base' failed with the error above. No fallback was attempted."}}
    HTTP 400 in 0.150316s
    

Case 12, bare base

  1. Run

    jq '.model="kimi-k2-5-bare-base"' $D/messages.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/messages -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @-
  2. Observed

    {"type":"error","error":{"type":"invalid_request_error","message":"litellm.ContextWindowExceededError: litellm.BadRequestError: litellm._pre_call_checks: Context Window exceeded for given call. No models have context window large enough for this call.\nModel=moonshotai.kimi-k2.5, Max Input Tokens=256000, Got=258421\nmodel=kimi-k2-5-bare-base. context_window_fallbacks=None. fallbacks=None.\n\nSet 'context_window_fallback' - https://docs.litellm.ai/docs/routing#fallbacks\n\nLiteLLM: model group 'kimi-k2-5-bare-base' failed with the error above. No fallback was attempted."}}
    HTTP 400 in 0.149089s
    

After (f925647)

Case 4, POST /v1/messages

  1. Run

    jq '.model="kimi-k2-5-us-east-1"' $D/messages.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/messages -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @-
  2. Observed

    {"id":"chatcmpl-722a7c79-7c4e-4d63-b33d-305b316bef97","type":"message","role":"assistant","model":"kimi-k2-5-us-east-1","stop_sequence":null,"usage":{"input_tokens":258045,"output_tokens":2},"content":[{"type":"text","text":" 415"}],"stop_reason":"end_turn","stop_details":null}
    HTTP 200 in 28.002557s
    
The other cases

Case 1, GET /model/info

  1. Run

    curl -sS http://localhost:$PORT/model/info -H "Authorization: Bearer $LITELLM_MASTER_KEY" | jq '[.data[] | {model_name, max_input_tokens: .model_info.max_input_tokens, key: .model_info.key}]'
  2. Observed

    [
      {
        "model_name": "kimi-k2-5-us-east-1",
        "max_input_tokens": 262144,
        "key": "bedrock/us-east-1/moonshotai.kimi-k2.5"
      },
      {
        "model_name": "kimi-k2-5-base-in-litellm-params",
        "max_input_tokens": 256000,
        "key": "moonshotai.kimi-k2.5"
      },
      {
        "model_name": "kimi-k2-5-unmapped-base",
        "max_input_tokens": 256000,
        "key": "moonshotai.kimi-k2.5"
      },
      {
        "model_name": "kimi-k2-5-smaller-base",
        "max_input_tokens": 8192,
        "key": "bedrock/us-east-1/meta.llama3-8b-instruct-v1:0"
      },
      {
        "model_name": "llama-8b-standin-base",
        "max_input_tokens": 128000,
        "key": "meta.llama3-1-8b-instruct-v1:0"
      },
      {
        "model_name": "llama-8b-standin-base",
        "max_input_tokens": 128000,
        "key": "us.meta.llama3-1-8b-instruct-v1:0"
      },
      {
        "model_name": "sonnet-4-5-global-at-qualified-base",
        "max_input_tokens": 1000000,
        "key": "bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0@global:us-east-1"
      },
      {
        "model_name": "kimi-k2-5-at-qualified-base",
        "max_input_tokens": 262144,
        "key": "bedrock/moonshotai.kimi-k2.5@global:us-east-1"
      },
      {
        "model_name": "sonnet-4-6-global-at-qualified-base",
        "max_input_tokens": 1000000,
        "key": "bedrock/anthropic.claude-sonnet-4-6@global:us-east-1"
      },
      {
        "model_name": "kimi-k2-5-bare-base",
        "max_input_tokens": 256000,
        "key": "moonshotai.kimi-k2.5"
      }
    ]
    

Case 2, smaller base

  1. Run

    jq '.model="kimi-k2-5-smaller-base"' $D/messages_20k.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/messages -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @-
  2. Observed

    {"id":"chatcmpl-4ff5cd8e-742b-4393-bb67-d960e2fce8fd","type":"message","role":"assistant","model":"kimi-k2-5-smaller-base","stop_sequence":null,"usage":{"input_tokens":18845,"output_tokens":2},"content":[{"type":"text","text":" 638"}],"stop_reason":"end_turn","stop_details":null}
    HTTP 200 in 1.566411s
    

Case 3, unmapped base

  1. Run

    jq '.model="kimi-k2-5-unmapped-base"' $D/messages.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/messages -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @-
  2. Observed

    {"type":"error","error":{"type":"invalid_request_error","message":"litellm.ContextWindowExceededError: litellm.BadRequestError: litellm._pre_call_checks: Context Window exceeded for given call. No models have context window large enough for this call.\nModel=bedrock/us-east-1/moonshotai.kimi-k2.5-not-in-cost-map, Max Input Tokens=256000, Got=258421\nmodel=kimi-k2-5-unmapped-base. context_window_fallbacks=None. fallbacks=None.\n\nSet 'context_window_fallback' - https://docs.litellm.ai/docs/routing#fallbacks\n\nLiteLLM: model group 'kimi-k2-5-unmapped-base' failed with the error above. No fallback was attempted."}}
    HTTP 400 in 0.160883s
    

Case 5, POST /v1/chat/completions

  1. Run

    jq '.model="kimi-k2-5-us-east-1"' $D/chat.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/chat/completions -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @-
  2. Observed

    {"id":"chatcmpl-fec309d9-13ec-4f09-b180-87373f2a32ba","created":1792104884,"model":"kimi-k2-5-us-east-1","object":"chat.completion","choices":[{"finish_reason":"stop","index":0,"message":{"content":" 325","role":"assistant"}}],"usage":{"completion_tokens":2,"prompt_tokens":258045,"total_tokens":258047,"completion_tokens_details":{"reasoning_tokens":0,"text_tokens":2},"prompt_tokens_details":{"cached_tokens":0,"text_tokens":258045,"cache_write_tokens":0,"cache_creation_tokens":0},"cache_creation_input_tokens":0,"cache_read_input_tokens":0}}
    HTTP 200 in 27.020008s
    

Case 6, POST /v1/responses

  1. Run

    jq '.model="kimi-k2-5-us-east-1"' $D/responses.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/responses -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @-
  2. Observed

    {"id":"resp_GCv9y_0y7g8UBEyoOuChTYNyx0Rp-HC7JWNz32x1yCOTtatncYu7R2Duk6S21FaVgGmv_IoGsr6kfW0q8G2TsSjXIE6n7CUdlkbU85Gsenfsw1u9M_cYxND8wzXbBCC7Cnc6j1ep49kn8ZbEgLp2hnIud_O9Y5yM_Y0ZmxEI1PQhQ7oXP-pGHDcCIEMdU7oI4o4s6RiTPWq8FvZm3ksykniDlsGXta3EWbOpyQx4IjiigafxdD8gPmcJluMHi_3NqaVkGn7MOrqStxxYiaj0agozAEHwDEBNYZ6KxFaKRHIXFvnpyeV_nqs0bQK5VT2qANCMPg899UVEmWHgb6z2PQ7TGT6yFHaPyTLAdFY7CJadTob0uCC4PLFiGu7ANaTfG4YrGNhZlKWhEDZgbdYRBFdtjZ0_P1cgmuJZPnJbF6D1ZSiLjgb49WXYmjEEct7Brgnfn9RK","created_at":1792104911,"error":null,"incomplete_details":null,"instructions":null,"metadata":{},"model":"kimi-k2-5-us-east-1","object":"response","output":[{"type":"message","id":"msg_40e87e8e-ce80-4e97-8479-986fcdcc53b5","status":"completed","role":"assistant","content":[{"type":"output_text","text":" 415","annotations":[]}],"phase":null}],"parallel_tool_calls":false,"temperature":null,"tool_choice":"auto","tools":[],"top_p":null,"max_output_tokens":16,"previous_response_id":null,"reasoning":null,"status":"completed","text":{},"truncation":null,"usage":{"input_tokens":258045,"input_tokens_details":{"audio_tokens":null,"cached_tokens":0,"cached_tokens_details":null,"image_tokens":null,"text_tokens":258045,"video_tokens":null,"cache_write_tokens":0},"output_tokens":2,"output_tokens_details":{"audio_tokens":null,"reasoning_tokens":0,"text_tokens":2},"total_tokens":258047,"cost":null},"user":null,"store":null}
    HTTP 200 in 27.003692s
    

Case 7, base in litellm_params

  1. Run

    jq '.model="kimi-k2-5-base-in-litellm-params"' $D/messages.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/messages -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @-
  2. Observed

    {"id":"chatcmpl-f5e6228e-b472-44b2-9329-ba9aa64207e6","type":"message","role":"assistant","model":"kimi-k2-5-base-in-litellm-params","stop_sequence":null,"usage":{"input_tokens":258045,"output_tokens":2},"content":[{"type":"text","text":" 645"}],"stop_reason":"end_turn","stop_details":null}
    HTTP 200 in 34.334457s
    

Case 8, stand-in base

  1. Run

    for i in 1 2 3 4 5 6; do
      jq '.model="llama-8b-standin-base"' $D/chat_20k.json \
        | curl -sS -D - -o /dev/null -w 'HTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/chat/completions \
            -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @- \
        | grep -iE '^(x-litellm-model-id|HTTP [0-9]{3} in)'
    done
  2. Observed

    x-litellm-model-id: big-llama3-1-8b
    HTTP 200 in 0.954888s
    x-litellm-model-id: big-llama3-1-8b
    HTTP 200 in 0.925588s
    x-litellm-model-id: big-llama3-1-8b
    HTTP 200 in 0.860489s
    x-litellm-model-id: big-llama3-1-8b
    HTTP 200 in 0.664300s
    x-litellm-model-id: big-llama3-1-8b
    HTTP 200 in 0.862483s
    x-litellm-model-id: big-llama3-1-8b
    HTTP 200 in 0.864869s
    

Case 9, global. route, @ base

  1. Run

    jq '.model="sonnet-4-5-global-at-qualified-base"' $D/messages.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/messages -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @- -H 'anthropic-beta: context-1m-2025-08-07'
  2. Observed

    {"type":"error","error":{"type":"invalid_request_error","message":"litellm.ContextWindowExceededError: litellm.BadRequestError: BedrockException: Context Window Error - {\"message\":\"The model returned the following errors: Input is too long for requested model.\"}\nmodel=sonnet-4-5-global-at-qualified-base. context_window_fallbacks=None. fallbacks=None.\n\nSet 'context_window_fallback' - https://docs.litellm.ai/docs/routing#fallbacks\n\nLiteLLM: model group 'sonnet-4-5-global-at-qualified-base' failed with the error above. No fallback was attempted."}}
    HTTP 400 in 0.857036s
    

Case 10, @ base

  1. Run

    jq '.model="kimi-k2-5-at-qualified-base"' $D/messages.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/messages -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @-
  2. Observed

    {"id":"chatcmpl-f4ba99ca-fd02-4da9-8d43-ef3b0e1a2dc0","type":"message","role":"assistant","model":"kimi-k2-5-at-qualified-base","stop_sequence":null,"usage":{"input_tokens":258045,"output_tokens":2},"content":[{"type":"text","text":" 345"}],"stop_reason":"end_turn","stop_details":null}
    HTTP 200 in 27.451020s
    

Case 11, global. route, @ base, Sonnet 4.6

  1. Run

    jq '.model="sonnet-4-6-global-at-qualified-base"' $D/messages.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/messages -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @-
  2. Observed

    {"id":"chatcmpl-8dd73904-a1f8-4402-99b9-3f0f5afb6867","type":"message","role":"assistant","model":"sonnet-4-6-global-at-qualified-base","stop_sequence":null,"usage":{"input_tokens":290525,"output_tokens":5},"content":[{"type":"text","text":"415"}],"stop_reason":"end_turn","stop_details":null}
    HTTP 200 in 4.140875s
    

Case 12, bare base

  1. Run

    jq '.model="kimi-k2-5-bare-base"' $D/messages.json | curl -sS -w '\nHTTP %{http_code} in %{time_total}s\n' http://localhost:$PORT/v1/messages -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H 'Content-Type: application/json' -d @-
  2. Observed

    {"type":"error","error":{"type":"invalid_request_error","message":"litellm.ContextWindowExceededError: litellm.BadRequestError: litellm._pre_call_checks: Context Window exceeded for given call. No models have context window large enough for this call.\nModel=moonshotai.kimi-k2.5, Max Input Tokens=256000, Got=258421\nmodel=kimi-k2-5-bare-base. context_window_fallbacks=None. fallbacks=None.\n\nSet 'context_window_fallback' - https://docs.litellm.ai/docs/routing#fallbacks\n\nLiteLLM: model group 'kimi-k2-5-bare-base' failed with the error above. No fallback was attempted."}}
    HTTP 400 in 0.158631s
    

Notes

  • Case 9, the customer's Sonnet 4.5 shape, passes the router and gets Bedrock's "Input is too long", as this account lacks the 1M window
  • Case 11 runs that shape on Sonnet 4.6, which has the 1M window, with its route row lowered to 200,000
  • Case 12's bare base reads its own 256,000 row, and /model/info agrees
/audit at d0b5938

Three rigs that share nothing ran on mateo-claude-dev, each with its own Postgres, Redis, scripted upstream, and two-worker proxy. Base is 1938f53, and head and controls are d0b5938. The cells are in tests/integration/routing/test_base_model_context_window_owned_proxy.py. That file boots its own proxy with enable_pre_call_checks: true, a scripted Bedrock Converse upstream, and the bundled cost map. Its prompts are 258,433 router tokens, which is between Kimi K2.5's route row (256,000) and its bedrock/us-east-1/ row (262,144), and 246,093 tokens, which is between those rows times the 0.95 escalation buffer. Every cell checks the status and the upstream calls that carry its marker

Contract Base Head, 2 runs
Same-model base, chat 400, no call 200, 1 call
Same-model base, messages 400, no call 200, 1 call
Same-model base, responses 400, no call 200, 1 call
Base in litellm_params 400, no call 200, 1 call
Complexity router tier escalates to Sonnet stays on Kimi
No base 400, no call 400, no call
Other-model base 400, no call 400, no call
Declared window wins 400, no call 400, no call
Unmapped base 400, no call 400, no call
Smaller base, 20k prompt 200, 1 call 200, 1 call

Both head runs used seed 4106601 and order seed 7 and collected the same 10 cells. The controls lane ran 37 existing pre-call check and context window fallback cells (test_pdf_document_pre_call_checks_owned_proxy.py, test_inferenceapis_context_window_fallbacks_wire.py, test_bedrock_mantle_context_overflow_fallbacks_wire.py) on the head, and all 37 pass. The /live-pr-risk legacy lanes at f925647 pass 167 of 167 on both legs

Unit evidence is tests/unit/test_router_model_cost_isolation.py, 159 pass at d0b5938. It covers the model_info over litellm_params order, never narrowing, a route with no window, an unmapped route, and the base id shapes

Not driven, with reasons: streaming runs the same pre-dispatch check, DB-created deployments reach the router as the same dict, /model/info and spend code did not change and matched live, compaction reads the value the escalation cell checks, and chaos adds nothing because the change is a stateless per-request lookup

/live-pr-risk at f925647

Verdict: no break with the cost map as shipped, one break when a same-model base row overstates its window (the Medium caveat), and one routing change the PR intends. Every scenario ran on both legs against real Bedrock in us-east-1, same config, same order, with a 214,339-token prompt (chat_215k.json, 13,500 lines of the case 1 generator)

Breaking

  • A model group that mixes a deployment with an overstated same-model base row and a deployment that fits. The rig's map gives bedrock/anthropic.claude-sonnet-4-5-20250929-v1:0@global:us-east-1 1,000,000, which this account cannot use. Group grp-overstated holds that Sonnet 4.5 deployment and a plain bedrock/converse/moonshotai.kimi-k2.5 (256,000). Six POST /v1/chat/completions calls returned 200 six times from grp-kimi-fits on main, and 400 five times on the tip (ContextWindowExceededError ... Input is too long for requested model ... No fallback was attempted), one 200 from grp-kimi-fits. Edge: _pre_call_checks now keeps the Sonnet deployment, and should_retry_this_error never retries a 400. Not fixed in this PR. It needs a wrong cost-map row, and the widened rows checked against Bedrock are right (Kimi K2.5 took 258,421 tokens in case 4, and Qwen3 Coder Next and Qwen3 Next 80B both answer "maximum context length is 262144 tokens"). The follow-up is filed. No one has approved shipping it yet, so the reviewer's approval of this PR is that decision

Backward incompatible

  • base_model now also sets the router's input window when it names the same model, where it was a pricing and /model/info key before. The complexity router follows it. Router cr-escalation (SIMPLE sonnet-4-6-global-at-qualified-base with its route row at 200,000, COMPLEX kimi-k2-5-plain, enable_context_window_escalation: true) answered 200 on both legs, from tier COMPLEX on Kimi at $0.128 on main and from tier SIMPLE on Sonnet 4.6 at $0.723 on the tip, since SIMPLE's window is now 1,000,000. This is the intended effect, and Sonnet 4.6 really holds the prompt. Shipping it is the reviewer's call with this PR

Regression risk

  • Context compaction reads the same window (context_compaction.py _budget), so a widened deployment compacts later. Not driven, since it needs a complexity router with a native compactor model and a 250,000-token conversation with closed older turns. Its window input is the same get_router_model_info value the escalation run above showed changing

Dependency graph

Dependent Status
_pre_call_checks window filter verified live
context_window_fallbacks on Bedrock 400 verified live
Complexity router escalation verified live
Context compaction budget untested
_pre_call_checks_need_token_count unit tested
_increment_deployment_usage unaffected, reads tpm and rpm
_group_output_ceiling unaffected, reads output
Spend from cost fields verified live, $0.128433 both legs
/model/info verified live, identical
Legacy suites 167 of 167 pass both legs
  • ctx-overstated (the same Sonnet 4.5 deployment alone, with context_window_fallbacks to kimi-k2-5-plain) returned 200 from Kimi with x-litellm-attempted-fallbacks: 1 on both legs. Main fell back on the router's own check and the tip on Bedrock's 400, which maps to ContextWindowExceededError
  • Bedrock Qwen overflow text maps to a plain BadRequestError on both legs, so context_window_fallbacks miss it. This is older than the PR and is filed separately

Not verified

  • Context compaction, as above
  • Gov-region Llama 3 (8,000 to 8,192), DeepSeek V3.2 (163,840 to 164,000), Nemotron Nano 3, and the Bedrock Mantle gpt-oss safeguard and Kimi K2 Thinking rows, whose larger same-model windows were not checked against Bedrock

Type

🐛 Bug Fix

Caveats (if any)

Medium

  • A base row that overstates the window now fails at Bedrock, not the router
    • In a group, that 400 is not yet retried on a deployment that fits

Low

  • A context window still includes output headroom
  • /model/info still differs for smaller, other-model, and litellm_params bases, as on main
  • The Kimi gap is one stale cost-map row, fixed separately
  • An unmapped same-model base adds about 90 µs per lookup, up to 3 per request
  • The same-model check ignores region and Bedrock vs Bedrock Mantle
  • The docs still call base_model a pricing key only, until the release

Final Attestation

  • The tests check the right things, including the edge cases, and regressions in the respective real-world customer use-cases are not possible after this PR

@codspeed

codspeed Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

⚠️ 1 benchmark spent significant time in system calls

System calls cannot be consistently instrumented, so they are not included in the measure, which understates the real cost. Please switch to the Walltime instrument to accurately measure system calls.

Measurement and system calls

✅ 31 untouched benchmarks


Comparing setarm01:litellm_bedrock_base_model_capacity (d0b5938) with main (ebac947)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (9d442b1) during the generation of this report, so ebac947 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@codecov

codecov Bot commented Oct 13, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 93.93939% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
litellm/router.py 93.93% 2 Missing ⚠️

📢 Thoughts on this report? Let us know!

@setarm01
setarm01 marked this pull request as ready for review October 14, 2026 08:00
… provider

Extends the Bedrock-only check to every non-Azure provider and only uses the
base_model when it has its own exact cost-map entry, so an unmapped or wildcard
base_model falls back to the route id instead of raising in the router.
@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ mateo-berri
❌ setarm01
You have signed the CLA already but the status is still pending? Let us recheck it.

@mateo-berri mateo-berri changed the title fix(router): honor explicit bedrock base model capacity fix(router): honor an exact base_model's capacity for every non-Azure provider Oct 14, 2026
@mateo-berri

Copy link
Copy Markdown
Contributor

Pushed a commit that extends the base_model check to every non-Azure provider and keeps the route's limits when base_model is unmapped

@mateo-berri

Copy link
Copy Markdown
Contributor

@litereview code-review

@litereview

litereview Bot commented Oct 14, 2026 •

Copy link
Copy Markdown

✅ code-review

5/5 · Ready for human review

Scope: full · Full PR review.

Completed · Some checks not run.

No correctness findings.

Checks and execution details
  • Passed · Real testing evidence (required): Not applicable: no LLM translation changes in the scoped paths. The PR changes only litellm/router.py and test files, with no edits under litellm/llms/** or litellm/litellm_core_utils/prompt_templates/**. Importing get_bedrock_base_model from litellm/llms/bedrock/common_utils.py does not change that module.
  • Passed · Unit tests: tests/unit/test_router_model_cost_isolation.py (optional): Ran uv sync --frozen --all-extras, then uv run --frozen pytest tests/unit/test_router_model_cost_isolation.py -q: 159 passed. An earlier run failed one test with ModuleNotFoundError: websockets because proxy extras were not installed. That failure came from the environment, not the PR.
  • Passed · Router code coverage script (optional): uv run --frozen python tests/code_coverage_tests/router_code_coverage.py reported untested_perc: 0.0.
  • Not run · Integration test test_base_model_context_window_owned_proxy.py (optional): This test needs the integration stack (INTEGRATION_PROXY_URL, INTEGRATION_UPSTREAM_URL, INTEGRATION_MASTER_KEY), which this sandbox does not provide.
  • Passed · Code inspection of get_router_model_info merge order (optional): The widened max_input_tokens overlay applies after the cost-map row. Discovered model info and explicit model_info values are merged after it, so an explicit max_input_tokens still wins. Azure skips the widening because model_info already comes from base_model, so _names_route_model and the &lt;= guard return an empty overlay. The litellm_params.base_model lookup through model_extra works: LiteLLM_Params(model=..., base_model=...).model_extra includes base_model.

View review · Reviewed d0b59385e817

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

…t window

A base_model used as a pricing stand-in with a smaller window no longer narrows the route's limit, and a route with no window never takes one from base_model
@greptile-apps

greptile-apps Bot commented Oct 15, 2026

Copy link
Copy Markdown
Contributor

Automatic reviews are disabled for this repository.

@mateo-berri mateo-berri changed the title fix(router): honor an exact base_model's capacity for every non-Azure provider fix(router): let an exact base_model widen a deployment's context window Oct 15, 2026
@mateo-berri

Copy link
Copy Markdown
Contributor

@litereview code-review

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@charan-rathore charan-rathore left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Verified locally on current main. The new capacity tests fail without the router change (8 failed, 27 passed) and the whole test_router_model_cost_isolation.py file passes with it (151 passed). The behavior matches the PR description: an exact base_model cost-map entry can raise the route's input window, never lower it, and wildcard or generalized entries are ignored. The merge order in get_router_model_info keeps user-supplied model_info and discovered info above the widened value, so explicit config still wins. The coverage-list addition documents the two new helpers as covered by those tests. LGTM.

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

…model

A stand-in base_model for a different, larger model widened a smaller
deployment's window, so pre-call checks sent it prompts the provider
rejects with 400. The window now widens only when model_info.base_model
names the same provider model id as the route, which is also the field
/model/info reads.
@mateo-berri

Copy link
Copy Markdown
Contributor

@litereview code-review

@mateo-berri

Copy link
Copy Markdown
Contributor

@litereview code-review

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

@mateo-berri

Copy link
Copy Markdown
Contributor

@litereview code-review

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@cursor cursor Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

@mateo-berri

Copy link
Copy Markdown
Contributor

bugbot run

@mateo-berri

Copy link
Copy Markdown
Contributor

@litereview code-review

@cursor cursor Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit d0b5938. Configure here.

@mateo-berri
mateo-berri enabled auto-merge (squash) October 16, 2026 00:45

@mateo-berri mateo-berri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. Thanks for the contribution!

@mateo-berri
mateo-berri merged commit c288dc7 into BerriAI:main Oct 16, 2026
89 of 91 checks passed
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.

4 participants