Skip to content

fix(ollama_chat): give each streamed tool call its own index - #49183

Merged
mateo-berri merged 9 commits into
BerriAI:mainfrom
tedswinyar:fix-ollama-chat-stream-tool-call-index
Nov 9, 2026
Merged

mateo-berri merged 9 commits into
BerriAI:mainfrom
tedswinyar:fix-ollama-chat-stream-tool-call-index

Conversation

@tedswinyar

@tedswinyar tedswinyar commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Handwritten 1-3 sentence description

Streaming a request through an ollama_chat/ model that answers with several tool calls at once came back as one tool call whose arguments were the JSON objects of every call glued together, because each streamed delta carried index: 0. This gives each call its own index, so OpenAI-style clients assemble three calls instead of one broken one

Details

TLDR

Problem this solves:

  • ollama_chat/ streaming sets index: 0 on every tool call delta
  • Clients merge parallel calls into call 0, or drop the later ones
  • OpenCode runs only the first of two parallel reads
  • Sending back a merged call, or one with empty arguments, answers HTTP 500

How it solves it:

  • One counter numbers tool calls across the whole stream
  • Replayed arguments go through the shared repair parser, and a non-object answers 400 naming the call
  • Error logs leave out argument text, and the repair warning keeps its preview unless turn_off_message_logging is on
  • Non-streaming requests parse replayed arguments the same way, and single-call streams are unchanged

User Flow

Before: an OpenCode user on an Ollama model behind the proxy asks for two files at once and only the first is read

  1. They point OpenCode's @ai-sdk/openai-compatible provider at https://litellm-domain/v1 with an ollama_chat/ model
  2. They ask it to read a.rs and b.rs, both tool calls at once
  3. POST https://litellm-domain/v1/chat/completions streams both tool calls at "index": 0
  4. OpenCode shows one Read a.rs and never reads b.rs (the OpenAI SDK glues both into one call with arguments {"path": "a.rs"}{"path": "b.rs"})
  5. Sending that glued call back on the next turn answers HTTP 500 litellm.APIConnectionError: Extra data

After: the same request comes back as two tool calls and OpenCode reads both files

  1. They point OpenCode's @ai-sdk/openai-compatible provider at https://litellm-domain/v1 with an ollama_chat/ model
  2. They ask it to read a.rs and b.rs, both tool calls at once
  3. POST https://litellm-domain/v1/chat/completions streams the tool calls at "index": 0 and "index": 1
  4. OpenCode shows Read a.rs and Read b.rs (the OpenAI SDK assembles two calls with valid JSON arguments)
  5. Sending both calls and results back returns 200, and a history still holding an old glued call answers HTTP 400 naming that call's id

Relevant issues

Fixes #33678

#37792 has the same fix inside a larger, conflicting change

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
  • 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

Screenshots / Proof of Fix

Last updated: 1f71ed377f4. The SDK cases ran here and OpenCode on 0ae806cce40. The commits after that change only "null" replays, error logs, the repair warning's log text, and tests, which OpenCode never hits. Verification: the null_string and no-echo tests fail on 0ae806cce40, the warning tests on 0f7003a2aeb, and all pass here

Ollama 0.40.14 serves qwen3:0.6b on macOS arm64. Before boots the merge base eacb670b6ec and After boots this branch, each with two uvicorn workers and its own Redis. Raw output and panes are in this gist

Proxy boot

Before runs on port 23428 (worker PIDs 75060 and 75065, then 27215 and 27216 for the empty replay and 20749 and 20750 for the "null" replay) and After on port 20861 (81681 and 81682 at 1f71ed377f4) and port 30022 (67564 and 67565 at 0ae806cce40). Each tree had git status --porcelain empty and the same .env (LITELLM_MASTER_KEY, DATABASE_URL). --reload is dropped since both commits then ignore --num_workers. qa_config.yaml is litellm/proxy/dev_config.yaml plus the block below

$ OLLAMA_HOST=127.0.0.1:26183 ollama serve
$ export LITELLM_PRISMA_COMMAND_TIMEOUT=600 && .venv/bin/python litellm/proxy/proxy_cli.py --config qa_config.yaml --port <port> --num_workers 2 --detailed_debug --use_v2_migration_resolver --timeout_worker_healthcheck 60 2>&1 | tee litellm.log
qa_config.yaml additions
model_list:
  - model_name: ollama-qwen3
    litellm_params:
      model: ollama_chat/qwen3:0.6b
      api_base: http://127.0.0.1:26183
  - model_name: ollama-qwen3-opencode
    litellm_params:
      model: ollama_chat/qwen3:0.6b
      api_base: http://127.0.0.1:26183
      num_ctx: 32768
general_settings:
  coordination_redis: {host: 127.0.0.1, port: <redis port>}
router_settings:
  redis_host: 127.0.0.1
  redis_port: <redis port>

OpenCode 1.19.5, the issue's client, runs as its TUI under tmux. The other cases run the OpenAI Python SDK 3.46.0 and Anthropic Python SDK 2.6.0 stream helpers in qa_client.py, three runs each

opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "autoupdate": false,
  "share": "disabled",
  "provider": {
    "litellm": {
      "npm": "@ai-sdk/openai-compatible",
      "name": "LiteLLM proxy",
      "options": {
        "baseURL": "http://127.0.0.1:<port>/v1",
        "apiKey": "{env:LITELLM_MASTER_KEY}"
      },
      "models": {
        "ollama-qwen3-opencode": {
          "name": "qwen3:0.6b on Ollama via LiteLLM",
          "tool_call": true,
          "limit": { "context": 32768, "output": 4096 }
        }
      }
    }
  },
  "model": "litellm/ollama-qwen3-opencode"
}
OpenCode launch and trial scripts

oc-base/launch.sh is the same with oc-base paths. Each trial runs oc_trial.sh <leg> <n>

$ cat oc-head/launch.sh
#!/bin/zsh
export LITELLM_MASTER_KEY=$(~/.claude/bin/dotenv-get LITELLM_MASTER_KEY --file ~/Development/litellm-worktrees/work-39854062-head/.env)
export XDG_CONFIG_HOME=/private/tmp/claude-501/-Users-mateo-Development-litellm/f9d45eee-24c3-431c-8f88-1c82d0f2f9b1/scratchpad/work-39854062/oc-head/xdg/config XDG_DATA_HOME=/private/tmp/claude-501/-Users-mateo-Development-litellm/f9d45eee-24c3-431c-8f88-1c82d0f2f9b1/scratchpad/work-39854062/oc-head/xdg/data XDG_STATE_HOME=/private/tmp/claude-501/-Users-mateo-Development-litellm/f9d45eee-24c3-431c-8f88-1c82d0f2f9b1/scratchpad/work-39854062/oc-head/xdg/state XDG_CACHE_HOME=/private/tmp/claude-501/-Users-mateo-Development-litellm/f9d45eee-24c3-431c-8f88-1c82d0f2f9b1/scratchpad/work-39854062/oc-head/xdg/cache
export HOME=/private/tmp/claude-501/-Users-mateo-Development-litellm/f9d45eee-24c3-431c-8f88-1c82d0f2f9b1/scratchpad/work-39854062/oc-head/home
export OPENCODE_CONFIG=/private/tmp/claude-501/-Users-mateo-Development-litellm/f9d45eee-24c3-431c-8f88-1c82d0f2f9b1/scratchpad/work-39854062/oc-head/opencode.json OPENCODE_DISABLE_AUTOUPDATE=1
cd /private/tmp/claude-501/-Users-mateo-Development-litellm/f9d45eee-24c3-431c-8f88-1c82d0f2f9b1/scratchpad/work-39854062/oc-head/proj
exec /private/tmp/claude-501/-Users-mateo-Development-litellm/f9d45eee-24c3-431c-8f88-1c82d0f2f9b1/scratchpad/work-39854062/oc/node_modules/.bin/opencode

$ cat oc_trial.sh
#!/bin/zsh
D=/private/tmp/claude-501/-Users-mateo-Development-litellm/f9d45eee-24c3-431c-8f88-1c82d0f2f9b1/scratchpad/work-39854062
leg=$1 n=$2 s=oc-$1-4349
tmux kill-session -t $s 2>/dev/null
tmux new-session -d -s $s -x 160 -y 45 $D/oc-$leg/launch.sh
for i in {1..60}; do [[ $(tmux capture-pane -p -t $s) == *"Ask anything"* ]] && break; sleep 1; done
tmux send-keys -t $s -l "Read the files a.rs and b.rs. Call the read tool once for each file, both calls at once."
sleep 1
tmux send-keys -t $s Enter
sleep 10
for i in {1..120}; do
  out=$(tmux capture-pane -p -t $s)
  [[ $out == *"▣  Build"* && $out != *"esc interrupt"* ]] && break
  sleep 2
done
sleep 2
tmux capture-pane -p -t $s > $D/shots/oc_${leg}_$n.txt
python3 ~/.claude/skills/qa/pr_screenshots.py tui $s $D/shots/oc_${leg}_$n.png --title opencode >/dev/null
grep -E '→ |✗|Error|error' $D/shots/oc_${leg}_$n.txt | sed 's/^ *//' | cut -c1-110
Case Before (eacb670) After (1f71ed3)
OpenCode, two parallel reads 1 Read row, 4/4 2 Read rows in 3 of 4, on 0ae806cce40
Chat stream, turn 1 1 glued call, not JSON, 3/3 2 calls, valid JSON, 3/3
Chat, turn 2 HTTP 500 Extra data, 3/3 200 OK, 3/3
Responses stream SDK RuntimeError, 3/3 2 function_call items, 3/3
Messages stream 2 tool_use blocks, 3/3 same, 3/3
Replay of a glued call HTTP 500 APIConnectionError, 3/3 HTTP 400 naming call_0, 3/3
Replay of an empty-arguments call HTTP 500 APIConnectionError, 3/3 200 OK, 3/3
Replay of a "null"-arguments call 200 OK, 3/3 200 OK, 3/3

Before (eacb670)

OpenCode, two parallel reads

  1. In oc-base/proj (holds a.rs and b.rs), start opencode with baseURL http://127.0.0.1:23428/v1
  2. Type Read the files a.rs and b.rs. Call the read tool once for each file, both calls at once. and press Enter
  3. Trial 3 runs one read, and the model offers help with "the other file"

pr49183-463fbce5b0-oc_base_3.png

Pane text
┃  Read the files a.rs and b.rs. Call the read tool once for each file, both calls at once.
+ Thought: 1.0s
→ Read a.rs
+ Thought: 1.3s
The file a.rs has been successfully read. The content starts at line 1, where the function alpha() is defined.
No further action is needed for this file. Let me know if you need help with the other file.
▣  Build · qwen3:0.6b on Ollama via LiteLLM · 23.9s

Trials 1, 2, and 4 also show one read

Chat completions stream, then the next turn
$ BASE=http://127.0.0.1:23428 KEY=$LITELLM_MASTER_KEY clientvenv/bin/python qa_client.py chat
turn 1 delta: index=0 id=6bbe0724-b46f-4fbb-83bb-b18e1b8850c1 name=read_file arguments={"path": "a.rs"}
turn 1 delta: index=0 id=a301829f-5f0f-4cde-8d2a-ed611996e76c name=read_file arguments={"path": "b.rs"}
turn 1 assembled by the SDK: 1 tool call(s)
  name=read_fileread_file arguments={"path": "a.rs"}{"path": "b.rs"} -> NOT JSON (Extra data: line 1 column 17 (char 16))
turn 2 (tool results sent back): HTTP 500 Error code: 500 - litellm.APIConnectionError: Extra data: line 1 column 17 (char 16)
Responses stream
$ BASE=http://127.0.0.1:23428 KEY=$LITELLM_MASTER_KEY clientvenv/bin/python qa_client.py responses
output_item.added: output_index=1 call_id=8d074011-f57d-4560-bb40-f4b51b56e8a8 name=read_file
output_item.added: output_index=2 call_id=63029e78-b780-45f3-a073-c801c5260044 name=read_file
Traceback (most recent call last):
  File "/private/tmp/claude-501/-Users-mateo-Development-litellm/f9d45eee-24c3-431c-8f88-1c82d0f2f9b1/scratchpad/work-39854062/qa_client.py", line 97, in <module>
    {"chat": chat, "responses": responses, "messages": messages, "replay": replay}[sys.argv[1]]()
  File "/private/tmp/claude-501/-Users-mateo-Development-litellm/f9d45eee-24c3-431c-8f88-1c82d0f2f9b1/scratchpad/work-39854062/qa_client.py", line 57, in responses
    for event in stream:
                 ^^^^^^
  File "/private/tmp/claude-501/-Users-mateo-Development-litellm/f9d45eee-24c3-431c-8f88-1c82d0f2f9b1/scratchpad/work-39854062/clientvenv/lib/python3.12/site-packages/openai/lib/streaming/responses/_responses.py", line 57, in __iter__
    for item in self._iterator:
                ^^^^^^^^^^^^^^
  File "/private/tmp/claude-501/-Users-mateo-Development-litellm/f9d45eee-24c3-431c-8f88-1c82d0f2f9b1/scratchpad/work-39854062/clientvenv/lib/python3.12/site-packages/openai/lib/streaming/responses/_responses.py", line 65, in __stream__
    events_to_fire = self._state.handle_event(sse_event)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/private/tmp/claude-501/-Users-mateo-Development-litellm/f9d45eee-24c3-431c-8f88-1c82d0f2f9b1/scratchpad/work-39854062/clientvenv/lib/python3.12/site-packages/openai/lib/streaming/responses/_responses.py", line 297, in handle_event
    self.__current_snapshot = self.accumulate_event(event)
                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/private/tmp/claude-501/-Users-mateo-Development-litellm/f9d45eee-24c3-431c-8f88-1c82d0f2f9b1/scratchpad/work-39854062/clientvenv/lib/python3.12/site-packages/openai/lib/streaming/responses/_responses.py", line 494, in accumulate_event
    raise RuntimeError("Cannot complete response with unfinished output items.")
RuntimeError: Cannot complete response with unfinished output items.
Messages stream
$ BASE=http://127.0.0.1:23428 KEY=$LITELLM_MASTER_KEY clientvenv/bin/python qa_client.py messages
content_block_start: index=1 id=2e272eca-28a2-4bfd-9646-87e7df7e1b66 name=read_file
content_block_start: index=2 id=c0b6db58-ea3f-4509-8048-2d4066ae84eb name=read_file
assembled by the SDK: 2 tool_use block(s), stop_reason=tool_use
  id=2e272eca-28a2-4bfd-9646-87e7df7e1b66 name=read_file input={"path": "a.rs"}
  id=c0b6db58-ea3f-4509-8048-2d4066ae84eb name=read_file input={"path": "b.rs"}
Replay of a glued call
$ BASE=http://127.0.0.1:23428 KEY=$LITELLM_MASTER_KEY clientvenv/bin/python qa_client.py replay
history holding a merged call sent back: HTTP 500 Error code: 500 - litellm.APIConnectionError: Extra data: line 1 column 17 (char 16)
Replay of an empty-arguments call
$ BASE=http://127.0.0.1:23428 KEY=$LITELLM_MASTER_KEY clientvenv/bin/python qa_client.py replay_empty
history holding a call with empty arguments sent back: HTTP 500 Error code: 500 - litellm.APIConnectionError: Expecting value: line 1 column 1 (char 0)
Replay of a `"null"`-arguments call
$ BASE=http://127.0.0.1:23428 KEY=$LITELLM_MASTER_KEY clientvenv/bin/python qa_client.py replay_null
history holding a call with arguments "null" sent back: 200 OK, reply 'The project contains the following files:  \n- `a.rs`  \n- `b.rs`'

After (1f71ed3)

OpenCode, two parallel reads, on 0ae806cce40

  1. In oc-head/proj (holds a.rs and b.rs), start opencode with baseURL http://127.0.0.1:30022/v1
  2. Type Read the files a.rs and b.rs. Call the read tool once for each file, both calls at once. and press Enter
  3. Trial 7 runs both reads and shows both files

pr49183-0ae806cce4-oc_head_7.png

Pane text
  ┃
  ┃  Read the files a.rs and b.rs. Call the read tool once for each file, both calls at once.
  ┃
     + Thought: 1.9s
     → Read a.rs [limit=2000]
     → Read b.rs [limit=2000]
     + Thought: 813ms
     The files a.rs and b.rs have been successfully read. Here are their contents:
     - a.rs:
       1: pub fn alpha() -> u32 { 1 }
     - b.rs:
       1: pub fn beta() -> u32 { 2 }

Trials 5 and 8 show two Read rows on wrong paths, and trial 6 hit the 4 minute cap

Chat completions stream, then the next turn
$ BASE=http://127.0.0.1:20861 KEY=$LITELLM_MASTER_KEY clientvenv/bin/python qa_client.py chat
turn 1 delta: index=0 id=58e89d7b-0f36-43f8-9645-cc208d4e4759 name=read_file arguments={"path": "a.rs"}
turn 1 delta: index=1 id=f49501de-9ec2-4861-93a9-23a9d8f2868f name=read_file arguments={"path": "b.rs"}
turn 1 assembled by the SDK: 2 tool call(s)
  name=read_file arguments={"path": "a.rs"} -> valid JSON
  name=read_file arguments={"path": "b.rs"} -> valid JSON
turn 2 (tool results sent back): 200 OK, reply 'The read_file function has been called successfully for both "a.rs" and "b.rs". '
Responses stream

The SDK's Pydantic serializer warnings are cut here and kept in the gist

$ BASE=http://127.0.0.1:20861 KEY=$LITELLM_MASTER_KEY clientvenv/bin/python qa_client.py responses
output_item.added: output_index=1 call_id=4c765d6f-362b-4c13-abd5-3af6196899ba name=read_file
output_item.added: output_index=2 call_id=b560f683-a422-490e-9b56-4ff930a82d8c name=read_file
assembled by the SDK: 2 function_call item(s)
  call_id=4c765d6f-362b-4c13-abd5-3af6196899ba name=read_file arguments={"path": "a.rs"} -> valid JSON
  call_id=b560f683-a422-490e-9b56-4ff930a82d8c name=read_file arguments={"path": "b.rs"} -> valid JSON
Messages stream

In run 1 the model nested its own schema inside path, and runs 2 and 3 sent plain paths, all in the gist

$ BASE=http://127.0.0.1:20861 KEY=$LITELLM_MASTER_KEY clientvenv/bin/python qa_client.py messages
content_block_start: index=1 id=0e10d833-ad3b-46c6-96f4-ebcd56951c90 name=read_file
content_block_start: index=2 id=3cabbffc-7d0c-430c-bd07-b54f76a6050c name=read_file
assembled by the SDK: 2 tool_use block(s), stop_reason=tool_use
  id=0e10d833-ad3b-46c6-96f4-ebcd56951c90 name=read_file input={"path": {"type": "string", "value": "a.rs"}}
  id=3cabbffc-7d0c-430c-bd07-b54f76a6050c name=read_file input={"path": {"type": "string", "value": "b.rs"}}
Replay of a glued call
$ BASE=http://127.0.0.1:20861 KEY=$LITELLM_MASTER_KEY clientvenv/bin/python qa_client.py replay
history holding a merged call sent back: HTTP 400 Error code: 400 - litellm.BadRequestError: OllamaException - arguments of assistant tool call 'call_0' are not a JSON object

LiteLLM: model group 'ollama-qwen3' failed with the error above. No fallback was attempted.
Replay of an empty-arguments call
$ BASE=http://127.0.0.1:20861 KEY=$LITELLM_MASTER_KEY clientvenv/bin/python qa_client.py replay_empty
history holding a call with empty arguments sent back: 200 OK, reply 'The files in the project are `a.rs` and `b.rs`.'
Replay of a `"null"`-arguments call
$ BASE=http://127.0.0.1:20861 KEY=$LITELLM_MASTER_KEY clientvenv/bin/python qa_client.py replay_null
history holding a call with arguments "null" sent back: 200 OK, reply 'The files in the project are:\n\n- a.rs\n- b.rs'
qa_client.py, the client code each SDK case runs
import json
import os
import sys

import anthropic
import openai

BASE = os.environ["BASE"]
KEY = os.environ["KEY"]
MODEL = os.environ.get("MODEL", "ollama-qwen3")
PROMPT = "Read the files a.rs and b.rs. Call read_file once for each file, both calls at once."
SCHEMA = {"type": "object", "properties": {"path": {"type": "string"}}, "required": ["path"]}


def verdict(arguments):
    try:
        json.loads(arguments)
        return "valid JSON"
    except ValueError as exc:
        return f"NOT JSON ({exc})"


def chat():
    client = openai.OpenAI(base_url=f"{BASE}/v1", api_key=KEY, max_retries=0)
    tools = [{"type": "function", "function": {"name": "read_file", "description": "Read one file from disk.", "parameters": SCHEMA}}]
    messages = [{"role": "user", "content": PROMPT}]
    with client.chat.completions.stream(model=MODEL, messages=messages, tools=tools) as stream:
        for event in stream:
            if event.type != "chunk":
                continue
            for choice in event.chunk.choices:
                for tc in choice.delta.tool_calls or []:
                    print(f"turn 1 delta: index={tc.index} id={tc.id} name={tc.function.name} arguments={tc.function.arguments}")
        final = stream.get_final_completion().choices[0].message
    print(f"turn 1 assembled by the SDK: {len(final.tool_calls or [])} tool call(s)")
    for tc in final.tool_calls or []:
        print(f"  name={tc.function.name} arguments={tc.function.arguments} -> {verdict(tc.function.arguments)}")
    if not final.tool_calls:
        return
    history = messages + [final.model_dump(exclude_none=True)] + [
        {"role": "tool", "tool_call_id": tc.id, "content": "fn main() {}"} for tc in final.tool_calls
    ]
    try:
        with client.chat.completions.stream(model=MODEL, messages=history, tools=tools) as stream:
            text = "".join(
                event.delta for event in stream if event.type == "content.delta"
            )
        print(f"turn 2 (tool results sent back): 200 OK, reply {text[:80]!r}")
    except openai.APIStatusError as exc:
        print(f"turn 2 (tool results sent back): HTTP {exc.status_code} {str(exc.message)[:300]}")


def responses():
    client = openai.OpenAI(base_url=f"{BASE}/v1", api_key=KEY, max_retries=0)
    tools = [{"type": "function", "name": "read_file", "description": "Read one file from disk.", "parameters": SCHEMA}]
    with client.responses.stream(model=MODEL, input=PROMPT, tools=tools) as stream:
        for event in stream:
            if event.type == "response.output_item.added" and event.item.type == "function_call":
                print(f"output_item.added: output_index={event.output_index} call_id={event.item.call_id} name={event.item.name}")
        final = stream.get_final_response()
    calls = [item for item in final.output if item.type == "function_call"]
    print(f"assembled by the SDK: {len(calls)} function_call item(s)")
    for item in calls:
        print(f"  call_id={item.call_id} name={item.name} arguments={item.arguments} -> {verdict(item.arguments)}")


def messages():
    client = anthropic.Anthropic(base_url=BASE, api_key=KEY, max_retries=0)
    tools = [{"name": "read_file", "description": "Read one file from disk.", "input_schema": SCHEMA}]
    with client.messages.stream(model=MODEL, max_tokens=1024, messages=[{"role": "user", "content": PROMPT}], tools=tools) as stream:
        for event in stream:
            if event.type == "content_block_start" and event.content_block.type == "tool_use":
                print(f"content_block_start: index={event.index} id={event.content_block.id} name={event.content_block.name}")
        final = stream.get_final_message()
    blocks = [block for block in final.content if block.type == "tool_use"]
    print(f"assembled by the SDK: {len(blocks)} tool_use block(s), stop_reason={final.stop_reason}")
    for block in blocks:
        print(f"  id={block.id} name={block.name} input={json.dumps(block.input)}")


def replay():
    client = openai.OpenAI(base_url=f"{BASE}/v1", api_key=KEY, max_retries=0)
    tools = [{"type": "function", "function": {"name": "read_file", "description": "Read one file from disk.", "parameters": SCHEMA}}]
    merged_call = {"id": "call_0", "type": "function", "function": {"name": "read_fileread_file", "arguments": '{"path": "a.rs"}{"path": "b.rs"}'}}
    history = [
        {"role": "user", "content": PROMPT},
        {"role": "assistant", "content": "", "tool_calls": [merged_call]},
        {"role": "tool", "tool_call_id": "call_0", "content": "fn main() {}"},
    ]
    try:
        client.chat.completions.create(model=MODEL, messages=history, tools=tools)
        print("history holding a merged call sent back: 200 OK")
    except openai.APIStatusError as exc:
        print(f"history holding a merged call sent back: HTTP {exc.status_code} {str(exc.message)[:300]}")


def replay_no_argument_call(arguments, label):
    client = openai.OpenAI(base_url=f"{BASE}/v1", api_key=KEY, max_retries=0)
    tools = [{"type": "function", "function": {"name": "list_files", "description": "List the files in the project.", "parameters": {"type": "object", "properties": {}}}}]
    no_argument_call = {"id": "call_0", "type": "function", "function": {"name": "list_files", "arguments": arguments}}
    history = [
        {"role": "user", "content": "Which files are in the project?"},
        {"role": "assistant", "content": "", "tool_calls": [no_argument_call]},
        {"role": "tool", "tool_call_id": "call_0", "content": "a.rs b.rs"},
    ]
    try:
        reply = client.chat.completions.create(model=MODEL, messages=history, tools=tools)
        print(f"history holding a call with {label} sent back: 200 OK, reply {reply.choices[0].message.content!r:.80}")
    except openai.APIStatusError as exc:
        print(f"history holding a call with {label} sent back: HTTP {exc.status_code} {str(exc.message)[:300]}")


def replay_empty():
    replay_no_argument_call("", "empty arguments")


def replay_null():
    replay_no_argument_call("null", 'arguments "null"')


{"chat": chat, "responses": responses, "messages": messages, "replay": replay, "replay_empty": replay_empty, "replay_null": replay_null}[sys.argv[1]]()

The author's earlier run on Ollama 0.40.5 with qwen3.6:35b-a3b and three parallel calls showed the same flip

Type

🐛 Bug Fix

Caveats (if any)

Medium

  • The ollama/ route still answers 500 on these replayed arguments, since ollama_pt calls a bare json.loads
    • The workaround is the ollama_chat/ prefix, and the fix is followed up separately

Low

  • Indices follow arrival order, not Ollama's function.index, so a server that omits or repeats that field still gets unique indices
    • They agree on Ollama 0.40.14
  • A replayed glued call answers 400 rather than being split, since split calls would have no matching tool results
  • QA used qwen3:0.6b, since newer Qwen models start at 27B
  • Shared Delta and OCI tool call numbering left untouched
  • Streamed tool call ids are still regenerated (fix(ollama): keep provider-assigned tool call ids in streamed tool calls #46587)
/live-pr-risk at `5ef6d62cca7`, nothing breaking

Base and head proxies ran side by side against real Ollama, Bedrock, Postgres, and Redis, with a recorder in front of each upstream

Breaking. None

Backward incompatible. Each change is intended by this PR, and mateo-berri approves shipping it in the approving review here

  1. Streamed parallel ollama_chat/ calls get indices 0 to N-1 instead of all 0, so clients, Responses streams, and spend logs see N valid calls instead of one glued call. This is the fix
  2. The tool_permission guardrail now blocks a stream whose first call is denied. The base let it through with 200, since its rebuilt stream kept only the last call's name, so this restores the guardrail
  3. Replayed arguments that answered 500 APIConnectionError now answer 400 BadRequestError for glued or non-object JSON, or 200 for empty, null, truncated, or dict arguments. The router makes one attempt instead of three, fallbacks still run, and a "null" string goes to Ollama as {}
  4. With turn_off_message_logging on, the repair warning logs redacted-by-litellm instead of the raw arguments

Regression risk. The untested rows below. Each one reads the same stream or parser output as a verified row

Not verified. The vendor guardrails that rebuild the stream, each needing its vendor's credentials, the MCP auto-execute path, OTel export, disconnect billing, stream cache replay, and the Azure AI Claude, bedrock/claude_platform, and opencode_go callers of the shared parser

Dependency graph.

Dependent Changed item Status
/v1/chat/completions stream, ollama_chat index counter verified-live S1 S2 S3
/v1/responses stream bridge index counter verified-live S7
/v1/messages stream adapter index counter verified-live S5
Spend log rebuild of streams index counter verified-live
tool_permission stream hook index counter verified-live G1 G3
Other re-streaming guardrails index counter untested
OTel request_io index counter untested
Disconnect billing index counter untested
Stream cache replay index counter untested
Plain ollama/ iterator none traced, unchanged
Chat replay to ollama_chat arguments parser verified-live R01-R21
/v1/messages replay arguments parser verified-live M1 M2
Responses replay arguments parser verified-live P1-P3
Router retries 400 vs 500 verified-live
Router fallbacks 400 vs 500 verified-live F1 F2
Spend failure rows 400 vs 500 verified-live
ollama/ route ollama_pt none traced, unchanged
Anthropic converter repair warning verified-live
Bedrock invoke converter repair warning verified-live
Vertex Claude converter repair warning verified-live
Bedrock Converse not a caller verified-live control
Azure AI Claude converter repair warning untested
bedrock/claude_platform repair warning untested
opencode_go repair warning untested
Per-request redaction repair warning verified-live Q2
Token counter, guardrail rewrite parser, no text change traced

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
Bugbot summary

[!NOTE]
Medium Risk
Changes ollama_chat streaming contract (tool-call indices) and replay validation (400 vs prior 500), affecting chat completions and clients that merge streamed tool calls.

Overview
Fixes ollama_chat/ streaming where every parallel tool-call delta used index: 0, which made OpenAI-style clients merge arguments into one broken call. The Ollama chat stream iterator now assigns sequential indices across the whole response.

Replayed assistant tool calls no longer use bare json.loads: they go through shared parse_tool_call_arguments (repair truncated JSON, require a JSON object). Invalid shapes return HTTP 400 naming the call id without echoing argument text in the error.

Tool-call JSON repair warnings now log argument previews via _logged_arguments (200-char cap, full redaction when turn_off_message_logging is on).

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

Ollama streams parallel tool calls one per chunk with no top-level index, and the delta
numbers the calls of each chunk from zero, so every call left the proxy as index 0 and
OpenAI-style clients appended the arguments of each later call onto the first one. Number
the calls with a counter that lives for the whole stream instead.

Fixes BerriAI#33678
@CLAassistant

CLAassistant commented Nov 2, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@greptile-apps

greptile-apps Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, with no new actionable issues found.

Summary

This PR gives streamed ollama_chat/ tool calls separate indices so clients can assemble parallel calls correctly.

  • Ollama chat streams give each tool call its own index.
  • Replayed Ollama tool calls accept repaired arguments and reject non-objects clearly.
  • Tool-argument repair warnings follow the message-logging setting.

Reviews (9) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile

…t JSON

A chat history that already holds a merged tool call from an older stream
used to fail with a 500 APIConnectionError. It now answers 400 naming the
tool call. The streaming tests use Ollama's real tool call shape and drop
a case the merge base already passed.
# Conflicts:
#	litellm/llms/ollama/chat/transformation.py
#	tests/unit/llms/ollama/test_ollama_chat_transformation.py
@codspeed

codspeed Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

1 warning

⚠️ 1 benchmark is dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 43 untouched benchmarks


Comparing tedswinyar:fix-ollama-chat-stream-tool-call-index (e1d7290) with main (07f5bab)1

Open in CodSpeed

Footnotes

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

@codecov

codecov Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

…repair parser

Empty, null, and truncated arguments in a replayed assistant tool call now go through parse_tool_call_arguments, so they are forwarded as an object instead of answering 500. Arguments that still are not a JSON object answer 400 naming the call id.
@veria-ai

veria-ai Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

PR overview

All previously flagged issues have been addressed. No open security concerns remain on this pull request.

Security review

No open security issues remain on this pull request.

Fixed/addressed: 1 · PR risk: 0/10

Reviews

@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

…nt text out of the repair warning

Replayed tool call arguments of the JSON string "null" used to reach Ollama and return 200. The shared parser turns them into None, so they now go out as {} like empty or missing arguments instead of answering 400.

The parser's repair warning logged up to 200 characters of the arguments. It now logs only the tool name, context, and length.
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

…e logging is off

The shared repair warning lost its 200-character argument preview for every provider. It now logs the same preview as before by default, and logs redacted-by-litellm instead when turn_off_message_logging is on.
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

mateo-berri added a commit that referenced this pull request Nov 7, 2026
…e logging is off

Backport of #49183 to lts/1.108.x.
Cherry-picked from 5ef6d62 (fix-ollama-chat-stream-tool-call-index).
Adapted to the line. The repair warning lives in common_utils.py here.
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@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.

@tedswinyar

Copy link
Copy Markdown
Contributor Author

Thanks for picking this up and hardening the replay path. Read through the changes and I'm happy with where it landed. Happy to help if anything else comes up.

@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

Copy link
Copy Markdown
Contributor

@greptileai

@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.

✅ 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 e1d7290. Configure here.

@mateo-berri
mateo-berri merged commit 6a232c9 into BerriAI:main Nov 9, 2026
89 checks passed
mateo-berri added a commit that referenced this pull request Nov 9, 2026
Backport of #49183 to lts/1.108.x.
Cherry-picked from 1f71ed3 (fix-ollama-chat-stream-tool-call-index).
Adapted to the line. The repair warning tests live in test_litellm_core_utils_prompt_templates_common_utils.py here.
mateo-berri added a commit that referenced this pull request Nov 9, 2026
fix(ollama_chat): backport streamed tool call indices to lts/1.108.x (#49183)
kartsan03 added a commit to kartsan03/wiretruth that referenced this pull request Nov 10, 2026
…tuses (#95)

## Summary

`wiretruth lint` now checks that each stored PASS, LOSSY or WRONG grade
follows from the MUST statuses next to it, along with the other gaps
listed in #90. The same PR corrects four statements from #91: the
upstream status of BerriAI/litellm#33678, the site's Suite label, and
one sentence each in `docs/formats.md` and the README.

Closes #90
Closes #91

## Why

Rule 7 says grades are computed, never hand-edited, but nothing checked
a committed results file against its own requirement statuses.
Conformance re-runs only the pinned version of each library, and the
site and `docs/validation.md` also read the eight older files. #91
collects statements on the site and in the docs that no longer match the
repository or the upstream state.

## What changed

- `grading.py`: the step from MUST statuses to PASS, LOSSY or WRONG is
`must_grade(statuses)`. `grade_cell` calls it and keeps its rule numbers
(6, 7, 8) and `RULES`.
- `lint.py`, for each results file:
- a PASS, LOSSY or WRONG cell whose grade differs from `must_grade` of
its MUST statuses, that has no requirements, or whose observation is a
raised `internal` error (rule 5 gives CRASH) → error at
`$.cells[i].grade`;
- a duplicate requirement id → error at `$.cells[i].requirements[j].id`;
the same scenario and provider twice → error at `$.cells[i]`;
- CRASH, HANG, UNSUPPORTED and HARNESS cells are not recomputed, because
their rules depend on the run.
- `lint.py`, for `results/upstream.json`: an entry whose library has no
`results/<library>/` directory, and a `released` entry with a null or
empty `fixed_in`. Skipped when `results/` is missing, like the rest of
the results checks.
- `lint.py` also loads the built-in `shims/reference/` and `shims/liar/`
manifests, which the `shims/*/*/` glob missed (146 → 148 files).
- `results/upstream.json`: BerriAI/litellm#33678 is `fix-merged` with
`pr` set to BerriAI/litellm#49183, and `fixed_in` stays null. The
upstream merge commits are
[6a232c9](BerriAI/litellm@6a232c9)
on `main` (2026-11-09) and the backport
[a354fb7](BerriAI/litellm@a354fb7)
on `lts/1.108.x` (BerriAI/litellm#50718, merged after v1.108.4 was
tagged). The cell stays WRONG: it also needs BerriAI/litellm#46543,
which is open and keeps `reported`. No results file changes.
- Site index: no "Suite" label (it showed the highest dev suite version
among the current results files). "Updated" stays, and each results file
keeps its `suite_version`.
- `docs/formats.md`: the remark that shim manifests aren't linted is
gone, and the list of lint checks names every check above plus the
manifest schema, the manifest and `package.json` secret scan and the
packages rule.
- README Quickstart: Python libraries install into `.wiretruth/envs/`,
JavaScript libraries into `node_modules` next to their shim.
- `CHANGELOG.md`: Unreleased → Added (lint) and Changed (upstream
status, site label).

Out of scope, as #90 says: comparing a cell's requirement ids and levels
with today's scenario file, and checking that an upstream entry's
scenarios and providers still exist.

## How tested

The reproduction from #90 plus the two upstream probes, on a copy of
`suite/`, `results/` and `shims/` (the grade flipped to PASS with a
SATISFIED copy of `finish-is-other` in front, the first upstream entry's
library renamed to `no-such-lib`, one `released` entry with `fixed_in:
null`):

```text
$ wiretruth lint .
results/litellm/1.105.5.json: $.cells[4].requirements[2].id: duplicate requirement id 'finish-is-other'
results/litellm/1.105.5.json: $.cells[4].grade: PASS doesn't follow from its MUST statuses, which give WRONG
results/upstream.json: $[0].library: no results directory for 'no-such-lib'
results/upstream.json: $[5].fixed_in: a released entry must have a nonempty fixed_in
wiretruth lint: 4 errors in 2 of 148 files
```

On this branch:

```text
$ uv run ruff check . && uv run ruff format --check . && uv run mypy src
All checks passed! / 91 files already formatted / Success: no issues found in 24 source files
$ uv run pytest -q
2043 passed
$ uv run pytest -q tests/unit/test_grading.py --cov=wiretruth.grading --cov-branch
grading.py 100%
$ uv run wiretruth lint
wiretruth lint: 148 files, no errors
$ uv run wiretruth site --out _site
cells/litellm/tools.parallel-calls-stream/ollama.html shows fix-merged and links pull/49183; index.html has no "Suite"
```

Each new lint test fails with its check removed. Sample CRASH, HANG,
UNSUPPORTED and HARNESS cells, with and without contradicting statuses,
still pass.

## Results impact

none (no grade changes; the committed results files all pass the new
checks)

## Checklist

- [x] Tests added or updated
- [x] `uv run ruff check . && uv run ruff format --check . && uv run
mypy src && uv run pytest -q` pass
- [x] `uv run wiretruth lint` passes (suite data, secrets, truth)
- [x] `CHANGELOG.md` updated under `Unreleased` (if user-facing)
- [x] Docs updated (if behavior or formats changed)
- [x] New WRONG / CRASH / HANG cells have an upstream issue linked in
`results/upstream.json`: none
jya0 pushed a commit to AITDEV00/litellm that referenced this pull request Nov 11, 2026
Ollama streams parallel tool calls one per chunk with no top-level index, and the delta
numbers the calls of each chunk from zero, so every call left the proxy as index 0 and
OpenAI-style clients appended the arguments of each later call onto the first one. Number
the calls with a counter that lives for the whole stream instead.

Fixes BerriAI#33678

Backport of BerriAI#49183 to lts/1.108.x.
Cherry-picked from df6126e (fix-ollama-chat-stream-tool-call-index).
jya0 pushed a commit to AITDEV00/litellm that referenced this pull request Nov 11, 2026
…t JSON

A chat history that already holds a merged tool call from an older stream
used to fail with a 500 APIConnectionError. It now answers 400 naming the
tool call. The streaming tests use Ollama's real tool call shape and drop
a case the merge base already passed.

Backport of BerriAI#49183 to lts/1.108.x.
Cherry-picked from 84154df (fix-ollama-chat-stream-tool-call-index).
jya0 pushed a commit to AITDEV00/litellm that referenced this pull request Nov 11, 2026
…repair parser

Empty, null, and truncated arguments in a replayed assistant tool call now go through parse_tool_call_arguments, so they are forwarded as an object instead of answering 500. Arguments that still are not a JSON object answer 400 naming the call id.

Backport of BerriAI#49183 to lts/1.108.x.
Cherry-picked from 0ae806c (fix-ollama-chat-stream-tool-call-index).
Adapted to the line. parse_tool_call_arguments is imported from common_utils, its home here, and the forwarded-object test expects no tool call id, since the line does not forward ids.
jya0 pushed a commit to AITDEV00/litellm that referenced this pull request Nov 11, 2026
…nt text out of the repair warning

Replayed tool call arguments of the JSON string "null" used to reach Ollama and return 200. The shared parser turns them into None, so they now go out as {} like empty or missing arguments instead of answering 400.

The parser's repair warning logged up to 200 characters of the arguments. It now logs only the tool name, context, and length.

Backport of BerriAI#49183 to lts/1.108.x.
Cherry-picked from e604431 (fix-ollama-chat-stream-tool-call-index).
Adapted to the line. The repair warning change goes into common_utils.py, where parse_tool_call_arguments lives here, and its test goes into that module's test file.
jya0 pushed a commit to AITDEV00/litellm that referenced this pull request Nov 11, 2026
…error chain

Backport of BerriAI#49183 to lts/1.108.x.
Cherry-picked from 0f7003a (fix-ollama-chat-stream-tool-call-index).
pamanseau added a commit to KubeTEE-AI/litellm that referenced this pull request Nov 16, 2026
* fix(anthropic): stop logging rejected encrypted reasoning

The retry warning keeps provider, model, status, and error code, and leaves the ciphertext out.

Backport of the third #49076 commit to lts/1.108.x. Cherry-picked from c62c92d2ad0.

Co-authored-by: DDT <141296842+Hugo-DDT@users.noreply.github.com>

* fix(ollama): keep replayed tool arguments out of a rejected replay's error chain

Backport of #49183 to lts/1.108.x.
Cherry-picked from 0f7003a2aeb84651230b0fcbcb8403e4ed957af8 (fix-ollama-chat-stream-tool-call-index).

* fix(anthropic): start a new streamed block for each reasoning item

The backported Responses bridge tags each reasoning item's thinking block with its output index, but this line's Anthropic stream wrapper only opened a new block when the block type changed, so a second reasoning item of the same type was dropped. This ports the index check from #46863, which main already has.

* fix(anthropic): keep each streamed reasoning summary with its own item

A summary delta carries no item index, so the next item's summary joined the block that already got its signature. A thinking chunk after an indexed signature now opens a new block.

* fix(ollama): keep the repair warning's argument preview unless message logging is off

Backport of #49183 to lts/1.108.x.
Cherry-picked from 5ef6d62cca7e0a9a9e6db2609ca435e9b957de5e (fix-ollama-chat-stream-tool-call-index).
Adapted to the line. The repair warning lives in common_utils.py here.

* fix(anthropic): stream reasoning signatures only to Messages clients, keep xAI web search reasoning, and retry only when the sent request carried it

* fix(anthropic): send openai/ Messages turns again once without encrypted reasoning a backend rejects

The openai/ Responses path on /v1/messages had no retry, so a chatgpt/ block left in history answered 400 on every later openai/ turn. That path now sends the turn once more without encrypted reasoning, the same way the chat bridge does. The retry matches only invalid_encrypted_content or a "could not be verified" message naming the content, so the exception mapper's own hint no longer triggers it. The xAI web search keep path is backed out, since xAI sends no encrypted reasoning over the bridge.

Backport of 15e60170124 from #49076 to lts/1.108.x, ported by hand onto the pass_through modules.

Co-authored-by: DDT <141296842+Hugo-DDT@users.noreply.github.com>

* test(ollama): cover short and boundary-length repair warning previews

Backport of #49183 to lts/1.108.x.
Cherry-picked from 1f71ed377f459792b383bcd2bd1e5e4f4b2137ae (fix-ollama-chat-stream-tool-call-index).
Adapted to the line. The repair warning tests live in test_litellm_core_utils_prompt_templates_common_utils.py here.

* test(utils): drop a duplicate schema key the line already had on lts/1.108.x

The picks touch tests/unit/test_utils.py, so ruff now checks it, and
the line's model info schema lists supports_bedrock_native_structured_output
twice with the same value. The second copy goes

* fix(tool_choice): accept OpenAI allowed_tools on chat completions and flatten it for the Responses bridge (#49043)

Backport of #49043 to lts/1.108.x.
Cherry-picked from 28c80048ed47d53befd819f22b5ac1bb112ec3fd (main). Import conflicts in the Responses bridge and the Azure chat config resolved to the line's imports plus the helper import.

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(tool_choice): accept the Responses API's flat allowed_tools layout on chat completions

Backport of #50467 to lts/1.108.x.
Cherry-picked from e56c060363c741b24579ecc01279c992d2d339d1 (litellm_allowed_tools_flat_tool_choice).

* fix(tool_choice): drop an allowed_tools choice under drop_params and refuse conflicting flat entries

Backport of #50467 to lts/1.108.x.
Cherry-picked from 361aecae72f2a9153a12b3998c90515f679896fd (litellm_allowed_tools_flat_tool_choice). Azure chat config import conflict resolved to the line's imports.

* fix(tool-choice): keep the 400 when LiteLLM runs the tools, report auto after a drop

Backport of #50467 to lts/1.108.x.
Cherry-picked from 5f8f54a6ca0dbd5bfc443b55e4c49e34b6b8176e (litellm_allowed_tools_flat_tool_choice). Conflicts resolved by applying this commit's hunks to the line's simpler Responses bridge handler and responses() bridge branch, and appending its new tests to the line's test files.

* fix(tool-choice): refuse an excluded tool right before LiteLLM runs it

Backport of #50467 to lts/1.108.x.
Cherry-picked from e25a82c3f54ff54178b5ebb98fb1da6a753e1fe2 (litellm_allowed_tools_flat_tool_choice). Conflicts resolved by applying this commit's hunks to the line's code. Test hunks that need main-only test helpers are carried by the line's test adaptation commit.

* fix(tool-choice): drop the choice under drop_params and hand an excluded MCP call back unrun

Backport of #50467 to lts/1.108.x.
Cherry-picked from be0bb7a57e55712476b903a8244802024416bd96 (litellm_allowed_tools_flat_tool_choice). Conflicts resolved by applying this commit's hunks to the line's MCP handlers and responses(). Test hunks that need main-only test helpers are carried by the line's test adaptation commit.

* fix(tool-choice): refuse an allowed_tools entry whose name is not a string

Backport of #50467 to lts/1.108.x.
Cherry-picked from 2ac020c070c7fdd47ec912f5ae334923ec85356c (litellm_allowed_tools_flat_tool_choice). Test hunks that need main-only test helpers are carried by the line's test adaptation commit.

* fix(tool-choice): honor server-level and null-name mcp entries and stop hooks running excluded calls

Backport of #50467 to lts/1.108.x.
Cherry-picked from 939034d8a4bc3a9f7d337471ca97738df933e300 (litellm_allowed_tools_flat_tool_choice). Resolved: tool_precheck.py is not on the line, so server_labels_serving lives in litellm_proxy_mcp_handler.py. The line has no refused-turn path, so a hook turn holding a call the choice excludes answers 400 through refuse_tool_calls_the_choice_excludes. Test hunks that need main-only fixtures move to the line test commit.

* fix(tool-choice): match named mcp entries by server label and let built-in entries allow their interception call

Backport of #50467 to lts/1.108.x.
Cherry-picked from 4755727276c84a50107c3d5aef9d398e7d0d4603 (litellm_allowed_tools_flat_tool_choice). Resolved: kept only this pick's helper and import where the line lacks main's sandbox result types and core_helpers import. Test hunks that need main-only fixtures move to the line test commit.

* fix(tool-choice): leave a malformed allowed_tools choice unrewritten in the interception hooks

Backport of #50467 to lts/1.108.x.
Cherry-picked from cd076fb13ab (litellm_allowed_tools_flat_tool_choice).

* fix(tool-choice): resolve mcp entries like the gateway and keep the choice on every hook path

Backport of #50467 to lts/1.108.x.
Cherry-picked from 6be4f0b9ead (litellm_allowed_tools_flat_tool_choice). Resolved: the line has no tool_precheck.py or agentic_loop_refusal.py, so the MCP label resolver lives in litellm_proxy_mcp_handler.py and mirrors the line's own toolset resolution (admin view and granted toolsets, no access-group fallback), and the line's toolset listing now calls the same resolver. A chat hook turn holding a call the choice excludes answers 400 through the line's AgenticLoopSafetyError path. Main-only code in the conflicted hunks (internal_sub_call, first-round billing, Claude Code web search prefix) is left out. Test hunks that need main-only fixtures move to the line test commit.

* fix(allowed_tools): stop web search and code interpreter follow-ups forcing another call

Backport of #50467 to lts/1.108.x.
Cherry-picked from 478fb95d6b1 (litellm_allowed_tools_flat_tool_choice). Resolved: test imports merged with the line's, and the tests that need main's web search fixtures move to the line test commit.

* fix(openai): refuse an openai chat hook call the allowed_tools choice excludes

The line's OpenAI chat handler runs its own agentic hook loop instead of
the shared one main uses, so the picked exclusion check never reached
it. This checks the response before a hook runs, like the line's HTTP
handler already does after the picks, and answers 400 when the model
called a tool the choice leaves out. Chat calls with an allowed_tools
choice answer 400 on the line today, so no call that succeeds changes.

* test(tool-choice): adapt the picked tests to lts/1.108.x

The picked test files reach a few names the line does not have, so this
ports them to the line's code without bringing those features over.
The MCP response tests stub the line's own proxy_server imports, the
web search tests get main's perplexity_search fixture, and the chat and
Responses hook tests expect what the line does. An excluded chat hook
call answers 400, and native /v1/responses hooks run as before since
the line cannot end a Responses turn early

* fix(allowed_tools): stop the Responses web search follow-up forcing another call

Backport of #50467 to lts/1.108.x.
Cherry-picked from 08eb785ee22 (litellm_allowed_tools_flat_tool_choice). Resolved: adds main's _WEB_SEARCH_FUNCTION_CALL test constant, which came with #38885 and is not on the line, and wraps one long test line.

* fix(responses): send a malformed allowed_tools choice as given on lts/1.108.x

On the line, native /v1/responses with gateway MCP tools passes any
tool_choice through to the provider, with or without drop_params, and
providers that accept a malformed allowed_tools choice answer 200. The
picks answer 400 for it without drop_params and drop it under
drop_params, so this keeps the line's behavior. The choice reaches the
provider unchanged and the gateway enforces nothing for it, while a
choice that parses still gets the picked rewrite and enforcement

* fix(tool-choice): keep an allowed_tools type with a function as a named tool choice on lts/1.108.x

On the line, a tool_choice of type allowed_tools that also carries a
function passes validation and reaches the provider as a named function
choice, so Anthropic and other providers that read function.name force
that tool and answer 200. The picks treat it as a malformed allowed_tools
choice, which answers 400 without drop_params and drops the choice with
it. This keeps the line's behavior, so such a choice is not read as an
allowed_tools choice anywhere and goes on as the named choice it was

* style(tool-choice): format called_tool_names on lts/1.108.x

* fix(tool-choice): keep the caller's allowed_tools choice on agentic follow-up calls on lts/1.108.x

On main the agentic follow-up keeps the caller's allowed_tools choice
under a reserved kwarg that main lists among its loop control keys.
That list does not exist on the line, so the line's acompletion dropped
the key and a follow-up call could run a hook call the caller's choice
leaves out. acompletion now passes the key on when the caller sent it or
sent an allowed_tools choice, and leaves every other call as it was

* fix(types): widen untyped request dicts for the allowed_tools refusal on lts/1.108.x

The line types the hook loop's kwargs and optional_params as plain
dicts, so passing them to the picked refusal helpers added unknown
argument errors that main does not have. They are now cast to
Mapping[str, object] at the call sites, and the loop settings reader
takes a Mapping

The new cast import in the agentic loop would grow the banned-API
count, so the duplicate function-level cast import in
llm_http_handler.py goes, since the module already imports cast

* fix(anthropic): keep every non-streamed reasoning item for Messages clients and read a deployment's reasoning_summary in the keep check

Backport of #49076 to lts/1.108.x.
Ported from cadfe1d1798 (cursor/chatgpt-encrypted-reasoning-messages-1723) onto the line's pass_through/adapters layout.

* fix(anthropic): keep every non-streamed reasoning item for Messages clients on the line's bridge

This line's transform_request rewrites the logging call_type to responses, so the non-streamed reply read the Messages-client check after the rewrite and kept only the last reasoning item. The bridge handler now reads it before the request transform and passes it to transform_response, as the streamed path already does.

* fix(anthropic): log only the outcome of a turn sent again, and keep every reasoning item in Messages logs on the line

A /v1/messages turn whose replayed encrypted block the backend rejects is sent
once more without it. The rejected first attempt no longer fires failure
callbacks or releases its parallel slot and budget reservation, so only the
turn sent again is logged and counted.

Success logs for a Messages client now keep every reasoning item of a
non-streamed turn, matching the reply the client got.

* test(anthropic): type the parameters of the failure-recording test loggers

Backport of 3d53f0047d1 (#49076) to lts/1.108.x.

* test(anthropic): type the success logger and use a fixed token expiry in the bridge tests

* fix(anthropic): skip the SDK num_retries retry for an attempt that is sent again

* fix(anthropic): stop SDK retries from resending a rejected block or clearing the global num_retries

A transient 429 or 500 on a /v1/messages turn that carries a replayed encrypted
block was retried by an SDK call's num_retries loop, which sent the block again
until every retry was rejected. On async calls the loop then raised the first
transient error, so the turn failed instead of being sent again without the
block. The retry loop now stops at that rejection and passes it on, so the turn
is sent again once without encrypted blocks.

A rejected first try on a sync call also cleared the process-wide
litellm.num_retries, so later calls in the process were no longer retried. That
setting now stays as configured.

* fix(anthropic): stop a cancelled SDK retry from starting another call

The resent-failure retry predicate returned true for BaseException
subclasses such as asyncio.CancelledError, so a cancelled
acompletion_with_retries or aresponses_with_retries call could start
another provider call. Retry only Exception subclasses again, as
tenacity's default did, while still skipping a resent failure.

* test(anthropic): type the retry helper parameter in the cancellation test

* test(integration): backport main's Gateway.rows, Scenario.model name and MCP ack fix to lts/1.108.x

Backports test-only changes from main so the line's integration signal stops reporting stale helpers as failures.

Gateway.database_url and Gateway.rows come from #47213 (fc27dfdc7d), and the name keyword on Scenario.model comes from #48917 (ebf84f8649). Only those hunks of tests/integration/_support/client.py are taken. The rest of #47213 gives each owned proxy its own database and Redis, which none of the line's tests need, and the workers field from a later main change is left out.

The MCP progress and cancellation test wraps its upstream in _acknowledge_notifications_after_dispatch, from #49967 (b5952f243a). The helper is already on the line.

* fix(bedrock)!: backport #47429 deployment guardrailConfig on /bedrock pass-through routes to lts/1.108.x

The router-model pass-through dropped a Bedrock deployment's guardrailConfig, so converse, converse-stream, invoke and invoke-with-response-stream reached Bedrock unguarded while /v1/chat/completions on the same deployment was blocked. The signer now sends it the way Bedrock reads it, in the body for Converse and as the X-Amzn-Bedrock-Guardrail* headers for Invoke, replacing any guardrail the caller sent

Adapted to the line, which does not have #47040. The guardrail headers are merged through merge_bedrock_invoke_headers without the request metadata header, and the unit tests drop the request metadata assertions and the identity argument that only #47040 needs

* refactor(bedrock): drop the unused converse URL helper and cover a trailing-slash converse pass-through

* test(e2e): repin the Together reasoning replay backend to MiniMax-M3.1-Flash

MiniMax-M3 reached its 2026-11-06 deprecation date in the cost map, which names MiniMax-M3.1-Flash as its successor

(cherry picked from commit 90f7ab6fe6837152b21617c8cb7dc73a541c42e9)

* fix(sdk): backport #45961 to lts/1.108.x

completion() loaded the MCP gateway handler for any request with tools,
and the handler pulls in mcp 2.x only code, so tool calls failed on
installs with mcp 1.x (google-adk 1.36.1) or no mcp at all

Cherry-picked from 783cf06f31. Only conflict was import context in
litellm/responses/main.py

(cherry picked from commit 783cf06f31e55e8f7ab84c2d7c708b0d90e68001)

* fix(router): serve a team's wildcard deployment before a proxy-wide wildcard (#48490)

Backport of #48490 to lts/1.108.x.
Cherry-picked from 76d001a7c06d5dbf93f9191b247db0ef981b6c66 (main). The line has no wildcard_routed_models helper and no get_models_by_pattern, so only wildcard_route_deployments is changed.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(videos)!: keep model_id in proxy video ids so per-model keys resolve on status/content (#44614)

Backport of #44614 to lts/1.108.x.
Cherry-picked from ba61ecdf570c91a2409560138170ff9ab1fe7ad7 (main). The line has no splits_stream_timeout on _update_kwargs_with_deployment, so only the _video_call_pin wrapping is added around deployment selection. The line has no litellm/llms/base_llm/videos/async_task_utils.py, so its _id_safe_name dedupe is applied to the dashscope video transformation that holds the same helper on this line.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* chore: bump litellm 1.108.3 -> 1.108.4

litellm 1.108.3 already shipped, so the next release off this line is 1.108.4

* fix(proxy): check s3 URIs inside encoded file ids and on queued chat completions

The s3 media check now decodes model-embedded and unified file ids, since
completion() turns them back into the raw s3 URI they carry. The
/queue/chat/completions endpoint skips common request processing, so it now
runs the same check. The media walk goes level by level instead of
recursing, which the recursive_detector code-quality step requires.

(cherry picked from commit 5b45c632c57fd46b9dda537b694edcda2e0f41d3)

* fix(anthropic-messages): apply additional_drop_params before the unsupported param checks

* fix(proxy): let a key send managed file ids it may read and refuse s3 sources hidden in model_file_id_mapping

The s3 media gate refused every LiteLLM managed file id whose upload sits under the
managed prefix, even when the key's own user or team created it. It now asks the
managed files hook which unified ids the key may read and skips only the objects
those ids embed. A forged or unowned id, or a proxy without the hook, still gets a 403.

The gate also reads the provider file ids in a client-supplied model_file_id_mapping,
so an alias can no longer point a non-admin request at an unlisted or managed object.

Markdown documents (.md, .markdown) now map to Bedrock's md document format, so an
s3 Markdown source without an explicit format no longer fails with an unknown media type.

On lts/1.108.x the gate still walks the body before it reads the key role, so callers that pass a
specced UserAPIKeyAuth mock keep working, and it reads self.data and general_settings directly
since the line has no raw_request_fields.

(cherry picked from commit 37f085c966dd83e84b646eb3acbdfbaef7b6b0db)

* fix(mcp): refuse a hook call the allowed_tools choice excludes on every surface

The line has no terminal-response path outside Anthropic Messages, so the check skipped /v1/responses and streamed hook loops and the excluded call ran. It now raises AgenticLoopToolChoiceError there too

* fix(mcp): scope each MCP entry to its own allowed_tools and keep the allowlist on follow-ups

A label now covers only the tools its own allowed_tools lists, so a second label on the same server no longer widens it. Responses MCP follow-ups, streamed or not, keep an allowed_tools choice in auto mode instead of dropping it. The new Responses tests fake only the upstream MCP listing, so LiteLLM's own discovery runs

* fix(agentic): answer a 400 when an allowed_tools choice excludes a hook call on /v1/responses

The line cannot end a Responses turn early, so the refusal was re-raised as a
plain error and reached clients as a retryable 500. It now answers the same 400
the chat path gives for an excluded call. The stream path still raises the
safety error its iterator catches.

* fix(mcp): match an entry's allowed_tools against the tool name the gateway lists

A server with a display name override lists the display name, and the listing
filter matches allowed_tools against it, but the label scope only checked the
original name, so no spelling worked. The scope now also accepts the listed
name and its unprefixed part, like the listing filter. Tests now cover the
whole gateway and toolset entries and a display-named tool.

* fix(proxy): keep inline tool-result video dropped and let an admitted client AWS identity skip the s3 bucket list

A tool result forwards a video to Bedrock only when it is an s3Location. An inline
base64 video is dropped with a warning, as it was before this change, since Converse
rejects video in a toolResult block

A non-admin key that sends an AWS identity its deployment admits through
configurable_clientside_auth_params (aws_role_name, aws_web_identity_token or
aws_profile_name) skips the bucket list, because Bedrock then reads the object with
that identity. The managed-prefix 403 still applies

The check now skips the body walk when no string starts with s3:// and no file_id or
model_file_id_mapping key is present, which keeps large image bodies cheap

Adapted for lts/1.108.x. The per-frame check on WS /v1/responses is not ported,
because this line has no Responses WebSocket frame guard to hook it into. The gate
keeps this line's admits_s3_bucket allowlist and its order of walking the body
before the admin role check

(cherry picked from commit 6662cb34d768bd68a7dc34ea27c363a1bd7f6578)

* feat(decisions): support Vercel AI Gateway decision models

Backport of #50642 to lts/1.108.x.
Cherry-picked from bdd017e908e2380de83b059b08c9363431227666 (mishdotdev:vercel-ai-gateway-decisions).
Adapted to the line: the line registers decisions configs in its own if-chain and lazy-import tables, and its OpenAI decisions config has no resolve_credential hook, so only resolve_api_key is overridden.

* test(decisions): cover Vercel AI Gateway dispatch through the proxy

Backport of #50642 to lts/1.108.x.
Cherry-picked from dd1057b018f8bce2408627a15ea7e7a65c2e33b1 (mishdotdev:vercel-ai-gateway-decisions).
Adapted to the line: the new test is appended to the line's own copy of the test file, whose tail differs from main's.

* feat(decisions): add Vercel AI Gateway cost map rows for Jev

Backport of #50642 to lts/1.108.x.
Cherry-picked from 3f9539201cef70aa965fc494fbdb3179b6560c1f (mishdotdev:vercel-ai-gateway-decisions).

* fix(decisions): bill Vercel AI Gateway decisions at the charge Vercel reports

Backport of #50642 to lts/1.108.x.
Cherry-picked from 7c40b75f5657ec067f9a6fe2c7c91f8662c81a78 (mishdotdev:vercel-ai-gateway-decisions).
Adapted to the line: its decisions usage is never None, so the None guards are dropped, and the resolve_credential override stays out as in the first pick.

* fix(decisions): bill Vercel gateway charges with margin and BYOK, forward providerOptions

Backport of #50642 to lts/1.108.x.
Cherry-picked from 1f50a7c91f5032cbd350ab71af204245f2c640a7 (mishdotdev:vercel-ai-gateway-decisions).
Adapted to the line: the line has no upstream_usage_cost billing path (main got it in #48953), so the reported charge still goes out as the line's response-cost header and the operator discount and margin do not apply to it there, the same as OpenRouter decisions on the line. The image check is resolved once per request beside the line's box-question check, and the tests read the billed cost the way the line bills it.

* fix(proxy): check s3 media on every Responses WebSocket frame on the LTS line

The managed Responses WebSocket handler calls litellm.aresponses once per
response.create frame, and the HTTP s3 media check only saw the first frame as a raw
JSON string. A non-admin key could send an s3 object from an unlisted bucket, or one
under LiteLLM-managed storage, to Bedrock over WS /v1/responses

The WS route now hands the handler a frame check bound to the connection's key,
general_settings, managed files hook and router. The handler runs it on the params it
is about to forward for every frame, the first one included, and a refused frame gets
an invalid_request_error frame with the 403 message while the socket keeps serving
later frames

* fix(decisions): stop forwarding caller providerOptions to Vercel and send Jev images

Backport of #50642 to lts/1.108.x.
Cherry-picked from c8122bc6a5305fd8ce0bc3c1d534581d4dd1227a (mishdotdev:vercel-ai-gateway-decisions).
Adapted to the line: decisions/call.py goes back to the line's own version, since the line never had the per-model support record main edits here, and the discount and margin test this commit touches on main is not on the line.

* fix(decisions): report provider charges on the cost header and read Vercel's cache split from the serving provider

Backport of #50642 to lts/1.108.x
Cherry-picked from ec26925103f82742866219bd73d19f88cc3de84e (mishdotdev:vercel-ai-gateway-decisions)

The Jev 1.13.0 and 1.14.0 rows record their image probes

Conflicts resolved to main's result. The call.py hunk is dropped because the line already reports provider charges on the response-cost header. The proxy test keeps only its paid call, since the line's proxy drops a zero response-cost header for every provider

* fix(proxy): let a client AWS identity skip the s3 bucket list only when Bedrock signs with it

An admitted aws_role_name, aws_web_identity_token or aws_profile_name now skips the
bucket list only when it decides the credentials get_credentials picks, on every
deployment of the model group. A web identity token without a role and a session
name does not, since get_credentials then ignores it. A profile does not when the
deployment or the environment sets a role, since the role branch runs first. In
those cases Bedrock still reads with the proxy's credentials, so the bucket list
applies

BaseAWSLLM.identity_choosing_params mirrors the branch order of get_credentials, and
both read the same AWS_* environment fallbacks through one helper

Ported to lts/1.108.x, where the model group is read with Router.get_model_list

* fix(mcp): match an entry's allowed_tools only against a server's own prefix, and a tool no server resolves only by its exact name

* fix(proxy): keep the s3 bucket list for non-admin keys that send a client AWS identity

A client AWS identity field does not prove that the caller can read the bucket. A
role or profile name picks credentials the proxy holds, and Bedrock reads the object
with them. So the bucket list now applies to every non-admin s3 media part, whatever
AWS identity fields the request sends. allow_client_side_credentials: true still
turns it off

This removes BaseAWSLLM.identity_choosing_params and the router lookup that only the
skip needed

Ported to lts/1.108.x

* fix(cost): bill transcriptions by the seconds the provider reports

Line port of the usage.seconds billing slice onto lts/1.108.x: normalized_audio_duration_seconds and _get_transcription_usage_duration from #35600 (ecb8ef5ca8), and the provider-seconds-first _transcription_duration_for_cost from #50727 (dfb1aac8b1), with their unit tests. The rest of #35600 stays on main.

* fix(transcription): treat libsndfile's unknown frame count as no duration

Backport of #50842 to lts/1.108.x.
Cherry-picked from e6a0534785 (litellm_transcription_unknown_frame_count).

* refactor(transcription): inline the unknown frame count check

Backport of #50842 to lts/1.108.x.
Cherry-picked from b6d25f2752 (litellm_transcription_unknown_frame_count).

* fix(transcription): read the frame count once to keep the type gate flat

Backport of #50842 to lts/1.108.x.
Cherry-picked from 54dcd9230f (litellm_transcription_unknown_frame_count).

* test(transcription): annotate the new passthrough test's locals as Final

Backport of #50842 to lts/1.108.x.
Cherry-picked from eb0f251b47 (litellm_transcription_unknown_frame_count).

* feat(openai)!: honor per-deployment workload identity on non-chat routes (#39966)

Backport of #39966 to lts/1.108.x.
Cherry-picked from b39eadcb8228e05b76506df78fa2723628494669 (main).

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(mcp): refuse a tool whose display name only looks like an allowed name, and let the chat follow-up answer

An MCP entry's allowed_tools now matches a tool only by its exact listed name or a spelling routing
accepts for its real name, so a display name that carries the server's own prefix no longer passes for
another tool. The chat MCP follow-up keeps an allowed_tools choice in auto mode, so the model can answer
with text after the tool ran.

* chore: bump litellm 1.108.4 -> 1.108.5

litellm 1.108.4 already shipped, so the next release off this line is 1.108.5

* fix(mcp): match a toolset label's tools by exact native name

A toolset label served any tool whose name a routing spelling of a granted name matched, so a toolset granting the literal name "server-tool" also served the real tool "tool" that only another toolset grants. It now serves a tool only when the toolset grants its exact native name, the same check tool_is_granted uses when the gateway lists tools

* feat(bedrock): search knowledge bases by image and return image hits

vector_stores.search and asearch take a query_image (base64 jpeg, png, gif or webp), and query is optional when it is sent. Bedrock sends it as an IMAGE retrievalQuery, and a caller's own retrievalQuery in extra_body still wins

Bedrock IMAGE hits now come back as image content items instead of being dropped. The media type comes from the source file mime type metadata, then the data URI label, then application/octet-stream

A request with both query and query_image, with neither, or with a malformed image gets a 400. So does query_image on a provider without image search, unless drop_params is on. The proxy accepts query_image in place of query on /v1/vector_stores/{id}/search

Spend logs redact image data when prompts are not stored. Emulated file_search skips image-only hits, RAG rerank maps its indices to the text documents it ranked, and the dashboard tester renders image hits

(cherry picked from commit 55587c70122fc0fa4369cc23886e753a91b47ee0)

* fix(vector-stores): keep image hits to image searches and reject a caller retrievalQuery

Port of the main branch change. Text searches return the same text hits as before, image hits come back only for query_image searches, a caller retrievalQuery answers 400 or drops under drop_params, a file_search tool carrying query_image searches again, and a non-string query next to an image answers 400

On this line the typed views use as_str_mapping and a local list helper, since decoded_json_object and as_object_list are not on lts/1.108.x

(cherry picked from commit 65a7206199c4c51b46084f8417bf7235d33fd378)

* fix(compresr): let the retrieve call run under an allowed_tools choice on lts/1.108.x

The line's CompresrGuardrail did not list compresr_retrieve in server_fulfilled_tool_names, so the allowed_tools exclusion check counted the model's retrieve call as excluded and the request answered 400. Main has declared it since #49227, and this adds the same attribute with a regression test

* fix(usage): restore per-user spend breakdown on the user aggregated route (#49464)

Backport of #49464 to lts/1.108.x. Cherry-picked from 639625d6791e9236cb12e72790fdf7f00fc55323 (main).

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* style: preserve spacing around the user metadata helper

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(translation): expect encrypted reasoning in message responses (#50576)

Co-authored-by: mateo <277851410+mateo-berri@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 7617e66acfe1f3f9bb2984646c7da7c2f7d9db1b)

* test(integration): decode video ids with the product decoder in the callback delivery test

Ports only the tests/integration/observability/test_callback_delivery.py hunk of #47600. Video ids on this line now carry a ;deployment_id: suffix after #50693, so splitting on video_id: kept the suffix. The shares_worker_state pytestmark from that hunk's context belongs to a change not on this line and is left out

(cherry picked from commit e78f7b4602c15a5328f6f211c4bc9f3d664e1d50)

* test(integration): let an owned proxy opt into a private database and Redis

Ports the harness part of #47213 (process.py, workers.py, the remaining client.py hunks and its unit tests) so owned_proxy and owned_proxy_process accept state=OwnedState.PRIVATE and boot on a scratch database and their own redis-server, and Scenario cleanup checks read the database the proxy writes to.

Adapted for this line. Main makes private the default and marks 189 test files with shares_worker_state to keep them on the worker's state. This line keeps the worker's state as the default, so no existing test changes behavior and only callers that pass state=OwnedState.PRIVATE go private. The isolated_gateway rewrite and the conftest marker plumbing are left out, and the unit tests cover the shared default plus the explicit private opt-in

(cherry picked from commit fc27dfdc7d9be704a1c5bffb9c954caeae9dc886)

* test(integration): run the body upload disconnect test on a private database

Ports only the tests/integration/observability/test_guardrail_effects.py hunk of #49310. The test asserts the only spend row is its own control call, so on the shared worker database it picked up rows other tests wrote

(cherry picked from commit fbd126e5182040a5ed8b97d54d41b5febc94452b)

* test(compresr): annotate the allowed_tools choice test's locals as Final

* test(integration): give each kill-burst its own prompts so cached control replies cannot stand in for late traffic (#50569)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 0d0bf8f75f63a9c76ab75d121cdd6b7f498f2607)

* fix: make scheduled key, user, and team spend resets idempotent (#50298)

Backport of #50298 to lts/1.108.x.
Cherry-picked from ac08eb566314a2dec9f73ede0bb8c687118b5608 (main).

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(proxy): add execute_raw to the PrismaBatch protocol

Prerequisite for the #50298 backport to lts/1.108.x, which queues guarded raw spend resets on the batch.
Hand-ported from 24a7bf6af728272eca2ba3277a2f3cdfa7e60863 (#48260, main).

* fix(azure): accept explicit v1 Responses bases (#48072) (#48118)

Backport of #48118 to lts/1.108.x.
Hand-ported from 96abce842b (main): the line lacks #46377's api-version resolution helpers.

* fix(azure): send no api-version on Foundry project /openai/v1 Responses bases

Backport of the main fix on branch litellm_azure_responses_project_v1_api_version to lts/1.108.x.
Cherry-picked from 2a8cdecb15 and adapted to the line's get_complete_url.

* fix(vector-stores): redact query images and keep store search params out of image checks

(cherry picked from commit 0574a8e11965c95dac58ffe037064ff43bf6846b)

* fix(mcp): backport #50717 to lts/1.108.x

Cherry-pick of e6db6206d1 with module paths moved to litellm/proxy/_experimental/mcp_server.

* fix(responses): keep unset-effort gpt-5.4/5.5 tool calls on chat completions (#50968)

Backport of #50968 to lts/1.108.x.
Cherry-picked from d47c03175bba41a39c4c3f8a947e28938708eef2 (main).

Line adaptation: the line has no bridge_reasoning_effort helper or deployment-pinned
routing mode, so the bridge-flag tests pass the effort directly and skip the mode pin.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(vertex_ai): bill gemini image edits by token usage (#51038)

Backport of #51038 to lts/1.108.x.
Cherry-picked from 53e1e9b87b36dabed967b17338948535020b7abc (main).

Line adaptation: the line has no map_vertex_image_size or the Gemini image-size tests, so only
the usage test and the token-usage response path come across.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(mcp): backport #51065 to lts/1.108.x

The connect check regression test mocked the credential reader, so a broken
stored grant still passed. It now saves the grant with the real writer into an
in-memory table and lets the connect check read and decode it.

Cherry-picked from 478d9bf5d2 on main, with module paths moved to
_experimental/mcp_server.

* fix(vector-stores): redact images nested in extra_body and keep a store's extra_body retrievalQuery out of searches

(cherry picked from commit c99fd3631b256caf20bdc5eab530226d02be0b80)

* fix(responses): read reasoning_effort from extra_body for the bridge gate

Minimal prerequisite for #50968 on lts/1.108.x: the bridge_reasoning_effort and
str_keyed_mapping helpers from 897dda7920 (#46263, main), so a reasoning_effort sent
in extra_body still bridges gpt-5.4+ function-tool calls now that an unset effort
stays on chat completions.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(vector_stores): keep a caller's image query through store and router params

A deployment's retrievalQuery no longer reaches a routed search, a caller's query fields survive a store's own extra_body, and an extra_body image stops before the provider. file_search forwards rewrite_query, both retrieval query spellings are redacted, and the cost error stops echoing the response when message logging is off

(cherry picked from commit c65634d4ade59d5c06dabacb946b77161aa79365)

* feat(azure_ai): support gpt-image edits on Azure AI Foundry

Foundry hosts gpt-image deployments on the same /openai/deployments/{deployment}/images/edits route as Azure OpenAI, but the azure_ai image-edit factory only knew MAI and FLUX, so gpt-image-2 and the gpt-image-2.5 models raised a ValueError before any request was sent

Reuse AzureImageEditConfig for the request, URL, and multipart handling, and resolve the api_base and credentials with the azure_ai helpers

Co-Authored-By: AaronHowell <111272993+AaronHowell@users.noreply.github.com>
(cherry picked from commit 4c29e1846a7de81bc986f23058c91816be2e5581)

* fix(azure_ai): default gpt-image edits to an edit-capable api-version

Foundry gpt-image edits now fall back to 2025-04-01-preview when no api_version is set, since the shared Azure default 2025-02-01-preview answers 404 on /images/edits. The config returns merged headers instead of updating the caller's dict, and the tests check the request each gpt-image model sends

(cherry picked from commit 233a0d99f12c939f1050b67324e83aeb0c42dc23)

* fix(azure_ai): ignore the Azure OpenAI api-version env for Foundry gpt-image edits

The proxy CLI always sets AZURE_API_VERSION to 2025-02-01-preview, which
Foundry answers with 404 on image edits. gpt-image edits now read only
litellm_params, AZURE_AI_API_VERSION, and litellm.api_version before the
2025-04-01-preview default, matching the other azure_ai edit configs

(cherry picked from commit c93fd388d4d34e865b426b1d53297f469734fad4)

* fix(azure_ai): route custom Foundry deployments, require a Foundry api_base, and honor caller auth for gpt-image edits

A deployment name the edit factory does not recognize now uses the gpt-image route instead of raising, since Foundry deployment names are free-form. A gpt-image edit with no Foundry api_base raises like the MAI and FLUX configs instead of borrowing AZURE_API_BASE. The shared edit handler passes the call's extra_headers to validate_environment, so a caller's api-key or Authorization header is sent alone

(cherry picked from commit 6be34701e6bc69d43659e5b9068cdd149cf5c9cf)

* fix(azure_ai): keep the shared edit handler unchanged and send caller auth headers like azure_ai chat

(cherry picked from commit 31348e4c5f90c85fbf4e981e73ccb258eea9431e)

* fix(cost): leave image search responses out of the cost error text

(cherry picked from commit b892162eb3dfc7c7d8bf24d54130ee9e794832c3)

* fix(vector_stores): accept line-wrapped base64 in query_image data

Bedrock takes inlineContent wrapped with \n or \r\n line breaks, as plain base64 writes it, so the check ignores only those before decoding and the data goes to Bedrock as sent

(cherry picked from commit c2cad843b07609f3d216a46db6150c186568d595)

* chore: bump litellm 1.108.5 -> 1.108.6

litellm 1.108.5 already shipped, so the next release off this line is 1.108.6

* fix(usage): keep spend when metadata lookups hit database failures (#50253)

* fix(usage): tolerate entity metadata database failures

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(usage): keep spend when metadata lookups hit database failures

Treat transport errors and the query engine crash on a closed connection as database
failures in the key, user and guardrail lookups of the aggregated, keys, users,
model_top_keys and cache_leakage_keys routes, and keep prisma out of module-level imports
so a proxy install without prisma still imports the usage endpoints.

* fix(usage): fall back only on database outages, on every daily activity route

Data-layer Prisma errors such as a rejected query or a missing table return 500 again, a key whose details failed to load reports key_exists null instead of false, and the non-aggregated daily activity routes keep spend when the key or entity metadata lookup hits an outage

* fix(proxy): skip the key metadata lookup when the daily rows carry no keys

* fix(usage): keep the guardrail breakdown fallback for any Prisma error

A missing guardrail usage table or column made the Usage call return 500 after the outage-only narrowing. The guardrail lookup now falls back on outages and on any Prisma error, as it did before this PR

* fix(usage): keep spend when the team, organization, customer, or agent name lookup drops

---------

Co-authored-by: mateo <277851410+mateo-berri@users.noreply.github.com>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 5d66f2d8ff55378ee01c0cb04f3193330dc09e83)

* fix(ci): install tzdata so zoneinfo tests pass on runners without legacy tz aliases (#51057)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit ebd5a15b22ba012d2f5a5ee654afc93cd51add5e)

* fix(baseten): forward reasoning_effort to Baseten Model API (#40152)

* fix(baseten): forward reasoning_effort to Baseten Model API

Baseten's Model API accepts a top-level reasoning_effort parameter and
validates it server-side (https://docs.baseten.co/inference/model-apis/reasoning),
but BasetenConfig.get_supported_openai_params did not list it, so LiteLLM
silently dropped it when drop_params=True and raised UnsupportedParamsError
otherwise.

Add reasoning_effort to the supported params so map_openai_params forwards
it verbatim, mirroring the hosted_vllm and deepseek providers. Baseten
returns a clear 400 for values outside a model's supported set and ignores
the parameter on non-reasoning models, so verbatim passthrough is safe for
the whole catalog.

[Claude_Code]

* fix(baseten): forward reasoning_effort to Baseten Model API

Baseten's Model API accepts a top-level reasoning_effort parameter and
validates it server-side (https://docs.baseten.co/inference/model-apis/reasoning),
but BasetenConfig.get_supported_openai_params did not list it, so LiteLLM
silently dropped it when drop_params=True and raised UnsupportedParamsError
otherwise.

Add reasoning_effort to the supported params so map_openai_params forwards
it verbatim, mirroring the hosted_vllm and deepseek providers. Baseten
returns a clear 400 for values outside a model's supported set and ignores
the parameter on non-reasoning models, so verbatim passthrough is safe for
the whole catalog.

---------

Co-authored-by: ryan-crabbe-berri <ryan@berri.ai>
(cherry picked from commit 13335266f59a822dcafaadf7329c6a938867c265)

* fix(baseten): list current Model APIs instead of retired 2023 deployment IDs (#46945)

* fix(baseten): list current Model APIs instead of retired 2023 deployment IDs

`baseten/*` wildcard expansion and `/v1/models` read a hardcoded set of
three 2023 deployment IDs (Falcon 7B / WizardLM / MosaicML) that no longer
exist, while the model cost map already carries current Baseten entries.

- Populate `baseten_models` from the model cost map, like fireworks_ai.
- Add `BasetenConfig.get_models()` against the Model API `/v1/models`
  endpoint and register it in `ProviderConfigManager.get_provider_model_info`,
  so `check_provider_endpoint: true` returns the live catalog.
- Remove the retired deployment IDs from `constants.py`.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* fix(baseten): mark retired Model APIs deprecated and skip them in listings

15 Baseten entries in the model cost map are no longer servable: the Model
API returns 410 "model version ... has been deprecated" (DeepSeek-V3.1
returns 400 deactivated), and none appear in `inference.baseten.co/v1/models`.

- Set `deprecation_date` on those entries (kept for spend tracking).
- Skip entries past their `deprecation_date` when building `baseten_models`,
  so `baseten/*` expansion only lists models that still serve.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(baseten): assert the custom api_base model listing on the returned models

The custom api_base test only inspected the patched client's call args, which trips the
TQ002 mock-echo gate. Serve the custom URL with respx and assert on the models that come
back instead, so a wrong host or a broken parse both fail.

* fix(baseten): drop newly retired models on cost map reload and fake discovery at the HTTP boundary

A cost map refresh only ever added to the Baseten set, so a model that gained a past
deprecation_date after boot stayed listed under baseten/* until restart. Discard it on reload.

Tests now serve the catalog with respx instead of patching our own HTTP client, the
isinstance registration test is gone since the get_valid_models test already proves
discovery end to end, and new test locals carry Final.

---------

Co-authored-by: AlexKer <AlexKer@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: ryan-crabbe-berri <ryan@berri.ai>
(cherry picked from commit 3eeee3e76118783671bd7c9dd44a192eedf917ad)

* fix(router): route decisions calls only to deployments whose provider supports decisions (#48175)

* fix(router): route decisions calls only to deployments whose provider supports decisions

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(router): account for indirect route helper coverage

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(router): pin the chat leg so the mixed-group check is deterministic

Weights pick the Bedrock leg for chat instead of relying on simple-shuffle landing on both legs. The route filter now passes the candidate list through unchanged in type, so the pre-existing selector lines lose their pyright ignores

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: joshua <joshua@berri.ai>
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 4710c3b30e5c1459dbb11a060ad733ee06f06c18)

* fix(responses): keep every MCP tool round in streaming follow-up input (#47698)

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: ryan-crabbe-berri <ryan@berri.ai>
(cherry picked from commit f1795e6d447a4e5a3660de0d2fde5e1f44f52929)

* fix(responses): skip failed spend-log turns when rebuilding a session from previous_response_id (#48647)

* fix(responses): skip failed spend-log turns when rebuilding a session from previous_response_id

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(responses): guard the failed-turn status read and annotate the regression test locals

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit df9091deb666f0d689c7df01056374569019c03e)

* fix(responses): reject or drop Responses params the chat completions bridge cannot translate (#48655)

* fix(responses): reject or drop Responses params the chat completions bridge cannot translate

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(responses): keep additional_drop_params working for Responses fields the bridge cannot translate

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* Update litellm/responses/main.py

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>

* style(responses): drop the blank line ruff format rejects after the dataclass header

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
(cherry picked from commit e32d8a4d03f62ca0ec123e0a9377f6be32653bc0)

* fix(vector_stores): drop rewrite_query false from the chat file_search tool

False asks for the default search every store already runs, and MongoDB
rejects the field outright, so forwarding it made a MongoDB chat lose the
store's context for a no-op flag. True is still forwarded.

(cherry picked from commit ee74a39a776)

* fix(responses): serialize sequence_number on every bridged streaming event (#44944)

* fix(responses): serialize sequence_number on every bridged streaming event

* test(responses): cover sequence_number on bridged streaming events

* fix(responses): read undeclared fields through dict accessors and number guardrail block continuations

* fix(responses): scope dict reads that see undeclared fields to Responses stream events

Moves the extras-aware __getitem__, get, __contains__ and items from the
shared response base onto a new base for the 37 stream event classes, so
usage, Gemini, Interactions and moderation objects keep reading __dict__
and Gemini responses keep _hidden_params out of .get

* fix(router): renumber Responses stream events only after a fallback takes over

A stream that never falls back now keeps its provider's own sequence numbers, repeats included, so a starting_after resume still matches them. After a fallback the wrapper continues above the highest number the client saw

* fix(guardrails): keep Responses stream numbers unique when LLM Shield flushes held text

The restorer's flush copied the last delta and kept its sequence_number, so a
native stream repeated a number and a bridged stream sent the flush unnumbered.
A flush now takes the done event's slot and later events move up by one, and a
stream the provider never closed numbers its flush after the last event.

Also pins the created_at in the streaming iterator test fixture instead of
reading the clock.

---------

Co-authored-by: mateo-berri <277851410+mateo-berri@users.noreply.github.com>
(cherry picked from commit 6f3251c7e31fb6fed73a786becc6c62f2df56ce7)

* fix(decisions): keep the Vercel AI Gateway key off the OpenAI credential fallback on lts/1.108.x

The line gained the Decisions resolve_credential hook in the backport of #39966 after this branch was cut, so the Vercel provider would inherit OpenAI's fallback to OPENAI_API_KEY. Take main's override from #50642, which returns the gateway key as is.

* test(e2e): remove the secret manager suite (#51241)

The secret manager lanes ran the proxy against a Vault dev container and a
Conjur container that we start ourselves, so nothing in them needed a real
third-party service. They have not run a single test since late October,
because the co-located proxy cannot boot in the lane pod, and they were
soft_fail outside the promotion gate, so they only added noise.

The AWS test in the folder was skipped on every lane, since no aws lane
ever existed.

The four coverage registry rows go with the tests, because the registry is
the e2e denominator and this behavior belongs in the integration tier if it
gets covered again. The Vault and CyberArk clients keep their unit tests.

(cherry picked from commit 587902becf7d48d843befca9d7ea359a216e39d7)

* fix(proxy): stop request body fields from conflicting with admin-set deployment fields

Six fields that also configure Azure sign-in on a deployment (tenant_id, client_id, client_secret, azure_username, azure_password, azure_scope) could be set in a request body, where they conflicted with the values an admin set on the deployment

They are now refused at the body root, in extra_body and in litellm_embedding_config unless an admin opted in with allow_client_side_credentials or configurable_clientside_auth_params. Credential fields and user_config deployments also refuse values in the os.environ/ and oidc/ format, which only admin config uses. Deployment management routes are unchanged

Routes where these names are the API's own fields keep accepting them. That covers client_secret on the realtime transcription_sessions routes, client_id and client_secret on the MCP server OAuth form and on /introspect, and all six as metadata tags

Co-authored-by: Oliver Jensen <oliver@berri.ai>
(cherry picked from commit 6ba6b041e517bd424e8fb4d75aa724962abe289d)

* test(proxy): drop the two request body classifications the field ban removed

client_secret and azure_password are no longer accepted in a request body by default, so the registry's list of credential params a client may send no longer includes them

(cherry picked from commit 2b7e860982d0bdd60f7b5f3ec88d60ce871c3c78)

* test(proxy): import Mapping for the backported request body tests

* fix(proxy): check user_config search_tools for admin-format values too

The source change checks user_config search_tools entries as well as model_list and default_litellm_params. This line's walker skips search_tools, so the backport walks them for this check

* fix(vertex_ai): bill gemini image text, thinking and priority tokens at their own rates (#51017)

Backport of #51017 to lts/1.108.x.
Cherry-picked from 461b56b14b2a024ff73e59f56c01db169dfb902f (main).
Conflicts resolved: vertex_gemini_transformation.py import block (the line does not import map_vertex_image_size) and test_image_usage_transformation.py (the line lacked the ValidationError import and the rejects test, both taken from the pick).

* feat(gemini): file-backed batch jobs on /v1/batches with output download and spend tracking (#51032)

Backport of #51032 to lts/1.108.x as the prerequisite of #51279.
Cherry-picked from a0f2562088 (main).
Conflicts resolved: http_handler.py (the line has no _send_streaming_get, so only the anchor_handler_to rename was taken, including the line's own call site), tests/unit/batches/test_batch_utils.py and test_main.py (the line lacks the hosted_vllm batch tests the pick was formatted next to, so only the new gemini tests were taken). Line adaptation: join_api_base and _strip_trailing_slashes_keeping_the_scheme copied from main's url_utils (#47535) because the gemini files transformation needs them and the line never received that helper.

Line adaptation: the three join_api_base call sites validate GeminiModelInfo.get_api_base through TypeAdapter(str), because the line still annotates that helper as str | None while main returns str, so the type gate would otherwise count three new reportArgumentType errors.

* fix(gemini): attribute /gemini batchGenerateContent batches to the calling key (#51279)

Backport of #51279 to lts/1.108.x.
Cherry-picked from 801e139c35af5eca132e8761cb11be19621218c4 (main).
Conflicts resolved: gemini_passthrough_logging_handler.py import block (the line keeps its import re) and test_gemini_passthrough_logging_handler.py, where the line lacks the gemini pass-through pricing probe tests, so only the new batch tests and their asyncio and base64 imports were taken.
Line adaptation: gemini_deployment_id reads deployments through llm_router.get_model_list(model_name=...), the line's name for what main calls llm_router.registry().deployments(model_name=...).

* fix(bedrock): check OpenAI vector store filter values per operator and keep nested groups within the AWS limit

AWS in and notIn take only a non-empty list of strings, so an in or nin list holding a number now goes out as orAll of equals or andAll of notEquals, and a one-item list as a single equals or notEquals

Each OpenAI filter now refuses keys it does not define and checks its value by operator: eq and ne take a scalar, gt, gte, lt and lte take a number, in and nin take a non-empty list. An empty filters object is invalid too. Each of these answers 400 before any AWS call, or is dropped under drop_params, where before it reached AWS and failed there or, for a stray key, was silently ignored

AWS rejects a RetrievalFilter nested more than 2 levels deep, so a group whose member is the same kind of group, written by the caller or made from a numeric in or nin, now takes that member's items. A mix of and and or nested deeper than AWS allows still fails at AWS

_aws_group_members joins the recursion detector's ignore list, since it walks only a validated filter that pydantic-core stops at 255 levels

Backport to lts/1.108.x.
Cherry-picked from b15ac0fe6b and 2232dba0db (litellm_bedrock_vector_store_openai_filters), whose main PR follows as the forward-port.

* fix(azure_ai): send reasoning_effort to Foundry Kimi K3 and keep its reasoning_content

Foundry models whose loaded catalog row declares reasoning_effort_levels now take reasoning_effort as a level string, rounded up to the nearest declared level, and an effort object is unwrapped to its level. Fireworks-hosted FW- models keep reasoning_content in replayed history, so Kimi K3 can read back what it decided in its earlier thinking. The gate reads the catalog as loaded, so levels a router copies onto the shared row for one deployment do not open reasoning_effort for an undeclared sibling

* fix(responses): preserve mixed reasoning and answer deltas on lts

Partial backport of #46754 to lts/1.108.x. Source merge commit a8113b0dd721804c752a6f1952367fb642205224. Preserve the reasoning/answer split only, excluding the unrelated Anthropic compaction changes.

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(proxy): look up managed file ids only when they can change the s3 refusal

(cherry picked from commit 0043e3020f5258d6542cad2031f70b2928b89101)

* fix(bedrock): check every file id field, skip MCP tool calls, accept registered S3 media types

(cherry picked from commit 2b13898be4959f51255d7a40978cc6515a522a8a)

* fix(proxy): refuse unlisted s3 media on the rag query and adapter routes

(cherry picked from commit 1d85ba2c1de440543a38b1ca58f0636d8c1bb631)

* style(proxy): format the merged collections.abc import

(cherry picked from commit 91bb8946180b52a708944a7c939e337704834d0e)

* fix(proxy): walk tuples when checking s3 media and skip plain number lists

(cherry picked from commit 5d8f25696341df2acf559ada53ef66ff53dd448d)

* fix(proxy): skip numbers when walking a request body for s3 media

A body with large token-id lists and any s3:// string or file_id key made
the full walk build a node per number, taking seconds per request. The walk
and its prefilter now skip int, float, bool and None values.

(cherry picked from commit 57e73a8f7de294abbc90bef55bdd58acb30f24a6)

* test(proxy): check the s3 refusal through the real request setup

(cherry picked from commit 03624164af4ba7dc35112041a201775436ddd4a6)

* test(proxy): exercise real setup for allowed s3 media

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 5f11068f76d77e05519fcc90a7087a2d9ef7fe95)

* fix(proxy): preserve lts allowlist contract after backport

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(responses): preserve explicit media formats on lts

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(model-armor): fail closed on remote s3 documents

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit f9ad9f8aad6e9df611d8b4f470aeacee7ac0ff85)

* chore: bump litellm 1.108.6 -> 1.108.7

litellm 1.108.6 already shipped, so the next release off this line is 1.108.7

* feat(azure-ai): support Entra ID auth for Microsoft-Decision-1 on /v1/decisions and /v1/systemone (#46539)

Backport of #46539 to lts/1.108.x.
Cherry-picked from caad4d62045e76c1a8428ab8f316d351ca9a0a7e (main).

* refactor(azure): expose the api_base resolver and the cached Entra token provider

Prerequisite for the backport of #48529 to lts/1.108.x.
Hand-ported from the litellm/llms/azure/common_utils.py hunks of 9cf09c18fe (#46377, BaseAzureLLM.resolve_azure_api_base) and c0d88b46c9 (#47348, cached_azure_ad_token_refresh_provider) on main. The rest of those two commits is not picked.

* fix(azure): add keyless Decisions authentication (#48386) (#48529)

Backport of #48529 to lts/1.108.x.
Cherry-picked from e5757934fd7e1e37ecf566cd712ea66313315ccf (main).

* fix(files): match every spelling of a provider file id in the ownership check

enforce_provider_file_access matched the stored provider file id by exact string, and a Gemini output file
can be addressed as files/<id>, files%2F<id>, <id>/ or its full URL, all of which the Gemini file transformation
sends to the same file. Those spellings found no ownership row and fell through the no-row pass-through path.

canonical_provider_file_id collapses the spellings to the bare id; the ownership check looks up both the
spelling the caller sent and the canonical one, and store_batch_output_file_ownership stores the canonical id.

(cherry picked from commit 85e6a98866910c98d699bbbaa9b0c3af677c2719)
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(files): unwrap model-encoded ids and index canonical provider ids in ownership rows

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 97c9152552a80695cedd8eb72544e2b4ddebe640)

* test(files): assert the ownership lookup outcome instead of its query shape

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 07abf10d3ef4fbd4f79ad4c69802f30d5646acb5)

* fix(files): map provider ids back to their unified file by canonical spelling

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 214e17884a61f51ffa8f307bf94e75db2bd4c834)

* chore(files): record the bound on the ownership lookup's in filter

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit d2a5f0799444c7e05295452b5efaed0e1c945318)

* fix(files): reduce any scheme or case wrapping files/<id> the way gemini does before the ownership lookup

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit e2dad6c914d337471ef9d8b6c08db72502b5f16b)

* test(files): assert the provider id lookup covers the requested ids instead of its exact list

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* fix(files): bind the reverse lookup match with a walrus instead of a Final inside the loop

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit 32dabac9f8537bc431fb99ef95a11f79a64f8370)

* fix(files): keep non-Gemini storage URLs opaque so an upload name cannot index another key's provider id

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit c9c9d1024816573500b2fda53d4f025e3ad8adaa)

* test(files): judge the provider id resolver by the mapping it returns only

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
(cherry picked from commit b145f34c0b1bed76607aa7c7d6614bcd870b3f22)

* fix(mcp): treat the mcp_all scope as a wildcard any grant covers (#51578)

Datadog answers a request for mcp_all with its granular scopes, so the connect
check never found mcp_all and users looped back to Connect. Reconnecting also
re-asked every granular scope from the old grant, which overflowed the sign-in
cookie. Any non-empty grant now covers mcp_all, and a request for mcp_all does
not re-as…
rogerrum pushed a commit to rogerrum/k8s-gitops that referenced this pull request Nov 26, 2026
…11.0 ) (#3856)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/berriai/litellm](https://images.chainguard.dev/directory/image/wolfi-base/overview) ([source](https://github.com/BerriAI/litellm)) | minor | `1.110.3` → `1.111.0` |

---

> ⚠️ **Warning**
>
> Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/3566) for more information.

---

### Release Notes

<details>
<summary>BerriAI/litellm (ghcr.io/berriai/litellm)</summary>

### [`v1.111.0`](https://github.com/BerriAI/litellm/releases/tag/v1.111.0)

[Compare Source](https://github.com/BerriAI/litellm/compare/v1.110.4...v1.111.0)

#### Verify Docker Image Signature

```bash
cosign verify \
  --certificate-identity https://github.com/BerriAI/project-releaser/.github/workflows/release.yml@refs/heads/main \
  --certificate-oidc-issuer https://token.actions.githubusercontent.com \
  ghcr.io/berriai/litellm:v1.111.0
```

#### What's Changed

- test(integration): follow cached prepared statements in the held statement relay by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50651](https://github.com/BerriAI/litellm/pull/50651)
- feat(proxy): add OpenSearch index pass-through with per-key read/write grants by [@&#8203;quietjules](https://github.com/quietjules) in [#&#8203;50573](https://github.com/BerriAI/litellm/pull/50573)
- test(e2e): repin the Together reasoning replay backend to MiniMax-M3.1-Flash by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;50601](https://github.com/BerriAI/litellm/pull/50601)
- fix(proxy): build plugin session claims from FIPS provider services in fips_mode by [@&#8203;yucheng-berri](https://github.com/yucheng-berri) in [#&#8203;50544](https://github.com/BerriAI/litellm/pull/50544)
- feat(anthropic): add claude-fable-5-2 and its Claude Platform on AWS mirror by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50715](https://github.com/BerriAI/litellm/pull/50715)
- feat(cost-map): rolling registry update (Anthropic and Bedrock Fable 5.2, Azure realtime cache, Vertex, Friendli) by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50707](https://github.com/BerriAI/litellm/pull/50707)
- fix(proxy): show committed spend in the remaining budget gauges by [@&#8203;zoveki](https://github.com/zoveki) in [#&#8203;49199](https://github.com/BerriAI/litellm/pull/49199)
- feat(azure): add azure_ai/claude-fable-5-2 and claude-fable-5-2-fast from the Foundry Claude page by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50723](https://github.com/BerriAI/litellm/pull/50723)
- build(ui): fail lint on hardcoded English in dashboard JSX by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;50593](https://github.com/BerriAI/litellm/pull/50593)
- fix(prompt_templates): keep moved private helpers importable from common_utils by [@&#8203;zoveki](https://github.com/zoveki) in [#&#8203;50721](https://github.com/BerriAI/litellm/pull/50721)
- perf(router): look up host step answers by id instead of scanning every candidate by [@&#8203;narmstrong-berri](https://github.com/narmstrong-berri) in [#&#8203;50704](https://github.com/BerriAI/litellm/pull/50704)
- feat(cost-map): add Claude Fable 5.2 on Vertex AI and repoint claude-fable-latest by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;50713](https://github.com/BerriAI/litellm/pull/50713)
- test(integration): cover claude-fable-5-2 capability flags and prompt-cache pricing on the scripted Anthropic upstream by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;50722](https://github.com/BerriAI/litellm/pull/50722)
- fix(cost)!: bill transcriptions by the seconds the provider reports by [@&#8203;ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#&#8203;50727](https://github.com/BerriAI/litellm/pull/50727)
- fix(logging): bill a refused response the router falls back from by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;50735](https://github.com/BerriAI/litellm/pull/50735)
- fix(audio): measure duration for PathLike multipart tuple contents by [@&#8203;raunakpandey1](https://github.com/raunakpandey1) in [#&#8203;49806](https://github.com/BerriAI/litellm/pull/49806)
- feat(auth): grant access groups through principal attribute rules by [@&#8203;krrish-berri-2](https://github.com/krrish-berri-2) in [#&#8203;50455](https://github.com/BerriAI/litellm/pull/50455)
- fix(minimax): forward reasoning_effort instead of dropping it by [@&#8203;jeevan1098](https://github.com/jeevan1098) in [#&#8203;49583](https://github.com/BerriAI/litellm/pull/49583)
- fix(ollama_chat): give each streamed tool call its own index by [@&#8203;tedswinyar](https://github.com/tedswinyar) in [#&#8203;49183](https://github.com/BerriAI/litellm/pull/49183)
- fix(redis): accept a bare service account email for GCP Memorystore IAM by [@&#8203;yujonglee-berri](https://github.com/yujonglee-berri) in [#&#8203;50676](https://github.com/BerriAI/litellm/pull/50676)
- fix(rust): install the rustls crypto provider at the Python host boundary by [@&#8203;yujonglee-berri](https://github.com/yujonglee-berri) in [#&#8203;50502](https://github.com/BerriAI/litellm/pull/50502)
- feat(cost-map): add GovCloud regional rows for Bedrock Claude Fable 5.2 and Mythos 5.2 by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50746](https://github.com/BerriAI/litellm/pull/50746)
- fix(bedrock): answer 400, not 500, for malformed count-tokens requests by [@&#8203;paveln83](https://github.com/paveln83) in [#&#8203;50708](https://github.com/BerriAI/litellm/pull/50708)
- feat(router): let deployments declare a shared encrypted content boundary by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;50750](https://github.com/BerriAI/litellm/pull/50750)
- test(integration): cover claude-fable-5-2 capability flags and prompt-cache pricing on Vertex AI and Bedrock Converse by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;50742](https://github.com/BerriAI/litellm/pull/50742)
- fix(proxy): fail-closed budget enforcement returns 403 naming /team/member_add for a team user with no membership row by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;50603](https://github.com/BerriAI/litellm/pull/50603)
- fix(complexity_router): keep Claude Code subagent and side-request traffic off other agents' tier pins by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;50741](https://github.com/BerriAI/litellm/pull/50741)
- test(audio): bill reported transcription seconds for measurable uploads by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50767](https://github.com/BerriAI/litellm/pull/50767)
- chore(cost-map): add openai gpt-6-cyber long context prices from the pricing page by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50770](https://github.com/BerriAI/litellm/pull/50770)
- feat(proxy): let a key's logging entry reference a proxy credential by [@&#8203;jesus-berri](https://github.com/jesus-berri) in [#&#8203;50572](https://github.com/BerriAI/litellm/pull/50572)
- fix(messages): let proxy /v1/messages requests run on the rust path by [@&#8203;narmstrong-berri](https://github.com/narmstrong-berri) in [#&#8203;50335](https://github.com/BerriAI/litellm/pull/50335)
- fix(messages): log native messages success once, after the proxy releases it by [@&#8203;narmstrong-berri](https://github.com/narmstrong-berri) in [#&#8203;50420](https://github.com/BerriAI/litellm/pull/50420)
- fix(messages): log native messages request fields like python by [@&#8203;narmstrong-berri](https://github.com/narmstrong-berri) in [#&#8203;50421](https://github.com/BerriAI/litellm/pull/50421)
- fix(messages): pass non-message bodies through and refuse non-string headers as bad requests by [@&#8203;narmstrong-berri](https://github.com/narmstrong-berri) in [#&#8203;50422](https://github.com/BerriAI/litellm/pull/50422)
- fix(rust): run native async calls through python's async wrapper steps by [@&#8203;narmstrong-berri](https://github.com/narmstrong-berri) in [#&#8203;50423](https://github.com/BerriAI/litellm/pull/50423)
- fix(messages): raise native messages failures as python's errors by [@&#8203;narmstrong-berri](https://github.com/narmstrong-berri) in [#&#8203;50424](https://github.com/BerriAI/litellm/pull/50424)
- fix(messages): bill a native stream the client abandoned like python by [@&#8203;narmstrong-berri](https://github.com/narmstrong-berri) in [#&#8203;50425](https://github.com/BerriAI/litellm/pull/50425)
- fix(messages): write the native unary cache entry after the router stamps it like python by [@&#8203;narmstrong-berri](https://github.com/narmstrong-berri) in [#&#8203;50426](https://github.com/BerriAI/litellm/pull/50426)
- test(integration): assert response ids stay scoped to their minting key by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50703](https://github.com/BerriAI/litellm/pull/50703)
- chore(cost-map): add github_copilot/claude-fable-5.2 from the Copilot models-and-pricing table by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50775](https://github.com/BerriAI/litellm/pull/50775)
- test(integration): assert team model visibility follows caller scope by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50772](https://github.com/BerriAI/litellm/pull/50772)
- fix(cost-map): price wandb DeepSeek-V4.1-Flash-1017 from the CoreWeave Forge listing by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50776](https://github.com/BerriAI/litellm/pull/50776)
- fix(proxy): write SpendLogs failure rows for config-defined pass-through endpoints by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;41831](https://github.com/BerriAI/litellm/pull/41831)
- test(integration): repair tests that merged changes left stale by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;50782](https://github.com/BerriAI/litellm/pull/50782)
- fix(router): merge default metadata under the request's instead of replacing it by [@&#8203;paveln83](https://github.com/paveln83) in [#&#8203;50700](https://github.com/BerriAI/litellm/pull/50700)
- fix(anthropic-messages): apply additional_drop_params before the unsupported param checks by [@&#8203;tavren27](https://github.com/tavren27) in [#&#8203;50753](https://github.com/BerriAI/litellm/pull/50753)
- fix(router): honor request fallbacks in the mid-stream continuation check by [@&#8203;narmstrong-berri](https://github.com/narmstrong-berri) in [#&#8203;50260](https://github.com/BerriAI/litellm/pull/50260)
- fix(router): let a retry leave a pinned deployment after a retryable failure by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;50769](https://github.com/BerriAI/litellm/pull/50769)
- test(integration): drop the empty-string n case from the Gemini long decode test by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;50796](https://github.com/BerriAI/litellm/pull/50796)
- feat(rust): add litellm-s3 crate, AwsCredentialsProvider and cost map fetch by [@&#8203;yujonglee-berri](https://github.com/yujonglee-berri) in [#&#8203;50547](https://github.com/BerriAI/litellm/pull/50547)
- refactor(model-cost): move the cost map inputs, fetch and register_model overlay into Rust by [@&#8203;yujonglee-berri](https://github.com/yujonglee-berri) in [#&#8203;50501](https://github.com/BerriAI/litellm/pull/50501)
- fix(prometheus): record litellm_overhead_latency_metric for streams, stamp plus the proxy's first-chunk work by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;49920](https://github.com/BerriAI/litellm/pull/49920)
- fix(accounting): keep delivering spend when another worker's maintenance lock is orphaned by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;50774](https://github.com/BerriAI/litellm/pull/50774)
- fix(sso): read the SSO client secret before the refresh-token DB check by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;50773](https://github.com/BerriAI/litellm/pull/50773)
- test(integration): expect the 400 for a content-less leading system on Mantle count_tokens after [#&#8203;50708](https://github.com/BerriAI/litellm/issues/50708) by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50820](https://github.com/BerriAI/litellm/pull/50820)
- fix(proxy): serve Codex its own Bedrock catalog entries for Bedrock deployments by [@&#8203;ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#&#8203;50743](https://github.com/BerriAI/litellm/pull/50743)
- feat(usage): split customer spend by the key's current team by [@&#8203;kenneth-berri](https://github.com/kenneth-berri) in [#&#8203;50764](https://github.com/BerriAI/litellm/pull/50764)
- fix(proxy): list images in the Codex catalog only for models known to read them by [@&#8203;ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#&#8203;50738](https://github.com/BerriAI/litellm/pull/50738)
- fix(hosted_vllm): omit empty tools list from chat requests by [@&#8203;krrish-berri-2](https://github.com/krrish-berri-2) in [#&#8203;50812](https://github.com/BerriAI/litellm/pull/50812)
- feat(proxy): log keys and teams still on the deprecated empty models defaults at boot by [@&#8203;paveln83](https://github.com/paveln83) in [#&#8203;50720](https://github.com/BerriAI/litellm/pull/50720)
- fix(router): count a Responses WebSocket turn's tokens before the next turn is admitted by [@&#8203;norkelbyte](https://github.com/norkelbyte) in [#&#8203;50730](https://github.com/BerriAI/litellm/pull/50730)
- chore(cost-map): add the openai gpt-image-2 shutdown date from the deprecations page by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50829](https://github.com/BerriAI/litellm/pull/50829)
- chore(cost-map): add together_ai/elorian-labs/glimpse-1.0 from the Together models API by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50830](https://github.com/BerriAI/litellm/pull/50830)
- fix(proxy)!: return managed file ids from rag ingest and use team credentials on vector store file routes by [@&#8203;tavren27](https://github.com/tavren27) in [#&#8203;50459](https://github.com/BerriAI/litellm/pull/50459)
- test(decisions): ignore Ollama model-info calls in the decoy check by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;50827](https://github.com/BerriAI/litellm/pull/50827)
- fix(complexity_router): hold the default model for a user_turn ask whose classifier failed by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;50793](https://github.com/BerriAI/litellm/pull/50793)
- test: update the spend tests that still expected the pre-ledger accounting queues by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;50814](https://github.com/BerriAI/litellm/pull/50814)
- feat(budgets): add per-model tpm and rpm limit maps to budgets and customers by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;50797](https://github.com/BerriAI/litellm/pull/50797)
- fix(ui): keep the credential action menu open when the models page re-renders by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50845](https://github.com/BerriAI/litellm/pull/50845)
- fix(transcription): stop billing a FLAC with no sample count as 576 trillion seconds by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;50842](https://github.com/BerriAI/litellm/pull/50842)
- fix: make scheduled key, user, and team spend resets idempotent by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;50298](https://github.com/BerriAI/litellm/pull/50298)
- feat(cost-map): add meta/muse-ember-1.0 with long-context rates from the Meta pricing page by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;50847](https://github.com/BerriAI/litellm/pull/50847)
- test(accounting): assert spend is delivered under another leader's maintenance lock by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50843](https://github.com/BerriAI/litellm/pull/50843)
- fix(proxy): send the whole Codex model catalog to Codex 0.166.0-alpha.1 and newer by [@&#8203;ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#&#8203;50736](https://github.com/BerriAI/litellm/pull/50736)
- fix(proxy): let the OS assign Prisma engine ports by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50850](https://github.com/BerriAI/litellm/pull/50850)
- fix(ui): keep the request log model cell to one model by [@&#8203;Bytechoreographer](https://github.com/Bytechoreographer) in [#&#8203;49619](https://github.com/BerriAI/litellm/pull/49619)
- test(integration): empty the shared client cache before the tier pin batch test by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;50854](https://github.com/BerriAI/litellm/pull/50854)
- feat(cost-map): rolling registry update (claude-mythos-5-2, Azure Mythos 5.2, Friendli GLM-5.1 date, GovCloud Fable 5.2 token counting) by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50777](https://github.com/BerriAI/litellm/pull/50777)
- fix(proxy): bill an OpenAI pass-through background response once across repeated reads by [@&#8203;tavren27](https://github.com/tavren27) in [#&#8203;50841](https://github.com/BerriAI/litellm/pull/50841)
- feat(cost-map): add gemini/gemini-4-carbon from the Gemini API pricing page by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50931](https://github.com/BerriAI/litellm/pull/50931)
- fix(redis): free each request's Redis batch scope once the request ends by [@&#8203;emerzon](https://github.com/emerzon) in [#&#8203;50751](https://github.com/BerriAI/litellm/pull/50751)
- fix(openai): download PDF URLs off the event loop and transform async chat messages once by [@&#8203;norkelbyte](https://github.com/norkelbyte) in [#&#8203;49176](https://github.com/BerriAI/litellm/pull/49176)
- feat(cost-map): add vertex_ai/gemini-4-carbon and gemini-4-carbon-cyber-permissive from the Vertex pricing page by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50942](https://github.com/BerriAI/litellm/pull/50942)
- refactor: clean up fresh tech debt in stream cost flag, masked httpx error and encrypted reasoning helpers by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;50617](https://github.com/BerriAI/litellm/pull/50617)
- fix(proxy): open the Logs drawer by request_id without scanning for litellm_call_id by [@&#8203;tavren27](https://github.com/tavren27) in [#&#8203;50789](https://github.com/BerriAI/litellm/pull/50789)
- fix(cost-map): give the Gemini 4 Carbon rows the shared Gemini 3 search free tier by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;50951](https://github.com/BerriAI/litellm/pull/50951)
- perf(streaming): reuse the upstream choice for plain litellm HTTP-handler stream chunks by [@&#8203;quietjules](https://github.com/quietjules) in [#&#8203;50786](https://github.com/BerriAI/litellm/pull/50786)
- fix(responses): replay Claude tool search on follow-up turns by [@&#8203;zoveki](https://github.com/zoveki) in [#&#8203;50821](https://github.com/BerriAI/litellm/pull/50821)
- feat(rate-limit): enforce per-customer per-model tpm and rpm limits in the v3 limiter by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;50857](https://github.com/BerriAI/litellm/pull/50857)
- test(cost): sync vertex 3.1 pro price fields and bedrock converse usage shapes by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50956](https://github.com/BerriAI/litellm/pull/50956)
- fix(decisions): keep box questions on a deployment when a same-model sibling turns them off by [@&#8203;tavren27](https://github.com/tavren27) in [#&#8203;50724](https://github.com/BerriAI/litellm/pull/50724)
- feat: add claude mythos 5.2 to vertex ai cost map by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;50940](https://github.com/BerriAI/litellm/pull/50940)
- fix(router): hold the registry lock across router-core writes and mirror reads by [@&#8203;narmstrong-berri](https://github.com/narmstrong-berri) in [#&#8203;50933](https://github.com/BerriAI/litellm/pull/50933)
- test(budgets): expect per-model tpm and rpm limits in budget info by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50967](https://github.com/BerriAI/litellm/pull/50967)
- feat(ui): customer portal (beta) surfacing the existing customer endpoints and customer usage by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;50807](https://github.com/BerriAI/litellm/pull/50807)
- feat(customers): reject unknown fields on /customer/new and /customer/update instead of dropping them by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;50965](https://github.com/BerriAI/litellm/pull/50965)
- fix(proxy): send a prompt-only call_endpoint token count to every provider count API by [@&#8203;paveln83](https://github.com/paveln83) in [#&#8203;50783](https://github.com/BerriAI/litellm/pull/50783)
- test(integration): cap the OAuth metadata lookup in the mixed capabilities subscription case by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;50867](https://github.com/BerriAI/litellm/pull/50867)
- fix(mcp): accept comma-separated vendor scope grants on the connect check by [@&#8203;shrey-berri](https://github.com/shrey-berri) in [#&#8203;50717](https://github.com/BerriAI/litellm/pull/50717)
- fix(cost-map): give the Gemini 4 Argon rows the shared Gemini 3 search free tier by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;50959](https://github.com/BerriAI/litellm/pull/50959)
- test(http2): drain client traffic after sending GOAWAY by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50972](https://github.com/BerriAI/litellm/pull/50972)
- fix(responses): keep unset-effort gpt-5.4/5.5 tool calls on chat completions by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50968](https://github.com/BerriAI/litellm/pull/50968)
- fix(cost-map): mark the azure_ai Claude rows that bill web search as supporting it by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;50960](https://github.com/BerriAI/litellm/pull/50960)
- test(integration): recognize the model list's lock in the held write helper by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;50974](https://github.com/BerriAI/litellm/pull/50974)
- test(anthropic): scope structured output captures to inference routes by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50983](https://github.com/BerriAI/litellm/pull/50983)
- feat(proxy): let teams use their own allowed S3 buckets for batch files by [@&#8203;mrinal-berri](https://github.com/mrinal-berri) in [#&#8203;50571](https://github.com/BerriAI/litellm/pull/50571)
- fix(router): let an explicit routing tag outrank the encrypted content pin by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;50975](https://github.com/BerriAI/litellm/pull/50975)
- feat(cost): bill batch cached image input tokens for OpenAI image models by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;50997](https://github.com/BerriAI/litellm/pull/50997)
- fix: audit registry metadata for Together, Mistral, Fireworks, Azure AI and Copilot by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51003](https://github.com/BerriAI/litellm/pull/51003)
- fix(cost-map): sync together_ai together/Tev1-4B-experimental input price with /v1/models by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51013](https://github.com/BerriAI/litellm/pull/51013)
- chore(cost-map): add github_copilot/gemini-4-carbon from the Copilot changelog launch post by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51012](https://github.com/BerriAI/litellm/pull/51012)
- fix(proxy)!: reject client-supplied Vertex location and project unless the admin opts in by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;47028](https://github.com/BerriAI/litellm/pull/47028)
- fix(router): sync responses() applies the Router's num_retries and fallbacks by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;51011](https://github.com/BerriAI/litellm/pull/51011)
- feat(spend): report guardrail spend separately in daily activity by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;51010](https://github.com/BerriAI/litellm/pull/51010)
- fix(tool_choice): accept the Responses API's flat allowed_tools layout on chat completions by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;50467](https://github.com/BerriAI/litellm/pull/50467)
- test(integration): keep owned test peers off ephemeral ports by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51019](https://github.com/BerriAI/litellm/pull/51019)
- fix(bedrock): forward x-pass- headers on the /bedrock/model pass-through routes by [@&#8203;norkelbyte](https://github.com/norkelbyte) in [#&#8203;50728](https://github.com/BerriAI/litellm/pull/50728)
- fix(proxy): send the streamed Responses fallback metadata as a typed Responses event by [@&#8203;paveln83](https://github.com/paveln83) in [#&#8203;50804](https://github.com/BerriAI/litellm/pull/50804)
- fix(proxy): recheck missing users when resolving session grants by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51030](https://github.com/BerriAI/litellm/pull/51030)
- feat(cli): connect a per-user GitHub Copilot credential from the command line by [@&#8203;ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#&#8203;50863](https://github.com/BerriAI/litellm/pull/50863)
- fix(responses): keep the namespace == name shape for deferred top-level tools by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;50602](https://github.com/BerriAI/litellm/pull/50602)
- chore(cost-map): add fal_ai image and video rows priced from the fal.ai model pages (first fal-ai sync) by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51035](https://github.com/BerriAI/litellm/pull/51035)
- fix(vertex_ai): bill gemini image edits by token usage by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51038](https://github.com/BerriAI/litellm/pull/51038)
- feat(search): add Microsoft Web IQ provider by [@&#8203;giladk1221](https://github.com/giladk1221) in [#&#8203;50883](https://github.com/BerriAI/litellm/pull/50883)
- fix(otel): serialize pydantic Message objects in langfuse_otel, weave_otel and langtrace by [@&#8203;taxfree-python](https://github.com/taxfree-python) in [#&#8203;46845](https://github.com/BerriAI/litellm/pull/46845)
- perf(spend): narrow user and team spend log reads to the owner's api_keys so the (api_key, startTime) index is used by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51026](https://github.com/BerriAI/litellm/pull/51026)
- fix(mcp): challenge a single-server listing whose credential the upstream rejected by [@&#8203;shrey-berri](https://github.com/shrey-berri) in [#&#8203;50389](https://github.com/BerriAI/litellm/pull/50389)
- fix(ci): install tzdata so zoneinfo tests pass on runners without legacy tz aliases by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;51057](https://github.com/BerriAI/litellm/pull/51057)
- fix(guardrails/rubrik): moderate text-completion prompts and forward rac_agent_id by [@&#8203;seph-barker](https://github.com/seph-barker) in [#&#8203;49912](https://github.com/BerriAI/litellm/pull/49912)
- fix(model-prices): use current Hy4 promotional rates by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;51072](https://github.com/BerriAI/litellm/pull/51072)
- fix(proxy): allow management_routes keys to call PATCH /model/{model_id}/update by [@&#8203;nurlanmnn](https://github.com/nurlanmnn) in [#&#8203;50979](https://github.com/BerriAI/litellm/pull/50979)
- fix(proxy): drop the beta label from the /v1/messages swagger tags by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;51046](https://github.com/BerriAI/litellm/pull/51046)
- fix(router): re-check and reserve per-model rate limits on fallback targets by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;50994](https://github.com/BerriAI/litellm/pull/50994)
- chore(cost-map): add 61 fal_ai image and video rows priced from the fal.ai model pages (second fal-ai sync) by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51077](https://github.com/BerriAI/litellm/pull/51077)
- feat(auto_router): report a session's whole spend and name why savings stay unestimated by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;51066](https://github.com/BerriAI/litellm/pull/51066)
- chore(pricing): sync replicate model prices from replicate.com model pages by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51067](https://github.com/BerriAI/litellm/pull/51067)
- chore(databricks): add claude-fable-5-2, date glm-5-2 retirement and fix llama-3-1-8b context from the supported-models page by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51076](https://github.com/BerriAI/litellm/pull/51076)
- refactor(rust_bridge): route every Rust-to-Python call through host modules by [@&#8203;yujonglee-berri](https://github.com/yujonglee-berri) in [#&#8203;50822](https://github.com/BerriAI/litellm/pull/50822)
- fix(spend): write a background response's settling read in-process when the spend collector is on by [@&#8203;tavren27](https://github.com/tavren27) in [#&#8203;50957](https://github.com/BerriAI/litellm/pull/50957)
- fix(proxy): judge the zero-cost budget waiver by the model a key or team alias serves by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;51058](https://github.com/BerriAI/litellm/pull/51058)
- feat(docker)!: one shipped image, one entrypoint beside the Dockerfile, one compose file by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43332](https://github.com/BerriAI/litellm/pull/43332)
- feat(anthropic): forward message threads on native /v1/messages by [@&#8203;paveln83](https://github.com/paveln83) in [#&#8203;50976](https://github.com/BerriAI/litellm/pull/50976)
- fix(router): send managed batch uploads to batch deployments when a chat deployment has a lower order by [@&#8203;mika-lt](https://github.com/mika-lt) in [#&#8203;50971](https://github.com/BerriAI/litellm/pull/50971)
- fix(rate-limit): settle a fallback's tokens on the model group that served it by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51082](https://github.com/BerriAI/litellm/pull/51082)
- fix(proxy): keep the upgrade notice off the request path and count area-labelled release notes by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51027](https://github.com/BerriAI/litellm/pull/51027)
- fix(vertex_ai): bill gemini image text, thinking and priority tokens at their own rates by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51017](https://github.com/BerriAI/litellm/pull/51017)
- test(spend): expect token billing for Vertex image edits with usage by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51109](https://github.com/BerriAI/litellm/pull/51109)
- fix(reasoning): log the GPT-5 reasoning_effort drop warning only when the provider gets no effort by [@&#8203;paveln83](https://github.com/paveln83) in [#&#8203;50995](https://github.com/BerriAI/litellm/pull/50995)
- test(mcp): read the comma grant through real credential storage by [@&#8203;shrey-berri](https://github.com/shrey-berri) in [#&#8203;51065](https://github.com/BerriAI/litellm/pull/51065)
- fix(proxy): keep a request's cache opt-in when its key has cache metadata by [@&#8203;quietjules](https://github.com/quietjules) in [#&#8203;50999](https://github.com/BerriAI/litellm/pull/50999)
- feat(replicate): add google/gemini-4-carbon from the Replicate model page by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51125](https://github.com/BerriAI/litellm/pull/51125)
- fix(mcp)!: forward the LiteLLM key when the admin configures it by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;50604](https://github.com/BerriAI/litellm/pull/50604)
- feat(azure): add azure_ai/mistral-large-4-latest from the Azure Models API, priced from Mistral's model page by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51047](https://github.com/BerriAI/litellm/pull/51047)
- ci(image-scan): build Rust with a fast ci cargo profile instead of fat-LTO release by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;51075](https://github.com/BerriAI/litellm/pull/51075)
- test(unit): deflake db metrics spans and drain timeout tests, split proxy-infra shard by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;51078](https://github.com/BerriAI/litellm/pull/51078)
- chore(cost-map): add 3 fal_ai rows priced from the fal pricing API and model page (third fal-ai sync) by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51126](https://github.com/BerriAI/litellm/pull/51126)
- fix(bedrock): govcloud eol dates from the lifecycle table, gpt-5.6 cyber govcloud mantle row and daybreak blue input limit by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51095](https://github.com/BerriAI/litellm/pull/51095)
- feat(helm): single chart with monolith mode and shared image, remove litellm-helm by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43330](https://github.com/BerriAI/litellm/pull/43330)
- feat(terraform): run every AWS and GCP workload from the one litellm image by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43358](https://github.com/BerriAI/litellm/pull/43358)
- fix(spend): keep empty-key rows in owner-scoped spend log reads by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;51127](https://github.com/BerriAI/litellm/pull/51127)
- fix(proxy): list callable ids for partial aliases over a catch-all deployment by [@&#8203;quietjules](https://github.com/quietjules) in [#&#8203;50963](https://github.com/BerriAI/litellm/pull/50963)
- test(providers): preserve unspecified Gemini image output modality by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51149](https://github.com/BerriAI/litellm/pull/51149)
- test(spend): expect token billing for Vertex image edits by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51148](https://github.com/BerriAI/litellm/pull/51148)
- fix(gemini): batch and flex tier fields the -latest alias rows were missing by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51150](https://github.com/BerriAI/litellm/pull/51150)
- fix(spend): keep free response reads and cancels off the creation spend row by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51110](https://github.com/BerriAI/litellm/pull/51110)
- fix(proxy): add tzdata to the proxy extra so a legacy TZ doesn't stop startup by [@&#8203;satwik-bankapur](https://github.com/satwik-bankapur) in [#&#8203;49914](https://github.com/BerriAI/litellm/pull/49914)
- fix(tls)!: exclude RSA key exchange and ChaCha20 from the outbound cipher list in FIPS mode by [@&#8203;yucheng-berri](https://github.com/yucheng-berri) in [#&#8203;50671](https://github.com/BerriAI/litellm/pull/50671)
- fix(vertex): drop floor-only retirement dates, veo 3.1 successor and gemini token limits from the Vertex model pages by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51180](https://github.com/BerriAI/litellm/pull/51180)
- docs(security): updated mailinglist and vdp in security.md by [@&#8203;ojensen-berri](https://github.com/ojensen-berri) in [#&#8203;51199](https://github.com/BerriAI/litellm/pull/51199)
- chore(cost-map): rolling registry PR, fal_ai rows, databricks gemini-4-carbon, deepinfra and bedrock tier prices by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51193](https://github.com/BerriAI/litellm/pull/51193)
- fix(router): preserve held tiers for OpenCode subagent results by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;51176](https://github.com/BerriAI/litellm/pull/51176)
- refactor: clean up fresh tech debt in rubrik, passthrough headers and plugin mode comments by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;51163](https://github.com/BerriAI/litellm/pull/51163)
- test(security): expect the async release check on offline mode by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51213](https://github.com/BerriAI/litellm/pull/51213)
- fix(management): keep classifier deployments serving during reloads by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51111](https://github.com/BerriAI/litellm/pull/51111)
- chore(cost-map): add 24 runwayml models and correct seedance2 and eleven_multilingual_v2 rates by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51216](https://github.com/BerriAI/litellm/pull/51216)
- fix(azure): use supported API versions for Responses requests by [@&#8203;kenneth-berri](https://github.com/kenneth-berri) in [#&#8203;51116](https://github.com/BerriAI/litellm/pull/51116)
- feat(proxy): count a rate-limit fallback in x-litellm-attempted-fallbacks and name it in x-litellm-fallback-reason by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51138](https://github.com/BerriAI/litellm/pull/51138)
- refactor(proxy): let the gunicorn server take a private listener by [@&#8203;yujonglee-berri](https://github.com/yujonglee-berri) in [#&#8203;50871](https://github.com/BerriAI/litellm/pull/50871)
- feat(proxy): supervise the opt-in Rust forwarding server by [@&#8203;yujonglee-berri](https://github.com/yujonglee-berri) in [#&#8203;49606](https://github.com/BerriAI/litellm/pull/49606)
- fix(streaming): report zero cost for explicitly free calls by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51093](https://github.com/BerriAI/litellm/pull/51093)
- feat(gemini): file-backed batch jobs on /v1/batches with output download and spend tracking by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51032](https://github.com/BerriAI/litellm/pull/51032)
- fix(router): map Gemini stream-opening errors by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;51218](https://github.com/BerriAI/litellm/pull/51218)
- fix(auth): enforce model access on Google and image URL routes by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;51226](https://github.com/BerriAI/litellm/pull/51226)
- test(integration): fix the baseline accounting and series cap flakes by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;51096](https://github.com/BerriAI/litellm/pull/51096)
- fix(proxy): let /team/delete transactions wait for a pooled connection by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;51099](https://github.com/BerriAI/litellm/pull/51099)
- fix(completion)!: answer 400 for a chat message without a role by [@&#8203;zoveki](https://github.com/zoveki) in [#&#8203;51124](https://github.com/BerriAI/litellm/pull/51124)
- fix(proxy): stream the guardrail block response when the block comes after an SSE keepalive ping by [@&#8203;paveln83](https://github.com/paveln83) in [#&#8203;51114](https://github.com/BerriAI/litellm/pull/51114)
- feat(otel): let a team or key OTel v2 destination add its own request metadata keys by [@&#8203;mrinal-berri](https://github.com/mrinal-berri) in [#&#8203;50813](https://github.com/BerriAI/litellm/pull/50813)
- refactor(typing): clear 1141 basedpyright Any errors across 182 files by [@&#8203;quietjules](https://github.com/quietjules) in [#&#8203;50711](https://github.com/BerriAI/litellm/pull/50711)
- fix(proxy): reset a deleted customer's admission spend counter so a re-created one is not refused by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;51224](https://github.com/BerriAI/litellm/pull/51224)
- fix(proxy): answer x-litellm-call-id on every token count response by [@&#8203;tavren27](https://github.com/tavren27) in [#&#8203;51037](https://github.com/BerriAI/litellm/pull/51037)
- feat(rate-limit): name the limit that rejected a request in a rate_limited_by header on the 429 by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51228](https://github.com/BerriAI/litellm/pull/51228)
- refactor(ui): remove the deprecated Learning Resources sidebar link by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;51251](https://github.com/BerriAI/litellm/pull/51251)
- feat(helm): add scheme and tlsConfig to the gateway ServiceMonitor by [@&#8203;mrinal-berri](https://github.com/mrinal-berri) in [#&#8203;50759](https://github.com/BerriAI/litellm/pull/50759)
- fix(proxy): name the deployment in stream error alerts on chat, completions, responses and messages by [@&#8203;quietjules](https://github.com/quietjules) in [#&#8203;51034](https://github.com/BerriAI/litellm/pull/51034)
- refactor(ui): remove the deprecated API Reference page by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;51246](https://github.com/BerriAI/litellm/pull/51246)
- test(e2e): remove the secret manager suite by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;51241](https://github.com/BerriAI/litellm/pull/51241)
- fix(bedrock): forward the compact-2026-09-04 compaction param on Invoke /v1/messages by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51223](https://github.com/BerriAI/litellm/pull/51223)
- fix(fallback): preserve concurrent writes and serve saved configuration by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;51245](https://github.com/BerriAI/litellm/pull/51245)
- chore: remove dead files from the repo root by [@&#8203;yassin-berriai](https://github.com/yassin-berriai) in [#&#8203;50936](https://github.com/BerriAI/litellm/pull/50936)
- chore: remove cookbook and preserve live assets by [@&#8203;yassin-berriai](https://github.com/yassin-berriai) in [#&#8203;50944](https://github.com/BerriAI/litellm/pull/50944)
- ci: remove CircleCI by [@&#8203;yassin-berriai](https://github.com/yassin-berriai) in [#&#8203;50950](https://github.com/BerriAI/litellm/pull/50950)
- security(proxy): stop request body fields from conflicting with admin-set deployment fields by [@&#8203;shrey-berri](https://github.com/shrey-berri) in [#&#8203;51254](https://github.com/BerriAI/litellm/pull/51254)
- test(proxy): make the cancelled supervisor test deterministic by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;51258](https://github.com/BerriAI/litellm/pull/51258)
- fix(responses): keep reasoning item IDs consistent across streaming events by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;51243](https://github.com/BerriAI/litellm/pull/51243)
- feat(guardrails): write guardrail changes to the audit log by [@&#8203;mrinal-berri](https://github.com/mrinal-berri) in [#&#8203;51118](https://github.com/BerriAI/litellm/pull/51118)
- fix(llms-types): let the compact-2026-09-04 beta through on bedrock to match the headers config by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51272](https://github.com/BerriAI/litellm/pull/51272)
- feat(messages): serve anthropic messages on rust only by [@&#8203;narmstrong-berri](https://github.com/narmstrong-berri) in [#&#8203;51119](https://github.com/BerriAI/litellm/pull/51119)
- fix(health): log Test Connection spend with the mode's call type and model id by [@&#8203;kenneth-berri](https://github.com/kenneth-berri) in [#&#8203;50987](https://github.com/BerriAI/litellm/pull/50987)
- feat(bedrock): search knowledge bases by image and return image hits by [@&#8203;zoveki](https://github.com/zoveki) in [#&#8203;51063](https://github.com/BerriAI/litellm/pull/51063)
- fix(fips): hash MCP advisory-lock keys with SHA-256 in fips_mode and compute the OCI body digest as a security hash by [@&#8203;yucheng-berri](https://github.com/yucheng-berri) in [#&#8203;51165](https://github.com/BerriAI/litellm/pull/51165)
- test(proxy): await background spend counters before asserting by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;51249](https://github.com/BerriAI/litellm/pull/51249)
- chore(databricks): price claude-fable-5-2 from the proprietary pricing page by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51232](https://github.com/BerriAI/litellm/pull/51232)
- feat(azure_ai): support gpt-image edits on Azure AI Foundry by [@&#8203;Bytechoreographer](https://github.com/Bytechoreographer) in [#&#8203;49650](https://github.com/BerriAI/litellm/pull/49650)
- fix(proxy): keep a cost settings update from being undone by an in-flight config reload by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51273](https://github.com/BerriAI/litellm/pull/51273)
- chore(cost-map): source the fireworks deepseek v4 flash deprecation and name its replacement by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51285](https://github.com/BerriAI/litellm/pull/51285)
- test(guardrails): expect the content_filter finish on a blocked chat stream by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51281](https://github.com/BerriAI/litellm/pull/51281)
- fix(llms-types): drop the duplicate compact-2026-09-04 arm that fails rust-lint on main by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51280](https://github.com/BerriAI/litellm/pull/51280)
- perf(router): list a group's deployments once per registry change on the acompletion path by [@&#8203;narmstrong-berri](https://github.com/narmstrong-berri) in [#&#8203;50749](https://github.com/BerriAI/litellm/pull/50749)
- feat(guardrails): add the CollieAi guardrail integration by [@&#8203;collieai-dev](https://github.com/collieai-dev) in [#&#8203;49224](https://github.com/BerriAI/litellm/pull/49224)
- fix(anthropic_messages): bound the detached pump so it cannot outlive its stream by [@&#8203;nuernber](https://github.com/nuernber) in [#&#8203;51268](https://github.com/BerriAI/litellm/pull/51268)
- fix(auth): allow video retrieval after budget exhaustion by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;51227](https://github.com/BerriAI/litellm/pull/51227)
- fix(proxy): bill anthropic pass-through calls at the deployment's custom price by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;51267](https://github.com/BerriAI/litellm/pull/51267)
- ci(unit): split proxy-infra-root in two, isolate the child-python tests, make its file exclusions take effect by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51316](https://github.com/BerriAI/litellm/pull/51316)
- fix(gemini): attribute /gemini batchGenerateContent batches to the calling key by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51279](https://github.com/BerriAI/litellm/pull/51279)
- ci(unit): deselect test_unit_test_proxy_hooks from the q-z shard it matches, pin the dead proxy-infra-root codecov flag by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51324](https://github.com/BerriAI/litellm/pull/51324)
- test(integration): remove the openapi docs gate detached worktree test that cannot run offline by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;51300](https://github.com/BerriAI/litellm/pull/51300)
- feat(gemini): add gemini-decision-1, the Decisions API model priced at $0.10 per 1M input tokens by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51215](https://github.com/BerriAI/litellm/pull/51215)
- feat(proxy): run spend log cleanup from a DB-backed scheduled job table by [@&#8203;jesus-berri](https://github.com/jesus-berri) in [#&#8203;50131](https://github.com/BerriAI/litellm/pull/50131)
- feat(ui): add Activity tabs to resource details by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;50630](https://github.com/BerriAI/litellm/pull/50630)
- feat(alerts): add persisted alerts and status APIs by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;50658](https://github.com/BerriAI/litellm/pull/50658)
- feat(alerts): detect daily changes in recorded usage by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;50666](https://github.com/BerriAI/litellm/pull/50666)
- feat(ui): show performance alerts in the Alerts page by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;51104](https://github.com/BerriAI/litellm/pull/51104)
- feat(alerts): enable monitoring by default with a five-alert free allowance by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;51123](https://github.com/BerriAI/litellm/pull/51123)
- feat(skills): add admin-only version restore by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;51309](https://github.com/BerriAI/litellm/pull/51309)
- chore: move config and docs off the repo root by [@&#8203;yassin-berriai](https://github.com/yassin-berriai) in [#&#8203;50966](https://github.com/BerriAI/litellm/pull/50966)
- feat(gemini): support gemini-decision-1 on /v1/decisions and /v1/systemone by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;51220](https://github.com/BerriAI/litellm/pull/51220)
- fix(proxy): reject unknown guardrail names on key, user, team and project writes by [@&#8203;mrinal-berri](https://github.com/mrinal-berri) in [#&#8203;51080](https://github.com/BerriAI/litellm/pull/51080)
- fix(cost-map): drop the duplicate gemini/gemini-decision-1 entry that fails the root unit job on main by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;51341](https://github.com/BerriAI/litellm/pull/51341)
- test(providers): expect Rust routing for quiet Messages streams by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51346](https://github.com/BerriAI/litellm/pull/51346)
- test(observability): include CollieAi in guardrail scope settings by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51345](https://github.com/BerriAI/litellm/pull/51345)
- ci(integration): install the Rust gateway and fail forwarded_proxy when Rust is not in front by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;51307](https://github.com/BerriAI/litellm/pull/51307)
- chore: move deployment sources under litellm/deploy by [@&#8203;yassin-berriai](https://github.com/yassin-berriai) in [#&#8203;50981](https://github.com/BerriAI/litellm/pull/50981)
- chore: move ui and vscode-extension under litellm and delete docs by [@&#8203;yassin-berriai](https://github.com/yassin-berriai) in [#&#8203;50992](https://github.com/BerriAI/litellm/pull/50992)
- chore: move workspace packages under litellm by [@&#8203;yassin-berriai](https://github.com/yassin-berriai) in [#&#8203;51000](https://github.com/BerriAI/litellm/pull/51000)
- chore: move scripts and runtime sources under litellm by [@&#8203;yassin-berriai](https://github.com/yassin-berriai) in [#&#8203;51006](https://github.com/BerriAI/litellm/pull/51006)
- ci: fail when the repo root grows past 15 entries by [@&#8203;yassin-berriai](https://github.com/yassin-berriai) in [#&#8203;51007](https://github.com/BerriAI/litellm/pull/51007)
- fix(alerts): stop detecting traffic drops by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;51338](https://github.com/BerriAI/litellm/pull/51338)
- feat(rate-limit): team_model_limit_borrows_idle_capacity_from_other_teams lets a team's model TPM and RPM limits borrow idle capacity in the dynamic rate limiter by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51328](https://github.com/BerriAI/litellm/pull/51328)
- fix(fal_ai): give MiniMax H3 Max video endpoints their own resolution profile by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51348](https://github.com/BerriAI/litellm/pull/51348)
- fix(anthropic): close strict JSON schemas on the Messages to Responses bridge by [@&#8203;kenneth-berri](https://github.com/kenneth-berri) in [#&#8203;51337](https://github.com/BerriAI/litellm/pull/51337)
- test(providers): expect Rust routing for idle Messages streams by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51364](https://github.com/BerriAI/litellm/pull/51364)
- feat(rate-limit): team_model_limit_max_borrow_multiple caps how far a team borrows idle model capacity by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51359](https://github.com/BerriAI/litellm/pull/51359)
- fix(gemini): add batch and priority image output token prices to gemini/gemini-2.5-flash-image by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51368](https://github.com/BerriAI/litellm/pull/51368)
- ci: stop PR runs from thrashing the Actions cache and stop smoke compiling from source by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;51343](https://github.com/BerriAI/litellm/pull/51343)
- feat(dynamic_rate_limiter_v3): steer flexible teams to a permitted alternate when their preferred model is saturated by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51350](https://github.com/BerriAI/litellm/pull/51350)
- feat(dynamic_rate_limiter_v3): priority_class_share_splits_equally_among_active_teams splits a priority class share among the teams active on a model by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51366](https://github.com/BerriAI/litellm/pull/51366)
- fix(rate-limit): hold router fallbacks, nested calls, WebSocket turns and oversized prompts to a borrowing team's model share by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51367](https://github.com/BerriAI/litellm/pull/51367)
- feat(model-catalog): read output_cost_per_billable_unit in the rust registry check by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51365](https://github.com/BerriAI/litellm/pull/51365)
- chore(cost-map): rolling registry audit 2026-11-12, xAI retired image rates, Kling 4, GMI rows and -latest aliases by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51395](https://github.com/BerriAI/litellm/pull/51395)
- feat(skills): let authors edit and withdraw pending submissions by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;51312](https://github.com/BerriAI/litellm/pull/51312)
- chore(cost-map): add 7 fal_ai rows for seedream 5.5, flux virtual try-on, patina material and vidu templates (fifth fal-ai sync) by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51407](https://github.com/BerriAI/litellm/pull/51407)
- feat(replicate): add video generation, image generation and text to speech through the predictions API by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51360](https://github.com/BerriAI/litellm/pull/51360)
- feat(mcp): cache upstream tool lists with an admin-set lifetime by [@&#8203;shrey-berri](https://github.com/shrey-berri) in [#&#8203;51160](https://github.com/BerriAI/litellm/pull/51160)
- fix(auth): enforce customer budget rpm/tpm limits under JWT auth by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;51405](https://github.com/BerriAI/litellm/pull/51405)
- feat(fal_ai): add Nano Banana 2.1, bill it from fal billable units, fix google/ routing by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51410](https://github.com/BerriAI/litellm/pull/51410)
- fix(messages): name the deployment on a rust stream's transport error by [@&#8203;narmstrong-berri](https://github.com/narmstrong-berri) in [#&#8203;51358](https://github.com/BerriAI/litellm/pull/51358)
- fix(token-counter): count Anthropic server tool history by [@&#8203;kenneth-berri](https://github.com/kenneth-berri) in [#&#8203;51334](https://github.com/BerriAI/litellm/pull/51334)
- feat(ui): add daily model usage to customer pages by [@&#8203;ishaan-j-berri](https://github.com/ishaan-j-berri) in [#&#8203;51419](https://github.com/BerriAI/litellm/pull/51419)
- feat(proxy): publish opted-in pass-through endpoints on the Model Hub by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43905](https://github.com/BerriAI/litellm/pull/43905)
- feat(gemini): add gemini/gemini-4-hydrogen from the Gemini API pricing page by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51423](https://github.com/BerriAI/litellm/pull/51423)
- refactor(ui): remove standalone Model Leaderboard by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;51426](https://github.com/BerriAI/litellm/pull/51426)
- feat(alerts): add management controls and opt-in daily summaries by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;51418](https://github.com/BerriAI/litellm/pull/51418)
- fix(skills): honor dashboard user and team grants by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;51416](https://github.com/BerriAI/litellm/pull/51416)
- fix(proxy): fetch blog posts without blocking the event loop by [@&#8203;yassin-berriai](https://github.com/yassin-berriai) in [#&#8203;51369](https://github.com/BerriAI/litellm/pull/51369)
- feat(vertex_ai): add vertex_ai/gemini-4-hydrogen from the Vertex pricing page by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51432](https://github.com/BerriAI/litellm/pull/51432)
- test(providers): expect rust for anthropic messages after rust-only cutover by [@&#8203;narmstrong-berri](https://github.com/narmstrong-berri) in [#&#8203;51351](https://github.com/BerriAI/litellm/pull/51351)
- fix(spend-logs): mask token-shaped secrets in stored request and resp… by [@&#8203;krrish-berri-2](https://github.com/krrish-berri-2) in [#&#8203;48968](https://github.com/BerriAI/litellm/pull/48968)
- fix(otel): report the provider model in experimental GenAI traces by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;51430](https://github.com/BerriAI/litellm/pull/51430)
- fix(azure): strip GPT-5 routing marker from Responses deployments by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;51438](https://github.com/BerriAI/litellm/pull/51438)
- fix(messages): keep signed empty thinking blocks on rust by [@&#8203;narmstrong-berri](https://github.com/narmstrong-berri) in [#&#8203;51349](https://github.com/BerriAI/litellm/pull/51349)
- fix(messages): hand rust only the anthropic metadata user_id by [@&#8203;narmstrong-berri](https://github.com/narmstrong-berri) in [#&#8203;51355](https://github.com/BerriAI/litellm/pull/51355)
- fix(anthropic_messages): preserve first-round web search spend logs by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;51441](https://github.com/BerriAI/litellm/pull/51441)
- fix(token-counting): count mid-conversation tool changes by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;51447](https://github.com/BerriAI/litellm/pull/51447)
- test(integration): point database tests at the moved litellm/proxy-extras package by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51453](https://github.com/BerriAI/litellm/pull/51453)
- fix(otel): distinguish missing usage from prompt estimates on chat failures by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;51443](https://github.com/BerriAI/litellm/pull/51443)
- fix(model_prices): add Azure DeepSeek V4.1 Flash 1017 and two Perplexity Agent API rows by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51444](https://github.com/BerriAI/litellm/pull/51444)
- test(messages): expect rust to drop a null thinking signature on retry by [@&#8203;narmstrong-berri](https://github.com/narmstrong-berri) in [#&#8203;51461](https://github.com/BerriAI/litellm/pull/51461)
- fix(proxy): refuse blocked and over-limit keys before reading the request body by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51428](https://github.com/BerriAI/litellm/pull/51428)
- fix(ui): serve navigation payloads under the ui prefix by [@&#8203;mrinal-berri](https://github.com/mrinal-berri) in [#&#8203;50758](https://github.com/BerriAI/litellm/pull/50758)
- feat(model-catalog): read output_cost_per_video in the rust registry check by [@&#8203;kenneth-berri](https://github.com/kenneth-berri) in [#&#8203;51433](https://github.com/BerriAI/litellm/pull/51433)
- feat(access-groups): grant vector stores through access groups by [@&#8203;shrey-berri](https://github.com/shrey-berri) in [#&#8203;50290](https://github.com/BerriAI/litellm/pull/50290)
- fix(openai): point gpt-image-1-mini, gpt-image-1.5 and chatgpt-image-latest at gpt-image-2.6-sunburst as successor by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;51475](https://github.com/BerriAI/litellm/pull/51475)
- fix(ui): remove the Chargebacks page from Customer Portal by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;51474](https://github.com/BerriAI/litellm/pull/51474)
- feat(proxy): customer org, team and member hierarchy with budget templates by [@&#8203;ishaan-j-berri](https://github.com/ishaan-j-berri) in [#&#8203;51459](https://github.com/BerriAI/litellm/pull/51459)
- feat(fal_ai): bill flat per-video fal.ai models with output_cost_per_video by [@&#8203;kenneth-berri](https://github.com/kenneth-berri) in [#&#8203;51225](https://github.com/BerriAI/litellm/pull/51225)
- feat(cost-map): load LITELLM_MODEL_COST_MAP_URL from gs\:// with Google application default credentials by [@&#8203;jesus-berri](https://github.com/jesus-berri) in [#&#8203;51108](https://github.com/BerriAI/litellm/pull/51108)
- feat(dynamic_rate_limiter_v3): prometheus share, borrowed and throttle metrics per team and model by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51417](https://github.com/BerriAI/litellm/pull/51417)
- fix(dynamic_rate_limiter_v3): a borrower gets its full share back once the model saturates by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51415](https://github.com/BerriAI/litellm/pull/51415)
- fix(fal_ai): bill Luma Ray v3.2 videos at fal's 540p default resolution by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51477](https://github.com/BerriAI/litellm/pull/51477)
- feat(ui): set per-threshold budget alert recipients on virtual keys by [@&#8203;jesus-berri](https://github.com/jesus-berri) in [#&#8203;51061](https://github.com/BerriAI/litellm/pull/51061)
- fix(embeddings): unwrap extra_body for providers with their own embedding handlers by [@&#8203;kenneth-berri](https://github.com/kenneth-berri) in [#&#8203;51335](https://github.com/BerriAI/litellm/pull/51335)
- fix(bedrock): send max_tokens and priority in Cohere embedding requests by [@&#8203;kenneth-berri](https://github.com/kenneth-berri) in [#&#8203;51435](https://github.com/BerriAI/litellm/pull/51435)
- chore: bump litellm-enterprise 0.1.83 -> 0.1.84, litellm-proxy-extras 0.4.114 -> 0.4.115, litellm 1.110.0 -> 1.111.0 by [@&#8203;yucheng-berri](https://github.com/yucheng-berri) in [#&#8203;51486](https://github.com/BerriAI/litellm/pull/51486)
- chore(cost-map): point the fireworks deepseek v4 flash successor at deepseek-v4p1-flash by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;51478](https://github.com/BerriAI/litellm/pull/51478)
- fix(cost): preserve Bedrock cross-region pricing for Messages by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;51479](https:/…
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.

[Bug]: ollama_chat streaming emits index=0 for every tool call, merging parallel tool calls into malformed JSON

3 participants