Skip to content

fix(anthropic): log the safeguards classifier and compaction summary calls in the parent request's session - #53405

Merged
mateo-berri merged 12 commits into
BerriAI:mainfrom
zoveki:litellm_safeguards_classifier_parent_session
Nov 24, 2026
Merged

mateo-berri merged 12 commits into
BerriAI:mainfrom
zoveki:litellm_safeguards_classifier_parent_session

Conversation

@zoveki

@zoveki zoveki commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Handwritten 1-3 sentence description

When Claude Code runs in auto mode on a non-Claude model, the safety check and compaction summary calls now show up in the session of the request that triggered them. Before, each got its own random session, so the logs' session view left them out

Details

TLDR

Problem this solves:

  • Safeguards classifier and compaction summary rows log under a fresh, random session id
  • Session views and per-session spend leave those calls out

How it solves it:

  • Sub-calls now take the parent's session id and trace id, and join its Langfuse trace
  • Minted sessions never go upstream, and router tier pins stay the same
  • Switchyard and the adaptive router skip them as turns of the parent's session

User Flow

Before: in Claude Code auto mode on a non-Claude model, the safety check call is missing from the session

  1. The admin sets safeguards_classifier_model and points Claude Code at the proxy with --permission-mode auto
  2. The developer asks Claude Code to run ls -la, so POST /v1/messages runs the safety check
  3. GET /spend/logs/ui shows the classifier call under its own random session id
  4. GET /spend/logs/session/ui?session_id= returns 3 main-model rows and no classifier call

After: the safety check call is in the turn's session

  1. Repeat Before steps 1 and 2
  2. GET /spend/logs/ui shows the classifier call under the Claude Code session id
  3. GET /spend/logs/session/ui?session_id= returns 4 rows, including the classifier-model call

Compaction summary calls get the same change

Linear ticket

Resolves LIT-10761

Pre-Submission checklist

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

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

Delays in PR merge?

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

Screenshots / Proof of Fix

Each leg ran a 2-worker proxy with its own Postgres and Redis, real OpenAI and Gemini calls, a shared Langfuse project and Claude Code v2.1.331's TUI. Before is the merge base

Last updated: 45ced8b. QA ran on bc894cf. Changes since QA: omit mode gives a sent session only to sub-call rows, and clients can no longer send the sub-call marker. Proof remains valid because other policies skip that branch, and the omit case ran again at 45ced8b. Verification: unit tests and Rust goldens

Case Before (fdc16fd) After (bc894cf)
Claude Code turn, spend rows classifier in own session classifier in turn's session
Claude Code turn, session view 3 rows, no classifier 4 rows with classifier
Claude Code turn, Langfuse classifier in own trace classifier in parent call's trace
Compaction, spend rows 2 sub-calls in own sessions 3 rows in one session
Compaction, Langfuse each sub-call in own trace sub-calls in parent call's trace
Session only in litellm_metadata 2 sub-calls in own sessions 3 rows in one session
missing_session_id: omit classifier row has no session classifier in turn's session
request_correlation_in_logs classifier in own session classifier in caller's session
Shared setup (config, proxy, clients)

The legs ran one after the other, so each Langfuse window holds one leg. The proxy skips --reload, which ignores --num_workers, and --detailed_debug and --use_v2_migration_resolver, since each leg runs on its own new database

Env vars, with values left out, are DATABASE_URL (a fresh database per leg), REDIS_HOST and REDIS_PORT (one Redis per leg), LITELLM_MASTER_KEY, OPENAI_API_KEY, GEMINI_API_KEY, LANGFUSE_PUBLIC_KEY, LANGFUSE_SECRET_KEY, LANGFUSE_HOST, and PORT (a free port per leg)

config.yaml

model_list:
  - model_name: main-model
    litellm_params:
      model: openai/gpt-5.6
      api_key: os.environ/OPENAI_API_KEY
  - model_name: classifier-model
    litellm_params:
      model: openai/gpt-5.4-mini
      api_key: os.environ/OPENAI_API_KEY
  - model_name: main-model-chat
    litellm_params:
      model: gemini/gemini-3.8-flash
      api_key: os.environ/GEMINI_API_KEY
litellm_settings:
  success_callback: ["langfuse"]
router_settings:
  redis_host: os.environ/REDIS_HOST
  redis_port: os.environ/REDIS_PORT
general_settings:
  coordination_redis:
    host: os.environ/REDIS_HOST
    port: os.environ/REDIS_PORT
  master_key: os.environ/LITELLM_MASTER_KEY
  safeguards_classifier_model: classifier-model
  context_management_summary_model: classifier-model

Proxy, from each tree

python litellm/proxy/proxy_cli.py --config config.yaml --host 127.0.0.1 --port $PORT --num_workers 2 --timeout_worker_healthcheck 60 --telemetry False --use_prisma_db_push

Each proxy served from 2 workers, for example ps --ppid <proxy pid> on the After leg printed the resource tracker plus two multiprocessing.spawn workers

The omit case adds missing_session_id: omit under general_settings, the correlation case adds request_correlation_in_logs: true under litellm_settings, and each leg restarts after the change

Claude Code 2.1.331, in an empty project folder holding app.py and README.md

ANTHROPIC_BASE_URL=http://127.0.0.1:$PORT ANTHROPIC_AUTH_TOKEN=$LITELLM_MASTER_KEY ANTHROPIC_MODEL=main-model \
ANTHROPIC_DEFAULT_HAIKU_MODEL=main-model ANTHROPIC_DEFAULT_SONNET_MODEL=main-model ANTHROPIC_DEFAULT_OPUS_MODEL=main-model \
claude --permission-mode auto

The correlation case also sets ANTHROPIC_CUSTOM_HEADERS="x-litellm-trace-id: corr-cc-trace-base" (corr-cc-trace-head on After), which Claude Code sends on every request

The Python steps run with PROXY_BASE_URL=http://127.0.0.1:$PORT and LITELLM_MASTER_KEY set for that leg, and need pip install anthropic httpx

spend_window.py lists the spend rows in a time window through GET /spend/logs/ui

import os
import sys

import httpx

rows = httpx.get(
    f"{os.environ['PROXY_BASE_URL']}/spend/logs/ui",
    params={"start_date": sys.argv[1], "end_date": sys.argv[2]},
    headers={"Authorization": f"Bearer {os.environ['LITELLM_MASTER_KEY']}"},
    timeout=60,
).json()["data"]
for row in sorted(rows, key=lambda r: r["startTime"]):
    print("\t".join(str(row.get(k)) for k in ("startTime", "model_group", "call_type", "session_id")))

session_view.py opens one session through GET /spend/logs/session/ui

import json
import os
import sys

import httpx

body = httpx.get(
    f"{os.environ['PROXY_BASE_URL']}/spend/logs/session/ui",
    params={"session_id": sys.argv[1]},
    headers={"Authorization": f"Bearer {os.environ['LITELLM_MASTER_KEY']}"},
    timeout=60,
).json()
print(json.dumps({"total": body.get("total"), "rows": [{"model_group": r.get("model_group"), "call_type": r.get("call_type")} for r in body.get("data", [])]}))

lf_observations.py reads the LiteLLM generations Langfuse holds in a time window. Its columns are start time, type, name, observation id, the first 12 characters of the trace id, parent observation id, and Langfuse session id

import json
import os
import sys

import httpx

auth = (os.environ["LANGFUSE_PUBLIC_KEY"], os.environ["LANGFUSE_SECRET_KEY"])
host = os.environ["LANGFUSE_HOST"].rstrip("/")


def pages(cursor=None):
    params = {"fields": "core,basic", "fromStartTime": sys.argv[1], "toStartTime": sys.argv[2], "limit": 100}
    response = httpx.get(f"{host}/api/public/v2/observations", params={**params, **({"cursor": cursor} if cursor else {})}, auth=auth, timeout=60).json()
    yield from response.get("data", [])
    if response.get("meta", {}).get("cursor") and response.get("data"):
        yield from pages(response["meta"]["cursor"])


for row in sorted((r for r in pages() if r["name"].startswith("litellm-")), key=lambda r: r["startTime"]):
    print("\t".join(str(x) for x in (row["startTime"][11:23], row["type"], row["name"], row["id"], row["traceId"][:12], row.get("parentObservationId"), row.get("sessionId") or "-")))

session_headline.py lists the grouped Logs rows, one per session, through GET /spend/logs/ui with group_by_session

import os
import sys

import httpx

rows = httpx.get(
    f"{os.environ['PROXY_BASE_URL']}/spend/logs/ui",
    params={"start_date": sys.argv[1], "end_date": sys.argv[2], "group_by_session": "true"},
    headers={"Authorization": f"Bearer {os.environ['LITELLM_MASTER_KEY']}"},
    timeout=60,
).json()["data"]
for row in rows:
    print("\t".join(str(row.get(k)) for k in ("session_id", "model_group", "call_type", "session_total_count")))

sdk_compact.py sends a ~108k token history plus a tool call turn with compact_20260112 compaction, safeguards, and a Claude Code session header

import json
import os
import sys

import anthropic

session = sys.argv[1]
build_log = " ".join(
    f"Line {i}: the build log reported module_{i % 97} compiled in {i % 13} ms with no warnings." for i in range(5200)
)
client = anthropic.Anthropic(base_url=os.environ["PROXY_BASE_URL"], api_key=os.environ["LITELLM_MASTER_KEY"])
response = client.beta.messages.create(
    model="main-model-chat",
    max_tokens=256,
    betas=["compact-2026-01-12"],
    context_management={"edits": [{"type": "compact_20260112", "trigger": {"type": "input_tokens", "value": 50000}}]},
    tools=[{"name": "Bash", "input_schema": {"type": "object", "properties": {"command": {"type": "string"}}}}],
    messages=[
        {"role": "user", "content": "Here is my earlier build log:\n" + build_log},
        {"role": "assistant", "content": "Got it, the build log looks clean."},
        {"role": "user", "content": "list the files in this directory"},
    ],
    extra_body={"safeguards": [{"type": "dangerous_tool_use", "classifier_context": {"permission_mode": "auto"}}]},
    extra_headers={"x-claude-code-session-id": session},
)
body = response.model_dump()
edits = (body.get("context_management") or {}).get("applied_edits") or []
print(
    json.dumps(
        {
            "stop_reason": body["stop_reason"],
            "safeguard_results": body.get("safeguard_results"),
            "applied_edits": [{"type": e.get("type"), "summary_input_tokens": e.get("summary_input_tokens")} for e in edits],
        }
    )
)

sdk_body_session.py sends the same compaction request with the session only in litellm_metadata and no session header

import json
import os
import sys

import anthropic

session = sys.argv[1]
build_log = " ".join(
    f"Line {i}: the build log reported module_{i % 97} compiled in {i % 13} ms with no warnings." for i in range(5200)
)
client = anthropic.Anthropic(base_url=os.environ["PROXY_BASE_URL"], api_key=os.environ["LITELLM_MASTER_KEY"])
response = client.beta.messages.create(
    model="main-model-chat",
    max_tokens=256,
    betas=["compact-2026-01-12"],
    context_management={"edits": [{"type": "compact_20260112", "trigger": {"type": "input_tokens", "value": 50000}}]},
    tools=[{"name": "Bash", "input_schema": {"type": "object", "properties": {"command": {"type": "string"}}}}],
    messages=[
        {"role": "user", "content": "Here is my earlier build log:\n" + build_log},
        {"role": "assistant", "content": "Got it, the build log looks clean."},
        {"role": "user", "content": "list the files in this directory"},
    ],
    extra_body={
        "litellm_metadata": {"session_id": session},
        "safeguards": [{"type": "dangerous_tool_use", "classifier_context": {"permission_mode": "auto"}}],
    },
)
body = response.model_dump()
edits = (body.get("context_management") or {}).get("applied_edits") or []
print(
    json.dumps(
        {
            "stop_reason": body["stop_reason"],
            "safeguard_results": body.get("safeguard_results"),
            "applied_edits": [{"type": e.get("type")} for e in edits],
        }
    )
)

sdk_no_session.py sends a tool call turn with safeguards and no session at all

import json
import os

import anthropic

client = anthropic.Anthropic(base_url=os.environ["PROXY_BASE_URL"], api_key=os.environ["LITELLM_MASTER_KEY"])
response = client.messages.create(
    model="main-model-chat",
    max_tokens=256,
    tools=[{"name": "Bash", "input_schema": {"type": "object", "properties": {"command": {"type": "string"}}}}],
    messages=[{"role": "user", "content": "list the files in this directory with the Bash tool"}],
    extra_body={"safeguards": [{"type": "dangerous_tool_use", "classifier_context": {"permission_mode": "auto"}}]},
)
body = response.model_dump()
print(json.dumps({"stop_reason": body["stop_reason"], "safeguard_results": body.get("safeguard_results")}))

Before (fdc16fd)

Claude Code auto mode turn

  1. In Claude Code, type list the files in this directory using the Bash tool with ls -la, then tell me how many there are and press Enter. It runs ls -la with no prompt, so the auto mode check ran

Claude Code pane before

  1. List the turn's spend rows. The classifier row has its own session id
$ python spend_window.py "2026-11-24 04:22:42" "2026-11-24 04:23:02"
2026-11-24T04:22:47.313+00:00	main-model	anthropic_messages	9c7a3aed-34d4-4e62-8e4f-c14d65608726
2026-11-24T04:22:47.471+00:00	main-model	anthropic_messages	9c7a3aed-34d4-4e62-8e4f-c14d65608726
2026-11-24T04:22:54.921+00:00	classifier-model	acompletion	84f102c5-d53a-4a6a-9b51-3a2d2d86a23c
2026-11-24T04:22:56.404+00:00	main-model	anthropic_messages	9c7a3aed-34d4-4e62-8e4f-c14d65608726
  1. Open the turn's session. It lists only the three main-model calls
$ python session_view.py 9c7a3aed-34d4-4e62-8e4f-c14d65608726
{"total": 3, "rows": [{"model_group": "main-model", "call_type": "anthropic_messages"}, {"model_group": "main-model", "call_type": "anthropic_messages"}, {"model_group": "main-model", "call_type": "anthropic_messages"}]}
Langfuse readback of the same turn

The classifier sits alone in its own trace, outside every main call's trace

$ python lf_observations.py 2026-11-24T04:22:42Z 2026-11-24T04:23:02Z
04:22:47.313	GENERATION	litellm-anthropic_messages	f7da09efd57557df	85b27972f882	None	9c7a3aed-34d4-4e62-8e4f-c14d65608726
04:22:47.470	GENERATION	litellm-anthropic_messages	cacf227f797669df	984813529291	None	9c7a3aed-34d4-4e62-8e4f-c14d65608726
04:22:54.920	GENERATION	litellm-acompletion	4a6c9472dde62a60	84f102c5d53a	None	-
04:22:56.403	GENERATION	litellm-anthropic_messages	96dd3dbd0e0f9d5b	1cbf05e6e3c6	None	9c7a3aed-34d4-4e62-8e4f-c14d65608726
Grouped Logs rows for the same turn

The grouped Logs view shows the classifier as a session of its own

$ python session_headline.py "2026-11-24 04:22:42" "2026-11-24 04:23:02"
9c7a3aed-34d4-4e62-8e4f-c14d65608726	main-model	anthropic_messages	3
84f102c5-d53a-4a6a-9b51-3a2d2d86a23c	classifier-model	acompletion	1
Compaction + safeguards request
  1. Send a ~108k token history plus a tool call turn with a Claude Code session header
$ python sdk_compact.py sdk-compact-base-bc894c
/private/tmp/claude-501/-Users-mateo-Development-litellm/1a9301a4-530b-47f3-bea7-0fb81375b13c/scratchpad/work-975b47ac/qa/venv/lib/python3.15/site-packages/pydantic/main.py:520: UserWarning: Pydantic serializer warnings:
  PydanticSerializationUnexpectedValue(Expected `literal['clear_tool_uses_20250919']` - serialized value may not be as expected [field_name='type', input_value='compact_20260112', input_type=str])
  PydanticSerializationUnexpectedValue(Expected `BetaClearThinking20251015EditResponse` - serialized value may not be as expected [field_name='applied_edits', input_value=BetaClearToolUses20250919...mmary_output_tokens=258), input_type=BetaClearToolUses20250919EditResponse])
  return self.__pydantic_serializer__.to_python(
{"stop_reason": "tool_use", "safeguard_results": [{"type": "dangerous_tool_use", "status": {"type": "available", "tool_uses": {"call_1924726382792549189": {"type": "evaluated", "outcome": "not_flagged"}}}}], "applied_edits": [{"type": "compact_20260112", "summary_input_tokens": 108349}]}
  1. The summary call and the classifier call get their own random session ids, and the session view lists only the main call
$ python spend_window.py "2026-11-24 04:26:14" "2026-11-24 04:26:25"
2026-11-24T04:26:18.015+00:00	classifier-model	acompletion	11945408-bf04-46c4-9627-31259a43eb49
2026-11-24T04:26:20.491+00:00	main-model-chat	anthropic_messages	sdk-compact-base-bc894c
2026-11-24T04:26:22.550+00:00	classifier-model	acompletion	d98557d8-6b70-4240-a879-4a9ba1c523fe
$ python session_view.py sdk-compact-base-bc894c
{"total": 1, "rows": [{"model_group": "main-model-chat", "call_type": "anthropic_messages"}]}
  1. In Langfuse each sub-call sits in its own trace
$ python lf_observations.py 2026-11-24T04:26:14Z 2026-11-24T04:26:25Z
04:26:18.014	GENERATION	litellm-acompletion	52d513fbfbb09793	11945408bf04	None	-
04:26:20.491	GENERATION	litellm-anthropic_messages	a3b880f56880dd76	0b4dd4e6b394	None	sdk-compact-base-bc894c
04:26:22.550	GENERATION	litellm-acompletion	4a2b2ae014de4ec4	d98557d86b70	None	-
Session sent only in litellm_metadata
  1. Send the compaction request with the session only in litellm_metadata
$ python sdk_body_session.py body-session-base-bc894c
/private/tmp/claude-501/-Users-mateo-Development-litellm/1a9301a4-530b-47f3-bea7-0fb81375b13c/scratchpad/work-975b47ac/qa/venv/lib/python3.15/site-packages/pydantic/main.py:520: UserWarning: Pydantic serializer warnings:
  PydanticSerializationUnexpectedValue(Expected `literal['clear_tool_uses_20250919']` - serialized value may not be as expected [field_name='type', input_value='compact_20260112', input_type=str])
  PydanticSerializationUnexpectedValue(Expected `BetaClearThinking20251015EditResponse` - serialized value may not be as expected [field_name='applied_edits', input_value=BetaClearToolUses20250919...mmary_output_tokens=161), input_type=BetaClearToolUses20250919EditResponse])
  return self.__pydantic_serializer__.to_python(
{"stop_reason": "tool_use", "safeguard_results": [{"type": "dangerous_tool_use", "status": {"type": "available", "tool_uses": {"call_10239408949355409879": {"type": "evaluated", "outcome": "not_flagged"}}}}], "applied_edits": [{"type": "compact_20260112"}]}
  1. Both sub-calls get random session ids, and the session lists only the main call
$ python spend_window.py "2026-11-24 04:28:43" "2026-11-24 04:28:54"
2026-11-24T04:28:47.899+00:00	classifier-model	acompletion	e3dbb9b9-8314-45e7-8efe-721fbda34d1e
2026-11-24T04:28:49.749+00:00	main-model-chat	anthropic_messages	body-session-base-bc894c
2026-11-24T04:28:51.801+00:00	classifier-model	acompletion	fb2d1629-368f-4eb0-b05f-fd723adda798
$ python session_view.py body-session-base-bc894c
{"total": 1, "rows": [{"model_group": "main-model-chat", "call_type": "anthropic_messages"}]}
  1. In Langfuse each sub-call sits in its own trace
$ python lf_observations.py 2026-11-24T04:28:43Z 2026-11-24T04:28:54Z
04:28:47.898	GENERATION	litellm-acompletion	3c7c66dfe69186ee	e3dbb9b98314	None	-
04:28:49.749	GENERATION	litellm-anthropic_messages	acc13f29a6e2b572	6f9fa49c9219	None	body-session-base-bc894c
04:28:51.801	GENERATION	litellm-acompletion	2d6e893d0f67cf2d	fb2d1629368f	None	-
missing_session_id: omit
  1. With missing_session_id: omit, run the same Claude Code turn, then send a request with no session
$ python sdk_no_session.py
{"stop_reason": "tool_use", "safeguard_results": [{"type": "dangerous_tool_use", "status": {"type": "available", "tool_uses": {"call_7097054283746710744": {"type": "evaluated", "outcome": "not_flagged"}}}}]}
  1. The Claude Code classifier row (row 3) has no session
$ python spend_window.py "2026-11-24 04:35:52" "2026-11-24 04:36:27"
2026-11-24T04:35:59.657+00:00	main-model	anthropic_messages	d6bae316-cbeb-4f09-9fcf-2781a64b3b69
2026-11-24T04:35:59.678+00:00	main-model	anthropic_messages	d6bae316-cbeb-4f09-9fcf-2781a64b3b69
2026-11-24T04:36:06.450+00:00	classifier-model	acompletion	None
2026-11-24T04:36:07.987+00:00	main-model	anthropic_messages	d6bae316-cbeb-4f09-9fcf-2781a64b3b69
  1. Both rows of the request with no session have none
$ python spend_window.py "2026-11-24 04:36:27" "2026-11-24 04:36:44"
2026-11-24T04:36:36.519+00:00	main-model-chat	anthropic_messages	None
2026-11-24T04:36:39.392+00:00	classifier-model	acompletion	None
request_correlation_in_logs with an x-litellm-trace-id header
  1. With request_correlation_in_logs: true and the trace header set, run the same Claude Code turn. The main calls keep Claude Code's session, and the classifier call gets a random one
$ python spend_window.py "2026-11-24 04:42:20" "2026-11-24 04:42:39"
2026-11-24T04:42:22.665+00:00	main-model	anthropic_messages	6c8dae27-d25c-4774-a801-3890f6c9cff1
2026-11-24T04:42:22.696+00:00	main-model	anthropic_messages	6c8dae27-d25c-4774-a801-3890f6c9cff1
2026-11-24T04:42:28.767+00:00	classifier-model	acompletion	aa76f07f-8cbf-4b99-8d9a-8bf80b006fe6
2026-11-24T04:42:30.111+00:00	main-model	anthropic_messages	6c8dae27-d25c-4774-a801-3890f6c9cff1
$ python session_view.py 6c8dae27-d25c-4774-a801-3890f6c9cff1
{"total": 3, "rows": [{"model_group": "main-model", "call_type": "anthropic_messages"}, {"model_group": "main-model", "call_type": "anthropic_messages"}, {"model_group": "main-model", "call_type": "anthropic_messages"}]}
  1. In Langfuse the classifier sits alone in its own trace
$ python lf_observations.py 2026-11-24T04:42:20Z 2026-11-24T04:42:39Z
04:42:22.664	GENERATION	litellm-anthropic_messages	1fb06bf7cd0581be	e59aa7f82689	None	corr-cc-trace-base
04:42:22.696	GENERATION	litellm-anthropic_messages	7c526b14bad77e42	e59aa7f82689	None	corr-cc-trace-base
04:42:28.766	GENERATION	litellm-acompletion	8560dcdbdd449e52	aa76f07f8cbf	None	-
04:42:30.110	GENERATION	litellm-anthropic_messages	9bf24fcb89570443	e59aa7f82689	None	corr-cc-trace-base

After (bc894cf)

Claude Code auto mode turn

  1. Repeat Before step 1

Claude Code pane after

  1. List the turn's spend rows. The classifier row now has the turn's session id
$ python spend_window.py "2026-11-24 04:20:18" "2026-11-24 04:20:45"
2026-11-24T04:20:34.707+00:00	main-model	anthropic_messages	e257856a-7e6b-4bea-9037-6d6204391098
2026-11-24T04:20:34.708+00:00	main-model	anthropic_messages	e257856a-7e6b-4bea-9037-6d6204391098
2026-11-24T04:20:39.049+00:00	classifier-model	acompletion	e257856a-7e6b-4bea-9037-6d6204391098
2026-11-24T04:20:40.213+00:00	main-model	anthropic_messages	e257856a-7e6b-4bea-9037-6d6204391098
  1. Open the turn's session. It now lists the classifier call too
$ python session_view.py e257856a-7e6b-4bea-9037-6d6204391098
{"total": 4, "rows": [{"model_group": "main-model", "call_type": "anthropic_messages"}, {"model_group": "classifier-model", "call_type": "acompletion"}, {"model_group": "main-model", "call_type": "anthropic_messages"}, {"model_group": "main-model", "call_type": "anthropic_messages"}]}
Langfuse readback of the same turn

The classifier sits in the trace of the parent call whose answer held the ls -la tool use

$ python lf_observations.py 2026-11-24T04:20:18Z 2026-11-24T04:20:45Z
04:20:34.706	GENERATION	litellm-anthropic_messages	34991ad788ed558e	41eae44afc45	None	e257856a-7e6b-4bea-9037-6d6204391098
04:20:34.707	GENERATION	litellm-anthropic_messages	b58efbbb6985a3b1	8eab7af79ef5	None	e257856a-7e6b-4bea-9037-6d6204391098
04:20:39.048	GENERATION	litellm-acompletion	332995b9e9636b47	41eae44afc45	ee248f8efd52ab91	-
04:20:40.212	GENERATION	litellm-anthropic_messages	04b9d87ca66cea25	122388d4074b	None	e257856a-7e6b-4bea-9037-6d6204391098
Grouped Logs rows for the same turn

The grouped Logs view shows one row for the session

$ python session_headline.py "2026-11-24 04:20:18" "2026-11-24 04:20:45"
e257856a-7e6b-4bea-9037-6d6204391098	main-model	anthropic_messages	4
Compaction + safeguards request
  1. Send a ~108k token history plus a tool call turn with a Claude Code session header
$ python sdk_compact.py sdk-compact-head-bc894c
/private/tmp/claude-501/-Users-mateo-Development-litellm/1a9301a4-530b-47f3-bea7-0fb81375b13c/scratchpad/work-975b47ac/qa/venv/lib/python3.15/site-packages/pydantic/main.py:520: UserWarning: Pydantic serializer warnings:
  PydanticSerializationUnexpectedValue(Expected `literal['clear_tool_uses_20250919']` - serialized value may not be as expected [field_name='type', input_value='compact_20260112', input_type=str])
  PydanticSerializationUnexpectedValue(Expected `BetaClearThinking20251015EditResponse` - serialized value may not be as expected [field_name='applied_edits', input_value=BetaClearToolUses20250919...mmary_output_tokens=129), input_type=BetaClearToolUses20250919EditResponse])
  return self.__pydantic_serializer__.to_python(
{"stop_reason": "tool_use", "safeguard_results": [{"type": "dangerous_tool_use", "status": {"type": "available", "tool_uses": {"call_11236318668172306681": {"type": "evaluated", "outcome": "not_flagged"}}}}], "applied_edits": [{"type": "compact_20260112", "summary_input_tokens": 108349}]}
  1. Both sub-calls carry the request's session, and the session view lists all three calls
$ python spend_window.py "2026-11-24 04:24:53" "2026-11-24 04:25:08"
2026-11-24T04:25:00.544+00:00	classifier-model	acompletion	sdk-compact-head-bc894c
2026-11-24T04:25:02.406+00:00	main-model-chat	anthropic_messages	sdk-compact-head-bc894c
2026-11-24T04:25:05.284+00:00	classifier-model	acompletion	sdk-compact-head-bc894c
$ python session_view.py sdk-compact-head-bc894c
{"total": 3, "rows": [{"model_group": "classifier-model", "call_type": "acompletion"}, {"model_group": "main-model-chat", "call_type": "anthropic_messages"}, {"model_group": "classifier-model", "call_type": "acompletion"}]}
  1. In Langfuse both sub-calls sit in the request's trace
$ python lf_observations.py 2026-11-24T04:24:53Z 2026-11-24T04:25:08Z
04:25:00.544	GENERATION	litellm-acompletion	de0855aeb4f9ee07	514e9c1800e1	64914c23c5b44609	-
04:25:02.406	GENERATION	litellm-anthropic_messages	a2332af3b1822cfd	514e9c1800e1	None	sdk-compact-head-bc894c
04:25:05.283	GENERATION	litellm-acompletion	3ef7528c91132dbf	514e9c1800e1	164e4da8faa43526	-
Session sent only in litellm_metadata
  1. Send the compaction request with the session only in litellm_metadata
$ python sdk_body_session.py body-session-head-bc894c
/private/tmp/claude-501/-Users-mateo-Development-litellm/1a9301a4-530b-47f3-bea7-0fb81375b13c/scratchpad/work-975b47ac/qa/venv/lib/python3.15/site-packages/pydantic/main.py:520: UserWarning: Pydantic serializer warnings:
  PydanticSerializationUnexpectedValue(Expected `literal['clear_tool_uses_20250919']` - serialized value may not be as expected [field_name='type', input_value='compact_20260112', input_type=str])
  PydanticSerializationUnexpectedValue(Expected `BetaClearThinking20251015EditResponse` - serialized value may not be as expected [field_name='applied_edits', input_value=BetaClearToolUses20250919...mmary_output_tokens=233), input_type=BetaClearToolUses20250919EditResponse])
  return self.__pydantic_serializer__.to_python(
{"stop_reason": "tool_use", "safeguard_results": [{"type": "dangerous_tool_use", "status": {"type": "available", "tool_uses": {"call_9422957251450544065": {"type": "evaluated", "outcome": "not_flagged"}}}}], "applied_edits": [{"type": "compact_20260112"}]}
  1. Both sub-calls now carry that session, and the session view lists all three calls
$ python spend_window.py "2026-11-24 04:27:29" "2026-11-24 04:27:39"
2026-11-24T04:27:33.463+00:00	classifier-model	acompletion	body-session-head-bc894c
2026-11-24T04:27:35.516+00:00	main-model-chat	anthropic_messages	body-session-head-bc894c
2026-11-24T04:27:37.181+00:00	classifier-model	acompletion	body-session-head-bc894c
$ python session_view.py body-session-head-bc894c
{"total": 3, "rows": [{"model_group": "classifier-model", "call_type": "acompletion"}, {"model_group": "main-model-chat", "call_type": "anthropic_messages"}, {"model_group": "classifier-model", "call_type": "acompletion"}]}
  1. In Langfuse both sub-calls sit in the request's trace
$ python lf_observations.py 2026-11-24T04:27:29Z 2026-11-24T04:27:39Z
04:27:33.463	GENERATION	litellm-acompletion	379916417ba6dcdf	0b57e0fe7720	7203d7a4fa38bb24	-
04:27:35.515	GENERATION	litellm-anthropic_messages	c00b9e8f6fe722c5	0b57e0fe7720	None	body-session-head-bc894c
04:27:37.180	GENERATION	litellm-acompletion	4e57c02e1bd5020c	0b57e0fe7720	a380bea534122d30	-
missing_session_id: omit, ran again at 45ced8b
  1. With missing_session_id: omit on the 45ced8b proxy, run the same Claude Code turn, then send a request with no session
$ git -C ~/rigs/q975b47ac/head rev-parse --short HEAD
45ced8bb556
$ python sdk_no_session.py
{"stop_reason": "tool_use", "safeguard_results": [{"type": "dangerous_tool_use", "status": {"type": "available", "tool_uses": {"call_17738501070845776369": {"type": "evaluated", "outcome": "not_flagged"}}}}]}
  1. The Claude Code classifier row (row 3) has the turn's session
$ python spend_window.py "2026-11-24 08:44:19" "2026-11-24 08:44:34"
2026-11-24T08:44:21.953+00:00	main-model	anthropic_messages	b2f4a3fc-5915-40f8-b1cb-91db73dc00fd
2026-11-24T08:44:21.954+00:00	main-model	anthropic_messages	b2f4a3fc-5915-40f8-b1cb-91db73dc00fd
2026-11-24T08:44:23.932+00:00	classifier-model	acompletion	b2f4a3fc-5915-40f8-b1cb-91db73dc00fd
2026-11-24T08:44:25.180+00:00	main-model	anthropic_messages	b2f4a3fc-5915-40f8-b1cb-91db73dc00fd
  1. Both rows of the request with no session still have none
$ python spend_window.py "2026-11-24 08:44:34" "2026-11-24 08:44:57"
2026-11-24T08:44:37.843+00:00	main-model-chat	anthropic_messages	None
2026-11-24T08:44:40.831+00:00	classifier-model	acompletion	None
  1. A client that sends the sub-call marker itself on generateContent keeps no session, the same as base
$ curl -s -o /dev/null -w "%{http_code}\n" "$PROXY_BASE_URL/v1beta/models/main-model-chat:generateContent" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H "Content-Type: application/json" -H "baggage: session.id=r5-forged-metadata" -d "{\"contents\":[{\"role\":\"user\",\"parts\":[{\"text\":\"Say hi.\"}]}],\"metadata\":{\"litellm_session_id_inherited\":true}}"
200
$ curl -s -o /dev/null -w "%{http_code}\n" "$PROXY_BASE_URL/v1beta/models/main-model-chat:generateContent" -H "Authorization: Bearer $LITELLM_MASTER_KEY" -H "Content-Type: application/json" -H "baggage: session.id=r5-forged-litellm-metadata" -d "{\"contents\":[{\"role\":\"user\",\"parts\":[{\"text\":\"Say hi.\"}]}],\"litellm_metadata\":{\"litellm_session_id_inherited\":true}}"
200
$ python spend_window.py "2026-11-24 08:44:57" "2026-11-24 08:45:18"
2026-11-24T08:44:57.931+00:00	main-model-chat	agenerate_content	None
2026-11-24T08:45:00.616+00:00	main-model-chat	agenerate_content	None
request_correlation_in_logs with an x-litellm-trace-id header
  1. With the same setting and header, run the same Claude Code turn. The classifier call now keeps Claude Code's session too
$ python spend_window.py "2026-11-24 04:40:57" "2026-11-24 04:41:11"
2026-11-24T04:40:59.676+00:00	main-model	anthropic_messages	3203bb38-1c9f-471c-b2ae-f6f643de2b3b
2026-11-24T04:40:59.698+00:00	main-model	anthropic_messages	3203bb38-1c9f-471c-b2ae-f6f643de2b3b
2026-11-24T04:41:01.567+00:00	classifier-model	acompletion	3203bb38-1c9f-471c-b2ae-f6f643de2b3b
2026-11-24T04:41:02.973+00:00	main-model	anthropic_messages	3203bb38-1c9f-471c-b2ae-f6f643de2b3b
$ python session_view.py 3203bb38-1c9f-471c-b2ae-f6f643de2b3b
{"total": 4, "rows": [{"model_group": "main-model", "call_type": "anthropic_messages"}, {"model_group": "classifier-model", "call_type": "acompletion"}, {"model_group": "main-model", "call_type": "anthropic_messages"}, {"model_group": "main-model", "call_type": "anthropic_messages"}]}
  1. In Langfuse the classifier now sits in the parent calls' trace
$ python lf_observations.py 2026-11-24T04:40:57Z 2026-11-24T04:41:11Z
04:40:59.675	GENERATION	litellm-anthropic_messages	82a80e6acb0a83b3	9c255f670f46	None	corr-cc-trace-head
04:40:59.697	GENERATION	litellm-anthropic_messages	d30748d7e18b557c	9c255f670f46	None	corr-cc-trace-head
04:41:01.566	GENERATION	litellm-acompletion	0db6ce3306126373	9c255f670f46	b5da768fc27244e4	-
04:41:02.972	GENERATION	litellm-anthropic_messages	c4cb6abbe0b083fe	9c255f670f46	None	corr-cc-trace-head

The run noticed these. Only the first is new with this PR

  • Langfuse lists sub-calls beside the parent call, not under it
  • With the trace header, Langfuse sessionId shows the header value
  • Without a trace header, each main call gets its own trace
/live-pr-risk report at 45ced8b

PASS. Base fdc16fd and head 45ced8b each ran as a proxy with 2 workers and its own Postgres and Redis, with real OpenAI and Gemini calls behind forwarding recorders. 98 cells per leg ran with no policy and again under missing_session_id: omit, plus 30 failure cells. A client-sent litellm_session_id_inherited now acts as on base on every route tried, and the proxy's own sub-calls keep it

Case Before (fdc16fd) After (45ced8b)
Forged marker, generateContent, omit empty session empty session
Forged marker, chat, messages, responses sent session sent session
Forged marker, WebSocket, queue sent session sent session
Forged marker, pass-through, omit empty session empty session
Upstream affinity header sent session sent session
Switchyard session, forged marker set set
Failure rows, forged marker baseline same
Sub-call rows, session sent no session parent session
Sub-call Switchyard, adaptive key no session skipped
Merge with main 3d49fb9 n/a clean, not run

Breaking. None. Every cell matched base on status, spend row session, upstream affinity and session headers, and the Switchyard session

Backward incompatible. Classifier and compaction summary rows carry the parent session and skip Switchyard and adaptive router session scoping. Shivam asked for this in LIT-10761's suggested fix, which forwards the parent's litellm_session_id the way _parent_session_kwargs already does for the auto router's classifier calls. It is in Decisions and the High caveat. At f296471 a client could send the new marker itself and keep its own session on a generateContent row under omit. 45ced8b strips the marker from client input, so those rows are empty again, as on base

Regression risk. Low, traced and not reached. The failure spend row copies raw client metadata with no strip, and the pass-through pre-call hook still sees the client marker. No code reads the marker on either path today, and every failure cell with a forged marker matched base under omit

Dependency graph. Verified live are the HTTP strip on chat, messages, responses and generateContent (each bucket and duplicate keys), the queue route's caller_metadata, Responses WebSocket turns, both pass-throughs, and the safeguards and compaction sub-calls. WebSocket frame metadata never reached the hook on either side, so that strip has no marker-specific proof. The legacy spend path, Langfuse and the 189 integration tests carry from f296471, since this diff touches none of them

Not verified. The tree merged with main was not run live. The merge is clean and none of main's 48 commits changes a strip or marker line. Carried from f296471 are the Fireworks, ChatGPT and opencode session headers, Kubernetes pod pinning, and the S3, Datadog and PostHog exports. Under omit, generateContent drops a session sent in the baggage header on base and head alike. That is filed for follow-up

Type

🐛 Bug Fix

Caveats (if any)

High

  • Session-keyed providers and Kubernetes pods get the parent's session on sub-calls, on purpose (Decisions)
  • The grouped Logs view can headline a session with its classifier row after a tool use turn
  • A complexity router as the classifier model adds classifier turns to the parent's auto router session
    • A separate change, the internal call origin tag, fixes both

Medium

  • Deepeval gets the classifier and parent call under one trace id, like any reused trace header

Low

  • S3, Datadog v0 and PostHog metadata gain litellm_session_id_inherited, like the existing generated marker
  • Classifier Langfuse metadata gains an empty requester_custom_headers key
  • Compaction proof uses the Anthropic SDK, since Claude Code never sends compact_20260112
  • Handler tests patch module-level proxy settings
  • rust-wheel fails the same 10 Bedrock and callback tests on main
Decisions and the options not taken
  • Fixed in the shared sub-call logging settings, so both sub-calls get it
    • The other choice was a patch per call site, which leaves the next sub-call open
  • The session, sent top-level or in litellm_metadata, goes on as the top-level session only, with the trace id and the marker for a session the proxy minted
    • Metadata session_id would let a sub-call overwrite a complexity router's per-session tier pin
    • It would also send LangSmith a session without its trace id, which makes LangSmith reject the batch
  • Under missing_session_id: omit a sub-call's row takes the parent session it inherited, never a trace id
    • So the row stays empty when the caller sent no session, same as the parent's
    • Only rows marked as inheriting a session take it, so every other row keeps its base session
    • The other choice was to take the sent session on every row, which also fills pass-through and generateContent rows that base leaves empty. That is a separate change
  • Under missing_session_id: generate the minted session groups the rows but never goes upstream
    • The parent request already skips a minted session for its affinity header, so sub-calls now match it
  • The trace id is the one sent in the body, else the one the parent minted
    • Without a session, sub-calls now share the parent's trace, not a random one
  • Providers that key cache or affinity on the session now get the parent's session on these calls
    • This covers Fireworks, ChatGPT, opencode, provider_affinity_header and the Switchyard router's x-switchyard-session-id, and Kubernetes pod discovery pins them to the session's pod
    • With no session, ChatGPT sub-calls send the parent's trace id as their session id, where before each sent a random one
    • The calls are part of the same turn, and the classifier's transcript grows each turn, so the same routing helps its cache
    • The other choice was to strip the session from upstream calls, which gives one turn two ids upstream
  • In Langfuse the sub-calls join the parent call's trace through the existing trace header, so they never rename it
    • With a Claude Code session header that trace is the parent call's own, the way fix(langfuse): give each call in a session header its own trace instead of upserting one trace per session #40177 set it
    • The other choice was a trace per sub-call, which leaves them out of the turn's trace
    • A sub-call hangs under a parent id that is never exported, the Langfuse logger's rule for any existing trace, so it never takes over the trace's name and input. Langfuse lists it beside the parent call at the top of the trace tree
    • Nesting it under the parent call would need the parent's generation id, which the compaction summary does not have, since it runs before the parent call
  • Under request_correlation_in_logs the sub-calls carry the caller's session that an x-litellm-trace-id header moved aside
    • So their spend rows land in the same session as the parent's
  • The handler tests keep patching proxy settings, since injecting them would add test-only parameters to the public handler
  • Sub-calls carry a litellm_session_id_inherited marker, and Switchyard and the adaptive router skip a session marked that way
    • So the parent's routing picks and turn counts stay the same with or without the check
    • The other choice was the internal call origin tag, which also takes the calls out of rate limits and usage rollups
  • Left open for review. The sub-calls carry no internal call origin tag yet, so the Logs session row ranks them like the caller's own calls
    • The tag would let that row skip them, but it also takes the calls out of token rate limits, daily request counts and the model usage rollup, so it needs its own change
  • No existing PR covered this, so this starts fresh on main

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 cross-cutting session/trace propagation in spend logging, Langfuse, routers, and upstream affinity headers; behavior is intentional but touches billing-adjacent attribution paths.

Overview
Proxy-internal sub-calls (e.g. safeguards classifier and compaction summary) now inherit the parent request’s session and trace for spend logs, Langfuse, and callbacks, instead of each getting a random session/trace.

The PR adds a proxy-owned litellm_session_id_inherited marker, stamps it on sub-call metadata/logging kwargs via proxy_sub_call_metadata / proxy_sub_call_logging_kwargs, and forwards the parent’s litellm_session_id (top-level only, not metadata session_id) plus langfuse_existing_trace_id so sub-calls join the parent trace. inherits_parent_session() drives follow-on behavior: spend rows under missing_session_id: omit can use the inherited parent session; adaptive and switchyard routers skip inherited sessions for turn attribution; clients cannot merge/forge the marker on pass-through. Python and Rust spend-log paths and goldens were updated, with broader unit coverage for spend rows, Langfuse traces, and provider affinity headers.

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

…calls in the parent request's session

On /v1/messages, the safeguards classifier call and the compact_20260112 summary call each logged under
a fresh session id, so their spend log rows never grouped with the Claude Code session that triggered
them. The shared sub-call logging kwargs now carry the parent's top-level litellm_session_id and its
resolved trace id. Metadata session keys stay out because deployment affinity reads them
…rovider affinity header

Carry the missing_session_id: generate marker into the safeguards classifier and compaction summary
sub-call metadata, so a session the proxy minted is never sent upstream as an affinity header.
The spend-row session test now asserts the row the Logs page groups by.
@veria-ai

veria-ai Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

PR overview

No security issues were found in this pull request.

Reviews

@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@greptile-apps

greptile-apps Bot commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge with no new actionable findings.

Summary

Classifier and compaction summary calls now share the parent request's session and Langfuse trace. Switchyard and the adaptive router avoid counting the inherited session as another parent turn.

The latest changes keep clients from forging litellm_session_id_inherited through either metadata bucket. No new actionable issues were found.

Earlier discussions were rechecked. Greptile conceded mateo-berri's explanation of the transient grouped-log headline. The Langfuse existing-trace header addresses competing trace updates. mateo-berri confirmed that the live proof covers both routers at 155dc72708. These threads were unnumbered, so they require no numbered finding entries.

  • Anthropic classifier and summary calls share their parent request’s session and trace.
  • Spend logs keep an inherited session when missing sessions are omitted.
  • Session-based routers skip internal calls that inherit a parent session.
  • Client metadata cannot mark a request as inheriting a session.
  • Generated API types now include response background options.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Client request] --> B[Remove client-supplied inherited-session marker]
    B --> C[Parent model request]
    C --> D[Classifier or summary call]
    D --> E[Set trusted inherited-session marker]
    E --> F[Log under parent session and trace]
    E --> G[Keep sub-call out of parent router session]
Loading

Reviews (7) · Last reviewed commit: "fix(proxy): strip a client-sent inherite..." · Reviewed by Greptile

…uest, not the setup-time logging params

The setup-time Logging params replaced the request's proxy_server_request with None and used Claude Code's Anthropic metadata.user_id in place of the proxy's litellm_metadata, so sub-calls joined a session-named trace instead of the parent call's. The merge order now matches the Responses path, where the request kwargs and litellm_metadata win
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

…s session when it is sent in litellm_metadata or under missing_session_id omit
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

Main now builds spend rows in Rust (BerriAI#52161), so the sub-call session fallback under missing_session_id: omit moves into the Rust row builder too, with a golden scenario for it
…s routing session

The sub-calls now carry the parent's session for logging, so Switchyard and the
adaptive router would count them as turns of the caller's conversation. They are
marked as inheriting the session, and both routers skip a session marked that way
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@codecov

codecov Bot commented Nov 23, 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

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.

…m_safeguards_classifier_parent_session

# Conflicts:
#	litellm/llms/anthropic/messages/utils.py
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

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

return str(sid)
explicit: Final = None if inherits_parent_session(litellm_params) else _explicit_session_id(litellm_params)
if explicit:
return explicit

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.

Inherited sub-calls still train adaptive router

Medium Severity

Skipping an inherited session only clears the explicit id, so _resolve_session_key still hashes the first SIGNAL_GATE_MIN_MESSAGES messages. Compaction summaries reuse that history, so with no parent session the summary can share the parent's bandit key and record_turn still runs. The new hook test stays under the message gate, so it never catches this.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 45ced8b. Configure here.

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.

Pre-existing, not from this PR. Base sends this sub-call with no session, so it hashes the same messages into the same key

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

1 issue from previous review remains unresolved.

Fix All in Cursor

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

Reviewed by Cursor Bugbot for commit 45ced8b. Configure here.

@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

@mateo-berri
mateo-berri merged commit a960ce8 into BerriAI:main Nov 24, 2026
66 of 67 checks passed
mateo-berri added a commit to rhea-tk/litellm that referenced this pull request Nov 24, 2026
Pass the provider-signed limit to the Rust row builder again after BerriAI#53599 spelled out its arguments, and record BerriAI#53405's two new golden rows with that config key
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants