Skip to content

fix(otel): name postgres service spans by operation and table - #44240

Merged
yassin-berriai merged 1 commit into
litellm_otel_cache_span_purpose_namingfrom
litellm_otel_postgres_span_operation_table
Oct 3, 2026
Merged

yassin-berriai merged 1 commit into
litellm_otel_cache_span_purpose_namingfrom
litellm_otel_postgres_span_operation_table

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

TLDR

Problem this solves:

  • Postgres spans are named after Python helpers: postgres get_data
  • No span carries the table, db.operation.name repeats the function name
  • Spend flushes, daily spend upserts and spend log inserts emit no span
  • PrismaClient.insert_data, update_data, delete_data emit no span
  • Failed raw spend writes never emit a DB failure event
  • Budget reset, heartbeat, health check, partition, cleanup, gateway request, shadow funnel and tool index jobs emit no span
  • _PROXY_track_cost_callback emits a batch_write_to_db span for an in-memory enqueue that does no I/O
  • Raw prisma_client.db.query_first readers such as the auth object prefetch run with no span at all: prod trace 2d1f96ed8a4a9e30afa078ab89cf12ee has a 26 ms hole inside auth /v1/messages between the Redis miss and the Redis write back
  • Undecorated Prisma model calls (find_many, upsert, raw SQL) in management, reporting, sync and setup paths emit no span either

How it solves it:

  • Spans render as postgres.{verb} {table}, e.g. postgres.select LiteLLM_VerificationToken
  • db.operation.name is the verb, db.collection.name and db.query.summary the table
  • Raw helper name stays on litellm.service.call_type, Prometheus and Datadog labels unchanged
  • insert_data, update_data, delete_data get @log_db_metrics
  • Spend transactions, spend log batches and every background Prisma writer emit one DB event per round trip, failures included
  • The spend enqueue emits no span; a static scan pins every PrismaClient CRUD call site to a table schema.prisma knows
  • Every raw reader and writer is wrapped in db_span, and _TrackedPrismaEngine.query emits one table-named event for any Prisma call no producer owns, named from the query engine payload (model and action, or the first relation of a raw statement)
  • A static scan of every raw and model prisma_client.db.* call site fails when a site would render a half-named Postgres span
  • Redis span names are byte-identical to fix(otel): nest cache spans under their operation and name service spans by purpose #44150

Stacked on #44150 (base litellm_otel_cache_span_purpose_naming), which sits on #44148. #44221 rebases onto this branch so the order is #44148 -> #44150 -> this PR -> #44221. Not for merge on its own

Files changed

File What changed and why
litellm/integrations/otel/model/spans.py PostgresOperation plus the call_type to verb and table map, a table_name to Prisma model map bounded by the model names in schema.prisma, and the postgres.{verb} {table} branch in service_span_name; a verb whose table did not resolve keeps the legacy postgres {call_type} so a half-named postgres.select never ships; LiteLLM_AutoRouterDailySpend joins the model allowlist, which test_every_model_in_the_prisma_schema_is_a_renderable_span_table now pins to the models declared in schema.prisma; the Redis branch is untouched
litellm/integrations/otel/model/semconv.py DB.COLLECTION_NAME and DB.QUERY_SUMMARY constants next to the existing DB semconv names
litellm/integrations/otel/model/db_endpoint.py db_span_attributes takes the resolved PostgresOperation so db.operation.name is the verb and db.collection.name and db.query.summary carry the table when known
litellm/integrations/otel/mappers/genai.py The service-span mapper resolves the operation once and passes it to db_span_attributes, keeping the raw name on litellm.service.call_type
litellm/proxy/db/log_db_metrics.py Event metadata comes from _table_metadata_reader, which infers table_name for PrismaClient CRUD calls made with token, tokens, user_id or team_id in the order the methods dispatch on; the BATCH_WRITE_TO_DB branch that emitted a zero-duration event for _PROXY_* callbacks is gone, so the decorator has one rule: a DB event when and only when the #44148 witness saw Prisma run; db_io_claimed and claim_db_io expose the witness so db_span and the engine fallback can tell whether an enclosing producer already owns the event, and a witness closes when its producer returns, so a task spawned inside a producer that reaches Prisma after the producer finished (a context copy of the witness) emits its own event instead of being swallowed; the wrapper's **kwargs and _handle_logging_db_exception are typed object and Mapping[str, object]; _is_exception_related_to_db counts every httpx.TransportError (a dropped query engine connection included) and not only ConnectError and timeouts, so an attempt the tool spend writer treats as uncertain still emits its failure event; the witness mechanism itself is untouched
litellm/proxy/db/db_span.py New db_span async context manager (and db_spanned for retry helpers that take a thunk) that emits one ServiceTypes.DB success or failure event around a raw Prisma statement, batch or transaction, with the table and the SQL verb in the metadata and no parent span; it claims the witness so a nested producer or the engine fallback stays silent, stays silent itself when an enclosing producer already claimed it, and emits nothing when the block never reached the Prisma engine (a mocked client, an empty batch), the same rule #44148 gives the decorator; a failure hook that raises is logged at debug and never replaces the Prisma error the caller retries on; with no proxy_logging_obj importable it emits nothing rather than failing the write
litellm/proxy/db/prisma_query_span.py New parser for the Prisma query engine payload: a model action (findUnique, findMany, createOne, updateOne, deleteOne, upsertOne, aggregate, ...) resolves to the schema model and verb, a queryRaw or executeRaw statement resolves to its leading keyword and first quoted relation (REFRESH MATERIALIZED VIEW is ddl, TRUNCATE is delete, a CTE write takes the verb of its writing clause, SELECT 1 and catalog probes are ping and pg_catalog), and anything else yields no table so the legacy postgres {call_type} name is kept; sql_relation and sql_operation serve the few raw callers whose SQL is built at runtime
litellm/proxy/db/prisma_client.py _TrackedPrismaEngine.query keeps marking the #44148 witness and now, when no @log_db_metrics or db_span producer has claimed it, wraps the engine round trip in db_span named from the parsed payload, so an undecorated Prisma call anywhere in the tree emits exactly one table-named event; called out because #44148 owns this file
litellm/proxy/auth/auth_object_prefetch.py _fetch_rows runs its multi-table query_first inside db_span("prefetch_auth_objects", "auth_objects"), rendering postgres.select auth_objects with db.collection.name listing the nine tables the statement joins, which closes the prod hole above
litellm/proxy/db/baseline_accounting.py The baseline comparison transaction flush runs inside db_span on LiteLLM_AutoRouterBaselineComparison
litellm/proxy/db/autorouter_session_rollup.py The autorouter turn upsert runs inside db_span and names the session table its statement writes: LiteLLM_AutoRouterSession for the key statement, LiteLLM_AutoRouterUserSession for the per-user statement the flush falls back to after a key write fails
litellm/proxy/db/create_views.py Each view DDL runs inside db_span("create_view", view_name), so a boot-time view build shows as postgres.ddl {view}
litellm/proxy/management_endpoints/team_endpoints.py The team user spend aggregate runs inside db_span on LiteLLM_SpendLogs
litellm/proxy/management_endpoints/auto_router_endpoints.py The report query runs inside db_span with the relation read from the SQL by sql_relation
litellm/repositories/daily_activity_repository.py The daily activity query runs inside db_span with the relation read from the SQL by sql_relation
litellm/proxy/hooks/proxy_track_cost_callback.py _PROXY_track_cost_callback loses @log_db_metrics: it only enqueues into the in-memory spend queues, so no service event belongs there; the flush that drains the queue emits the table-named spans
litellm/proxy/db/db_spend_update_writer.py _spend_update_tx takes the table and wraps the transaction in db_span, so every entity spend commit and daily spend upsert is one span named by its table
litellm/proxy/utils.py @log_db_metrics on insert_data, update_data and delete_data; failure_handler keeps the alert and Sentry capture for those four CRUD call types and skips its own DB failure event only when the decorator already emitted one (Prisma or connection errors), so a failed write is counted once and a wrapped foreign key HTTPException still gets its event; the end-user spend transaction and the spend log batch insert go through db_span
litellm/proxy/common_utils/reset_budget_job.py The budget cascade, the three spend reset units of work, the budget window page reads and the two budget window writes run inside db_span, naming LiteLLM_BudgetTable, LiteLLM_VerificationToken, LiteLLM_UserTable and LiteLLM_TeamTable
litellm/proxy/db/budget_window_spend_writer.py The window seed read, the existing-row read, the window spend commit and the window roll run inside db_span, naming LiteLLM_SpendLogs and LiteLLM_BudgetWindowSpend
litellm/proxy/db/db_transaction_queue/spend_log_cleanup.py The expired-row count and each delete batch run inside db_span, naming the table being cleaned
litellm/proxy/db/db_transaction_queue/spend_logs_partition_manager.py The partitioning check, the partition listing and each partition create run inside db_span on LiteLLM_SpendLogs
litellm/proxy/db/gateway_request_tracking.py The daily gateway request commit runs inside db_span as postgres.upsert LiteLLM_DailyGatewayRequests
litellm/proxy/db/health_check_latest.py The latest health check read runs inside db_span as postgres.select LiteLLM_HealthCheckTable
litellm/proxy/db/proxy_worker_heartbeat.py Heartbeat upsert, stale heartbeat prune, live worker count and deregister run inside db_span on LiteLLM_ProxyWorkerHeartbeat
litellm/proxy/db/shadow_eval_funnel.py The funnel flush runs inside db_span as postgres.upsert LiteLLM_ShadowEvalFunnel
litellm/proxy/db/spend_log_tool_index.py The tool index insert and the daily tool spend commit run inside db_span, naming LiteLLM_SpendLogToolIndex and LiteLLM_DailyToolSpend
litellm/proxy/management_helpers/access_group_team_sync.py The team to access group membership transaction runs inside db_span as postgres.transaction LiteLLM_AccessGroupTable
litellm/proxy/spend_tracking/key_metadata_recovery.py The key metadata recovery transaction and the user detail read run inside db_span, naming the recovered table and LiteLLM_UserTable
litellm/proxy/management_endpoints/credential_migration.py The config and SSO credential migration updates run inside db_span, so a boot-time migration write is visible as postgres.update LiteLLM_Config or postgres.update LiteLLM_SSOConfig
litellm/proxy/auth/user_api_key_auth.py The JWT auto-registration insert and the orphaned key cleanup run inside db_span, naming LiteLLM_JWTKeyMapping and LiteLLM_VerificationToken
litellm/proxy/_experimental/mcp_server/oauth_issuer_stamp_backfill.py The issuer backfill update runs inside db_span as postgres.update LiteLLM_MCPServerTable
enterprise/litellm_enterprise/enterprise_callbacks/send_emails/endpoints.py The email settings upsert runs inside db_span as postgres.upsert LiteLLM_Config
litellm/integrations/otel/README.md Documents the Postgres naming rule next to the Redis one

User Flow

Before: an operator looking at a slow request in Grafana Tempo cannot tell which table the proxy waited on, and never sees the spend writes

  1. They send POST https://litellm-domain/v1/chat/completions with a virtual key and get a 200
  2. They open the trace in Tempo and under auth /v1/chat/completions see postgres get_data with db.operation.name=get_data and no table attribute
  3. They search {name=~"postgres.*" && name=~".*insert.*"} for the spend write that followed and find nothing, because the spend flush and spend log insert emit no span
  4. They send POST https://litellm-domain/key/update and the trace shows no database span at all

After: the same traces name the SQL operation and table, and every spend write shows up

  1. They send the same POST https://litellm-domain/v1/chat/completions with a virtual key and get a 200
  2. Under auth /v1/chat/completions the span reads postgres.select LiteLLM_VerificationToken with db.operation.name=select and db.collection.name=LiteLLM_VerificationToken
  3. A few seconds later postgres.update LiteLLM_VerificationToken, postgres.upsert LiteLLM_DailyUserSpend and postgres.insert LiteLLM_SpendLogs appear as roots linked to that request's trace
  4. POST https://litellm-domain/key/update shows postgres.update LiteLLM_VerificationToken under the request, and a Prisma error on any of these writes shows as a failed postgres.* span

Audit: every producer of a Postgres service event

Scope was litellm/, enterprise/ and litellm-proxy-extras/: every @log_db_metrics function, every direct ServiceTypes.DB hook call, and every raw prisma_client.db.* write outside those. Line numbers are at this PR's tip. "Real I/O only" means the event is gated by the #44148 witness, so an in-memory or dedup hit emits nothing

Producer Name before Name after Table Real I/O only Failure event
litellm/proxy/utils.py:4868 PrismaClient.get_data postgres get_data postgres.select {table} from table_name, or key/user by lookup key yes yes
litellm/proxy/utils.py:5291 PrismaClient.insert_data no span postgres.insert {table} from table_name yes (new) yes (new)
litellm/proxy/utils.py:5441 PrismaClient.update_data no span postgres.update {table} from table_name or lookup key yes (new) yes (new)
litellm/proxy/utils.py:5681 PrismaClient.delete_data no span postgres.delete {table} from table_name or lookup key yes (new) yes (new)
litellm/proxy/utils.py update_spend end-user transaction no span postgres.upsert LiteLLM_EndUserTable fixed per transaction (new) yes (new)
litellm/proxy/utils.py update_spend_logs batch no span postgres.insert LiteLLM_SpendLogs fixed per batch (new) yes (new)
litellm/proxy/db/db_spend_update_writer.py _commit_spend_updates_to_db user, key, team, team membership, org, org membership, tag, agent, model access group, project no span postgres.update {table} with call_type=commit_spend_updates one table per transaction per transaction (new) yes (new)
litellm/proxy/db/db_spend_update_writer.py daily user, team, tag, org, end-user, agent spend no span postgres.upsert LiteLLM_Daily*Spend with call_type=upsert_daily_spend one table per transaction per transaction (new) yes (new)
litellm/proxy/auth/auth_checks.py:1512 get_team_member_default_budget postgres get_team_member_default_budget postgres.select LiteLLM_BudgetTable fixed yes yes
litellm/proxy/auth/auth_checks.py:1876 get_end_user_object postgres get_end_user_object postgres.select LiteLLM_EndUserTable fixed yes yes
litellm/proxy/auth/auth_checks.py:2176 get_model_access_group_budgets_batch postgres get_model_access_group_budgets_batch postgres.select LiteLLM_ModelAccessGroupBudgetTable fixed yes yes
litellm/proxy/auth/auth_checks.py:2247 get_tag_objects_batch postgres get_tag_objects_batch postgres.select LiteLLM_TagTable fixed yes yes
litellm/proxy/auth/auth_checks.py:2291 get_tag_object postgres get_tag_object postgres.select LiteLLM_TagTable fixed yes yes
litellm/proxy/auth/auth_checks.py:2340 _fetch_team_membership_from_db postgres _fetch_team_membership_from_db postgres.select LiteLLM_TeamMembership fixed yes yes
litellm/proxy/auth/auth_checks.py:2616 get_user_object postgres get_user_object postgres.select LiteLLM_UserTable fixed yes yes
litellm/proxy/auth/auth_checks.py:3144 _get_team_db_check (Admin UI and JWT check_db_only=True path) postgres _get_team_db_check postgres.select LiteLLM_TeamTable fixed yes yes
litellm/proxy/auth/auth_checks.py:3349 get_access_object postgres get_access_object postgres.select LiteLLM_AccessGroupTable fixed yes yes
litellm/proxy/auth/auth_checks.py:3420 get_team_object_by_alias postgres get_team_object_by_alias postgres.select LiteLLM_TeamTable fixed yes yes
litellm/proxy/auth/auth_checks.py:3530 get_org_object_by_alias postgres get_org_object_by_alias postgres.select LiteLLM_OrganizationTable fixed yes yes
litellm/proxy/auth/auth_checks.py:3828 get_jwt_key_mapping_cache_keys_for_token postgres get_jwt_key_mapping_cache_keys_for_token postgres.select LiteLLM_JWTKeyMapping fixed yes yes
litellm/proxy/auth/auth_checks.py:3856 get_jwt_key_mapping_object postgres get_jwt_key_mapping_object postgres.select LiteLLM_JWTKeyMapping fixed yes yes
litellm/proxy/auth/auth_checks.py:3885 get_key_object (wraps get_data(table_name="combined_view")) postgres get_key_object postgres.select LiteLLM_VerificationToken fixed yes yes
litellm/proxy/auth/auth_checks.py:3982 get_object_permission postgres get_object_permission postgres.select LiteLLM_ObjectPermissionTable fixed yes yes
litellm/proxy/auth/auth_checks.py:4038 get_managed_vector_store_rows_by_uuids postgres get_managed_vector_store_rows_by_uuids postgres.select LiteLLM_ManagedVectorStoresTable fixed yes yes
litellm/proxy/auth/auth_checks.py:4107 get_org_object postgres get_org_object postgres.select LiteLLM_OrganizationTable fixed yes yes
litellm/proxy/hooks/proxy_track_cost_callback.py:291 _PROXY_track_cost_callback batch_write_to_db _PROXY_track_cost_callback with a hardcoded 0.0 duration on every success, postgres _PROXY_track_cost_callback on the rare path where Prisma ran inside it no span: the callback only enqueues into the in-memory spend queues, the flush that drains them emits postgres.update {table}, postgres.upsert LiteLLM_Daily*Spend and postgres.insert LiteLLM_SpendLogs none n/a n/a
litellm/proxy/utils.py:3157 ProxyLogging.failure_handler failure event, call_type of the caller for get_data, insert_data, update_data and delete_data the failure event comes from @log_db_metrics once when the error is a Prisma or connection error, failure_handler keeps alert and Sentry and only emits the event itself for wrapped errors such as the foreign key HTTPException; unchanged for connect none n/a is the failure event
litellm/proxy/auth/auth_exception_handler.py:162 DB-unavailable fallback failure event get_key_object unchanged none n/a is the failure event

The remaining raw prisma_client.db.* writes off the request path are wrapped in db_span too: the two credential migrations in litellm/proxy/management_endpoints/credential_migration.py (postgres.update LiteLLM_Config, postgres.update LiteLLM_SSOConfig), the JWT auto-registration insert and orphan cleanup in litellm/proxy/auth/user_api_key_auth.py (postgres.insert LiteLLM_JWTKeyMapping, postgres.delete LiteLLM_VerificationToken), the OAuth issuer backfill in litellm/proxy/_experimental/mcp_server/oauth_issuer_stamp_backfill.py (postgres.update LiteLLM_MCPServerTable) and the enterprise email settings upsert in enterprise/litellm_enterprise/enterprise_callbacks/send_emails/endpoints.py (postgres.upsert LiteLLM_Config)

Background and out-of-request producers, none of which had a span before this PR. Each one is a raw prisma_client.db.* statement or transaction wrapped in db_span at the I/O boundary, emits its failure event on a Prisma or connection error, and is pinned by a test in its mapped tests/unit/proxy/... file that renders the event through service_span_name

Producer Name after Table
litellm/proxy/common_utils/reset_budget_job.py budget cascade postgres.transaction LiteLLM_BudgetTable fixed
litellm/proxy/common_utils/reset_budget_job.py spend reset units of work postgres.update LiteLLM_VerificationToken, postgres.update LiteLLM_UserTable, postgres.update LiteLLM_TeamTable one per unit of work
litellm/proxy/common_utils/reset_budget_job.py budget window page read and writes postgres.select {table}, postgres.update {table} with call_type=reset_budget_windows and write_budget_windows LiteLLM_VerificationToken or LiteLLM_TeamTable
litellm/proxy/db/budget_window_spend_writer.py postgres.select LiteLLM_SpendLogs, postgres.select LiteLLM_BudgetWindowSpend, postgres.upsert LiteLLM_BudgetWindowSpend, postgres.update LiteLLM_BudgetWindowSpend fixed
litellm/proxy/db/db_transaction_queue/spend_log_cleanup.py postgres.select {table} then postgres.delete {table} per batch the table being cleaned
litellm/proxy/db/db_transaction_queue/spend_logs_partition_manager.py postgres.select LiteLLM_SpendLogs for the check and the listing, postgres.ddl LiteLLM_SpendLogs per partition create fixed
litellm/proxy/db/gateway_request_tracking.py postgres.upsert LiteLLM_DailyGatewayRequests fixed
litellm/proxy/db/health_check_latest.py postgres.select LiteLLM_HealthCheckTable fixed
litellm/proxy/db/proxy_worker_heartbeat.py postgres.upsert, postgres.delete (prune and deregister), postgres.select on LiteLLM_ProxyWorkerHeartbeat fixed
litellm/proxy/db/shadow_eval_funnel.py postgres.upsert LiteLLM_ShadowEvalFunnel fixed
litellm/proxy/db/spend_log_tool_index.py postgres.insert LiteLLM_SpendLogToolIndex, postgres.upsert LiteLLM_DailyToolSpend fixed
litellm/proxy/management_helpers/access_group_team_sync.py postgres.transaction LiteLLM_AccessGroupTable fixed
litellm/proxy/spend_tracking/key_metadata_recovery.py postgres.select {table} with call_type=recover_key_metadata, postgres.select LiteLLM_UserTable the recovered table
litellm/proxy/db/db_transaction_queue/pod_lock_manager.py not a Postgres producer: the cron lock lives in Redis and the file has no Prisma call, its pod_lock_manager gauge events are unchanged none

After this PR no Prisma statement in litellm/ or enterprise/ runs without a ServiceTypes.DB event, and a static scan in tests/unit/integrations/otel/test_otel_v2_logger.py walks every get_data, get_generic_data, insert_data, update_data and delete_data call under litellm/, enterprise/ and litellm-proxy-extras/, resolves the table from the literal table_name or from the token, tokens, user_id or team_id lookup key the helper dispatches on, and fails if any site renders anything other than postgres.{verb} LiteLLM_*

Audit: every raw and model Prisma call site (static scan)

tests/unit/proxy/db/test_prisma_query_span.py walks litellm/ and enterprise/ with ast, finds every prisma_client.db.query_first, query_raw, execute_raw, <model>.find_*, count, group_by, create, create_many, update, update_many, delete, delete_many and upsert call, resolves the SQL string or the Prisma model behind it (module constants, function-scope assignments, mapping values, SQL builders and forwarding callers included) and renders the span name the call would produce. A site fails the test when it would render a verb without a table. It found 262 sites, 191 by engine, 33 by db_span, 11 by db_span(bounded), 7 by log_db_metrics(crud), 5 by _spend_update_tx, 2 by db_spanned(bounded), 2 by transaction(baseline_accounting), 2 by forwarder, 2 by engine via _query_raw callers, 2 by log_db_metrics(crud) via _query_first_with_cached_plan_fallback callers, 1 by _spend_update_tx(bounded), 1 by engine via _fetch_admin_teams_and_keys_rows callers, 1 by engine via _write_membership callers, 1 by engine via _rewrite_groups callers, 1 by engine via _query_raw_rows callers; the engine fallback in _TrackedPrismaEngine.query owns every site no producer wraps. Five of the engine-owned sites build their relation at runtime (dynamic SQL in the access group and model allowlist syncs), so the name is resolved from the executed statement at run time and the scan pins the alternatives; three render postgres.ping (SELECT 1 health probes) and sixteen pg_catalog reads render postgres.select pg_catalog

Every site with the span name it renders is listed in the audit report attached to the session, and test_every_prisma_call_site_in_the_proxy_renders_a_bounded_postgres_span_name asserts the same rows, one per site

Audit: prod evidence (Tempo, read-only, 13:00 to 19:00 UTC today)

Datasource grafanacloud-traces, {resource.service.name="berriai-litellm-prod" && name=~"postgres.*"}. Prod ran main at 25109a5 plus 237ed76 of #44150 and not #44148, so in-memory hits still emitted spans. "Real" counts spans over 1 ms

Span name Count Over 1 ms Parent Classification
postgres get_user_object 9494 550 auth {route} 8944 in-memory hits (#44148 removes them), 550 real
postgres get_data 4986 4986 auth {route}, or a linked root after the response real, litellm.service.caller nil on every sampled span
postgres get_org_object 1225 178 auth {route} 1047 in-memory, 178 real
postgres get_end_user_object 516 95 auth {route} 421 in-memory, 95 real
postgres get_object_permission 464 419 auth {route} real
postgres get_key_object 224 10 auth {route}, or a linked root after the response 214 dedup or in-memory, 10 real (each one also has a postgres get_data child for the same query)
postgres _get_team_db_check 221 221 auth {route} real, Admin UI and JWT check_db_only path
postgres _fetch_team_membership_from_db 139 139 auth {route} real
postgres get_team_member_default_budget 22 22 auth {route} real
postgres get_tag_objects_batch 1 1 auth {route} real

Nothing else matched postgres.*. In six hours of prod traffic there was not one insert, update, upsert or transaction span: the whole spend write path ran without a span. No sampled postgres span carried db.collection.name or db.query.summary, and db.operation.name repeated the function name. No DB error series appeared in the window. Spans issued from auth nest under auth {route}. Post-response spans are roots linked back to the finished server span (trace 4059997bcd0fe44a2672d0f810d0fa22), which this PR keeps. Every zero-duration span in the window came from a @log_db_metrics helper, so #44148 covers all of them

Naming table

Verbs come from _POSTGRES_OPERATION_BY_CALL_TYPE in litellm/integrations/otel/model/spans.py. The table comes from that map for helpers that only ever touch one model, otherwise from the event's table_name metadata, which only resolves the short PrismaClient literals (key, user, team, spend, enduser, budget, config, user_notification, combined_view) or a full LiteLLM_* model name, so a free-form string can never become a span name. An unknown call_type, or a known verb whose table_name is not one of those literals, keeps the old postgres {call_type}, so the half-named postgres.select with no table cannot ship

litellm.service.call_type Span name db.operation.name db.collection.name
get_data, get_generic_data postgres.select {table} select from table_name
insert_data postgres.insert {table} insert from table_name
update_data postgres.update {table} update from table_name
delete_data postgres.delete {table} delete from table_name
get_key_object postgres.select LiteLLM_VerificationToken select LiteLLM_VerificationToken
get_user_object postgres.select LiteLLM_UserTable select LiteLLM_UserTable
get_org_object, get_org_object_by_alias postgres.select LiteLLM_OrganizationTable select LiteLLM_OrganizationTable
_get_team_db_check, get_team_object_by_alias postgres.select LiteLLM_TeamTable select LiteLLM_TeamTable
_fetch_team_membership_from_db postgres.select LiteLLM_TeamMembership select LiteLLM_TeamMembership
get_team_member_default_budget postgres.select LiteLLM_BudgetTable select LiteLLM_BudgetTable
get_end_user_object postgres.select LiteLLM_EndUserTable select LiteLLM_EndUserTable
get_tag_object, get_tag_objects_batch postgres.select LiteLLM_TagTable select LiteLLM_TagTable
get_model_access_group_budgets_batch postgres.select LiteLLM_ModelAccessGroupBudgetTable select LiteLLM_ModelAccessGroupBudgetTable
get_access_object postgres.select LiteLLM_AccessGroupTable select LiteLLM_AccessGroupTable
get_object_permission postgres.select LiteLLM_ObjectPermissionTable select LiteLLM_ObjectPermissionTable
get_jwt_key_mapping_object, get_jwt_key_mapping_cache_keys_for_token postgres.select LiteLLM_JWTKeyMapping select LiteLLM_JWTKeyMapping
get_managed_vector_store_rows_by_uuids postgres.select LiteLLM_ManagedVectorStoresTable select LiteLLM_ManagedVectorStoresTable
commit_spend_updates postgres.update {table} update the transaction's table
upsert_daily_spend postgres.upsert LiteLLM_Daily*Spend upsert the transaction's table
update_end_user_spend postgres.upsert LiteLLM_EndUserTable upsert LiteLLM_EndUserTable
insert_spend_logs postgres.insert LiteLLM_SpendLogs insert LiteLLM_SpendLogs
migrate_config_credentials postgres.update LiteLLM_Config update LiteLLM_Config
migrate_sso_credentials postgres.update LiteLLM_SSOConfig update LiteLLM_SSOConfig
auto_register_jwt_mapping postgres.insert LiteLLM_JWTKeyMapping insert LiteLLM_JWTKeyMapping
delete_orphaned_jwt_key postgres.delete LiteLLM_VerificationToken delete LiteLLM_VerificationToken
backfill_mcp_oauth_issuer postgres.update LiteLLM_MCPServerTable update LiteLLM_MCPServerTable
save_email_settings postgres.upsert LiteLLM_Config upsert LiteLLM_Config
reset_budget_cascade, sync_team_access_group_membership postgres.transaction {table} transaction the table the unit of work is keyed on
reset_spend_rows, write_budget_windows, roll_window_spend_row postgres.update {table} update from table_name
reset_budget_windows, seed_window_spend, select_window_spend_rows, count_expired_rows, check_spend_log_partitioning, list_spend_log_partitions, latest_health_checks, count_live_proxy_workers, recover_key_metadata, recover_user_details postgres.select {table} select from table_name
commit_window_spend_updates, commit_gateway_requests, proxy_worker_heartbeat, flush_shadow_eval_funnel, commit_daily_tool_spend postgres.upsert {table} upsert from table_name
index_spend_log_tools postgres.insert LiteLLM_SpendLogToolIndex insert LiteLLM_SpendLogToolIndex
cleanup_expired_rows, prune_proxy_worker_heartbeats, deregister_proxy_worker postgres.delete {table} delete from table_name
create_spend_log_partition postgres.ddl LiteLLM_SpendLogs ddl LiteLLM_SpendLogs
a known verb whose table did not resolve, or an unknown call_type postgres {call_type} call_type unset

db.query.summary is {VERB} {table} when the table is known, never query text. db.system.name=postgresql, server.address, server.port and db.namespace are unchanged from #44150. The batch spend flush renders as postgres.update {table} rather than a postgres.transaction spend_update umbrella because each _spend_update_tx only ever writes one table, so the table is the more useful half of the name and the transaction is still one span

What did not change and why

Redis spans are byte-identical to #44150: service_span_name returns early for Postgres and the Redis branch is untouched, which tests/unit/integrations/otel/ still asserts. The #44148 witness mechanism is untouched; its _is_exception_related_to_db predicate widens from ConnectError plus timeouts to every httpx.TransportError, so a dropped query engine socket counts as a DB failure for the decorator and for db_span alike; prisma_client.py gains the engine fallback described above and log_db_metrics.py exposes db_io_claimed and claim_db_io on top of the witness, both called out because #44148 owns those files; the other edits to log_db_metrics.py replace _safe_db_event_metadata with _table_metadata_reader, which infers table_name for PrismaClient CRUD methods called with token, tokens, user_id or team_id instead of table_name, in the order the method dispatches on, drop the BATCH_WRITE_TO_DB branch, and type the wrapper's **kwargs as object and _handle_logging_db_exception's kwargs as Mapping[str, object] in place of a bare dict. Called out here because #44148 owns that file. litellm.service.call_type keeps the raw helper name, so litellm_db_* Prometheus series and Datadog service tags do not move. Auth spans still nest under auth {route} and post-response writes still land as linked roots, because db_span passes no parent span and the V2 logger's existing linking does the rest

A failed insert_data, update_data or delete_data used to be counted twice once the decorator landed on them: the decorator emitted the DB failure event and ProxyLogging.failure_handler emitted a second one for the same exception. failure_handler now keeps the alert and the Sentry capture for those call types and leaves the service event to @log_db_metrics when the error is one the decorator reports (Prisma or connection errors), so one failed write is one failure event. A wrapped error such as the organization foreign key HTTPException is not seen by the decorator, so failure_handler still emits its event for it. connect is not decorated and keeps its event

Two Prometheus series stop being populated: litellm_batch_write_to_db_total_requests and litellm_batch_write_to_db_latency. They came from the BATCH_WRITE_TO_DB event the decorator emitted around _PROXY_track_cost_callback, which carried a hardcoded duration=0.0 and only fired when the request had a parent OTel span, so the histogram held nothing and the counter counted OTel-traced requests rather than writes. The writes themselves are counted by the litellm_db_* series, labelled with the raw call_type (commit_spend_updates, upsert_daily_spend, insert_spend_logs), which this PR adds. No other ServiceTypes value or metric label moves

Caveat taxonomy audit

Run against the diff before the bot review. Confirmed and fixed: Z3 (bot findings), write_autorouter_turn named LiteLLM_AutoRouterSession for the per-user statement too, LiteLLM_AutoRouterDailySpend was missing from the model allowlist so the cleanup job's events lost their table, and db_span dropped the failure event for an httpx.ReadError, each with a test that is red on the unfixed code; Z3 (bot finding), a task spawned inside a producer inherited the witness by context copy and the engine fallback stayed silent for a Prisma call it ran after the producer returned, so the witness now closes with its producer and test_a_task_spawned_by_a_decorated_call_that_queries_after_it_returned_emits_its_own_event is red on the unfixed code (('read_key_row',) instead of ('read_key_row', 'find_unique')) and green on the fix; X1, the CRUD table inference tests kwargs.get(key) is not None rather than truthiness so an empty string lookup still names its table; T17, every renamed span and every new span has a test that fails on the base (test_otel_v2_logger.py including the static CRUD call site scan, test_db_endpoint.py, test_db_span.py, test_log_db_metrics.py, test_prisma_client_writes.py, test_db_spend_update_writer.py, test_credential_migration.py, test_user_api_key_auth_request_flow.py, test_oauth_issuer_stamp_backfill.py, send_emails/test_endpoints.py, test_proxy_track_cost_callback.py for the enqueue path emitting nothing, test_prisma_query_span.py for the payload parser and the call site scan, test_auth_object_prefetch.py for the prefetch reader, and one rendered-name test per background producer in test_reset_budget_job.py, test_budget_window_spend_writer.py, test_spend_log_cleanup.py, test_spend_logs_partition_manager.py, test_gateway_request_tracking.py, test_health_check_latest.py, test_proxy_worker_heartbeat.py, test_shadow_eval_funnel.py, test_spend_log_tool_index.py and test_key_metadata_recovery.py); AA7 again for the callback, the enqueue-only _PROXY_track_cost_callback emitted a BATCH_WRITE_TO_DB event for an operation that did no I/O, that branch is gone and the metric change is written up above; H4, the new helper uses X | None and Mapping[str, object], no bare dict or Any added; AA7, a failed insert_data, update_data or delete_data used to emit two DB failure events (decorator plus failure_handler), failure_handler now skips the service hook when the decorated CRUD call raised a Prisma or connection error the decorator already reported, keeps it for wrapped HTTPExceptions, and test_alerting.py pins both

Judged not applicable: A1 and A2, no cache is written or invalidated, the change only names and emits spans; A3, after a prefetch miss the per-object getters in auth_checks.py read the rows the prefetch cached, so one real query is one span (the Redis miss tree below shows no second LiteLLM_TeamMembership read); a key whose user is not a team member has no membership row to prefetch, so _fetch_team_membership_from_db makes one real read and caches the negative sentinel, one span for one query; B1, no shared list or object is read-modify-written; B5 and AA1, db_span schedules the success hook with asyncio.create_task exactly like the decorator it mirrors, and the inline failure hook is wrapped so a raising exporter can never replace the Prisma error the spend writer's retry decision reads (test_a_raising_failure_hook_never_replaces_the_prisma_error); C1 to C7, the public surface that moves is the OTel span name, documented under Rollout, while litellm.service.call_type, the Prometheus litellm_db_* labels and every Redis span stay byte-identical; D, P, Z, no auth or permission decision changes, the auth helpers only gain a table in their span name; E and AA, db_span re-raises every exception and runs after the transaction, so no spend row is skipped, swallowed or double counted (AA4, AA5); F, G, O, no provider, streaming or guardrail code touched; H1 to H3, no docs in the source tree beyond the OTel README, no new source comments, no em dashes; J2, no client or provider is created; K, no numeric or string parsing; M, N, the table is accepted only when it is a PrismaClient literal or a model declared in schema.prisma, so a free-form producer value falls back to postgres {call_type} and no key, token or hash enters a span name (db.query.summary is {VERB} {table}); R, no helm, CI or migration change; T4 and T5, tests patch litellm.proxy.proxy_server.proxy_logging_obj, the symbol the code imports at call time, inside a context manager that restores it, and the shared postgres_span_names fixture in tests/unit/proxy/conftest.py renders the emitted events through the real service_span_name rather than asserting on mock call shapes; T6, db_span returns None from _service_logging when proxy_logging_obj cannot be imported, so a background job under a partially mocked proxy_server still runs its write and the test asserts the write, not the import; W1, no caller-owned dict is mutated, event_metadata is a fresh dict per event; Y and BB, no precedence chain or inherited default changes

Rollout

Anyone filtering Tempo or Datadog on the old names (name="postgres get_data") should switch to name=~"postgres\\..*" or filter on litellm.service.call_type, which did not change. Volume grows by one span per spend transaction and per spend log batch, plus one per background round trip (a heartbeat upsert, a health check read, a budget reset page), so a few spans per flush or cron tick, never one per row. The batch_write_to_db series and span disappear, see above. The spend transaction spans are roots in their own traces linked to the originating request, same as today's post-response key lookups. No config change and no new dependency

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
  • I have received a Greptile Confidence Score of at least 4/5 before requesting a maintainer review (Greptile reviews automatically once the PR is opened; only comment @greptileai to re-request a review after pushing changes)

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

Local proxy on Postgres and Redis with the OTel V2 logger writing spans to the console, no provider call (the model has mock_response). Shared setup for both runs:

# config.yaml
model_list:
  - model_name: gpt-5.4-mini
    litellm_params:
      model: openai/gpt-5.4-mini
      api_key: fake-key
      mock_response: "mocked response for the postgres span audit"
general_settings:
  master_key: os.environ/LITELLM_MASTER_KEY
  proxy_batch_write_at: 5
litellm_settings:
  callbacks: ["otel"]
  cache: true
  cache_params: {type: redis, host: 127.0.0.1, port: 6379}
LITELLM_OTEL_V2=1 OTEL_EXPORTER=console OTEL_SEMCONV_STABILITY_OPT_IN=gen_ai_latest_experimental \
  litellm --config config.yaml --port 4000 > spans.log
H='Authorization: Bearer $LITELLM_MASTER_KEY'
KEY=$(curl -s -X POST localhost:4000/key/generate -H "$H" -H 'Content-Type: application/json' -d '{"models":["gpt-5.4-mini"]}' | jq -r .key)
curl -s -X POST localhost:4000/v1/chat/completions -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"hi"}]}'
curl -s localhost:4000/user/info -H "$H"
curl -s -X POST localhost:4000/key/update -H "$H" -H 'Content-Type: application/json' -d '{"key":"'$KEY'","max_budget":5}'
sleep 12   # proxy_batch_write_at flush
curl -s -X POST localhost:4000/key/delete -H "$H" -H 'Content-Type: application/json' -d '{"keys":["'$KEY'"]}'

The trees below are the postgres spans and their ancestors from spans.log, one trace per block, [+offset, duration] relative to the trace root

Before (3b64bfa)

POST /key/generate

  1. curl -X POST localhost:4000/key/generate ... returns 200 with a sk-... key
  2. No postgres span in the trace: insert_data is not instrumented

POST /v1/chat/completions

  1. curl -X POST localhost:4000/v1/chat/completions ... returns mocked response for the postgres span audit
  2. The key lookup is a function-named span with no table
POST /v1/chat/completions  [+0.0ms, 50.09ms]
  auth /v1/chat/completions  [+4.4ms, 25.27ms]
    postgres get_data  [+5.4ms, 5.15ms] db.operation.name=get_data litellm.service.call_type=get_data
  redis.pipeline  [+32.6ms, 0.85ms]
  cache.get llm_response  [+35.1ms, 0.66ms]
    redis.get llm_response  [+35.2ms, 0.46ms]
  chat gpt-5.4-mini  [+44.5ms, 0.36ms]

GET /user/info (Admin UI style call)

  1. curl localhost:4000/user/info -H "$H" returns the user and its keys
  2. Same get_data name for a different table
GET /user/info  [+0.0ms, 9.51ms]
  auth /user/info  [+1.6ms, 2.15ms]
  postgres get_data  [+6.9ms, 2.11ms] db.operation.name=get_data litellm.service.call_type=get_data

POST /key/update

  1. curl -X POST localhost:4000/key/update ... returns the updated key
  2. No postgres span in the trace: update_data is not instrumented

Spend flush after the chat call

  1. Wait past proxy_batch_write_at
  2. No postgres span anywhere: key spend update, tag spend update, daily user, team and tag spend upserts and the spend log insert all run without a span

POST /key/delete

  1. curl -X POST localhost:4000/key/delete ... returns {"deleted_keys": [...]}
  2. The JWT mapping lookup has a span, the delete itself has none
POST /key/delete  [+0.0ms, 18.92ms]
  auth /key/delete  [+1.4ms, 5.36ms]
  postgres get_jwt_key_mapping_cache_keys_for_token  [+14.2ms, 1.79ms] db.operation.name=get_jwt_key_mapping_cache_keys_for_token litellm.service.call_type=get_jwt_key_mapping_cache_keys_for_token

After (this PR's tip)

POST /key/generate

  1. curl -X POST localhost:4000/key/generate ... returns 200 with a sk-... key
  2. The insert is visible, named by operation and table
POST /key/generate  [+0.0ms, 28.02ms]
  auth /key/generate  [+4.0ms, 11.80ms]
  postgres.insert LiteLLM_VerificationToken  [+22.4ms, 4.72ms] db.operation.name=insert db.collection.name=LiteLLM_VerificationToken litellm.service.call_type=insert_data

POST /v1/chat/completions

  1. curl -X POST localhost:4000/v1/chat/completions ... returns mocked response for the postgres span audit
  2. The key lookup names the table, still nested under auth, Redis spans unchanged
POST /v1/chat/completions  [+0.0ms, 50.63ms]
  auth /v1/chat/completions  [+4.0ms, 25.18ms]
    postgres.select LiteLLM_VerificationToken  [+4.5ms, 5.73ms] db.operation.name=select db.collection.name=LiteLLM_VerificationToken litellm.service.call_type=get_data
  redis.pipeline  [+33.4ms, 0.76ms]
  cache.get llm_response  [+35.7ms, 0.47ms]
    redis.get llm_response  [+35.8ms, 0.30ms]
  chat gpt-5.4-mini  [+44.9ms, 0.38ms]

GET /user/info (Admin UI style call)

  1. curl localhost:4000/user/info -H "$H" returns the user and its keys
  2. The user row lookup, called without table_name, resolves its table from user_id
GET /user/info  [+0.0ms, 10.11ms]
  auth /user/info  [+1.9ms, 2.09ms]
  postgres.select LiteLLM_UserTable  [+7.2ms, 2.37ms] db.operation.name=select db.collection.name=LiteLLM_UserTable litellm.service.call_type=get_data

POST /key/update

  1. curl -X POST localhost:4000/key/update ... returns the updated key
  2. The update is visible, table resolved from the token lookup key
POST /key/update  [+0.0ms, 17.03ms]
  auth /key/update  [+2.0ms, 2.00ms]
  postgres.update LiteLLM_VerificationToken  [+7.9ms, 3.95ms] db.operation.name=update db.collection.name=LiteLLM_VerificationToken litellm.service.call_type=update_data

Spend flush after the chat call

  1. Wait past proxy_batch_write_at
  2. Each spend transaction and the spend log batch is one span, each a root in its own trace linked to the request, none attached to the finished server span
postgres.update LiteLLM_VerificationToken  [+0.0ms, 6.12ms] db.operation.name=update db.collection.name=LiteLLM_VerificationToken litellm.service.call_type=commit_spend_updates
postgres.update LiteLLM_TagTable  [+0.0ms, 4.84ms] db.operation.name=update db.collection.name=LiteLLM_TagTable litellm.service.call_type=commit_spend_updates
postgres.upsert LiteLLM_DailyUserSpend  [+0.0ms, 6.03ms] db.operation.name=upsert db.collection.name=LiteLLM_DailyUserSpend litellm.service.call_type=upsert_daily_spend
postgres.upsert LiteLLM_DailyTeamSpend  [+0.0ms, 6.13ms] db.operation.name=upsert db.collection.name=LiteLLM_DailyTeamSpend litellm.service.call_type=upsert_daily_spend
postgres.upsert LiteLLM_DailyTagSpend  [+0.0ms, 9.32ms] db.operation.name=upsert db.collection.name=LiteLLM_DailyTagSpend litellm.service.call_type=upsert_daily_spend
postgres.insert LiteLLM_SpendLogs  [+0.0ms, 3.84ms] db.operation.name=insert db.collection.name=LiteLLM_SpendLogs litellm.service.call_type=insert_spend_logs

POST /key/delete

  1. curl -X POST localhost:4000/key/delete ... returns {"deleted_keys": [...]}
  2. Both the mapping lookup and the delete are visible with their tables
POST /key/delete  [+0.0ms, 21.87ms]
  auth /key/delete  [+1.5ms, 6.80ms]
  postgres.select LiteLLM_JWTKeyMapping  [+16.8ms, 2.10ms] db.operation.name=select db.collection.name=LiteLLM_JWTKeyMapping litellm.service.call_type=get_jwt_key_mapping_cache_keys_for_token
  postgres.delete LiteLLM_VerificationToken  [+19.3ms, 1.92ms] db.operation.name=delete db.collection.name=LiteLLM_VerificationToken litellm.service.call_type=delete_data

Redis miss on the auth objects (POST /v1/messages)

litellm_settings.enable_redis_auth_cache: true and general_settings.user_api_key_cache_ttl: 3, so the in-memory copies expire while Redis still holds them. A team and a member are created, a key bound to both is warmed with one chat call, the proxy waits past the TTL, the user, team, membership and spend keys are deleted from Redis (the hashed key row stays), then one /v1/messages call runs

curl -s -X POST localhost:4063/team/new -H "Authorization: Bearer $LITELLM_MASTER_KEY" -d '{"team_alias":"pgspan-miss","models":["gpt-5.4-mini"]}'
curl -s -X POST localhost:4063/team/member_add -H "Authorization: Bearer $LITELLM_MASTER_KEY" -d '{"team_id":"<team_id>","member":{"role":"user","user_id":"pgspan-user"}}'
curl -s -X POST localhost:4063/key/generate -H "Authorization: Bearer $LITELLM_MASTER_KEY" -d '{"models":["gpt-5.4-mini"],"team_id":"<team_id>","user_id":"pgspan-user"}'
curl -s -X POST localhost:4063/v1/chat/completions -H "Authorization: Bearer $KEY" -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"warm"}]}'
sleep 5
redis-cli --scan | rg "team_id:|pgspan-user|team_member" | xargs redis-cli del
curl -s -X POST localhost:4063/v1/messages -H "Authorization: Bearer $KEY" -d '{"model":"gpt-5.4-mini","max_tokens":32,"messages":[{"role":"user","content":"after the miss"}]}'
## redis: auth_objects keys before flush
  {team_member:c4ff194c-...:pgspan-user-8541}:tokens
  team_membership:pgspan-user-8541:c4ff194c-...
  {user:pgspan-user-8541}:tokens
## POST /v1/messages after the Redis miss
[{'text': 'mocked response for the postgres span audit', 'type': 'text'}]

The Redis read of the auth objects rides the request pipeline on this tip of #44150, so it renders as redis.pipeline auth_objects rather than redis.mget auth_objects, and the write back rides the post-call pipeline (redis.pipeline mixed under route). The 26 ms hole from the prod trace is now postgres.select auth_objects, one span for the one query_first, and no getter fallback issues a second read for the same rows

POST /v1/messages  [+0.0ms, 37.46ms]
  auth /v1/messages  [+2.4ms, 24.42ms]
    redis.pipeline auth_objects  [+2.7ms, 0.37ms] litellm.service.call_type=request_redis_batch
    postgres.select LiteLLM_VerificationToken  [+3.8ms, 7.25ms] db.operation.name=select db.collection.name=LiteLLM_VerificationToken litellm.service.call_type=get_data
    redis.get auth_objects  [+12.0ms, 0.56ms] litellm.service.call_type=async_get_cache
    postgres.select LiteLLM_TeamTable  [+12.6ms, 3.19ms] db.operation.name=select db.collection.name=LiteLLM_TeamTable litellm.service.call_type=_get_team_db_check
    redis.pipeline auth_objects  [+16.1ms, 0.82ms] litellm.service.call_type=request_redis_batch
    redis.pipeline mixed  [+17.5ms, 0.90ms] litellm.service.call_type=request_redis_batch
    postgres.select auth_objects  [+18.9ms, 3.40ms] db.operation.name=select db.collection.name=LiteLLM_UserTable,LiteLLM_TeamTable,LiteLLM_TeamMembership,LiteLLM_OrganizationTable,LiteLLM_OrganizationMembership,LiteLLM_ProjectTable,LiteLLM_ModelTable,LiteLLM_BudgetTable,LiteLLM_ObjectPermissionTable litellm.service.call_type=prefetch_auth_objects
    postgres.select LiteLLM_ModelAccessGroupBudgetTable  [+24.2ms, 1.74ms] db.operation.name=select db.collection.name=LiteLLM_ModelAccessGroupBudgetTable litellm.service.call_type=find_many
  route gpt-5.4-mini  [+29.7ms, 2.40ms]
    redis.pipeline mixed  [+29.9ms, 1.59ms] litellm.service.call_type=request_redis_batch
  cache.get llm_response  [+33.0ms, 0.72ms]
    redis.get llm_response  [+33.1ms, 0.56ms] litellm.service.call_type=async_get_cache

Background tick (this PR's tip)

Same proxy, with the cron jobs turned up so one idle window shows every background Postgres producer, and one request first so the spend queues have something to flush

general_settings:
  proxy_batch_write_at: 5
  proxy_budget_rescheduler_min_time: 4
  proxy_budget_rescheduler_max_time: 5
  background_health_checks: true
  health_check_interval: 5
KEY=$(curl -s -X POST localhost:4000/key/generate -H "$H" -H 'Content-Type: application/json' -d '{"models":["gpt-5.4-mini"],"max_budget":10,"budget_duration":"1s"}' | jq -r .key)
curl -s -X POST localhost:4000/v1/chat/completions -H "Authorization: Bearer $KEY" -H 'Content-Type: application/json' -d '{"model":"gpt-5.4-mini","messages":[{"role":"user","content":"hi"}]}'
sleep 30   # no more requests: spend flush, budget reset, heartbeat, health check

Every postgres span in the 30 idle seconds, one trace per block, each a root with no server span to attach to. Nothing renders as postgres {helper} and nothing renders as a verb without a table

trace a35d0fe5
  postgres.insert LiteLLM_SpendLogs  [+0.0ms, 5.96ms] db.operation.name=insert db.collection.name=LiteLLM_SpendLogs litellm.service.call_type=insert_spend_logs
trace eb3747ee
  postgres.update LiteLLM_TeamTable  [+0.0ms, 4.81ms] db.operation.name=update db.collection.name=LiteLLM_TeamTable litellm.service.call_type=commit_spend_updates
trace dd0fa900
  postgres.update LiteLLM_TagTable  [+0.0ms, 4.95ms] db.operation.name=update db.collection.name=LiteLLM_TagTable litellm.service.call_type=commit_spend_updates
trace 6cffa353
  postgres.upsert LiteLLM_DailyUserSpend  [+0.0ms, 5.13ms] db.operation.name=upsert db.collection.name=LiteLLM_DailyUserSpend litellm.service.call_type=upsert_daily_spend
trace 26807a85
  postgres.upsert LiteLLM_DailyTeamSpend  [+0.0ms, 4.48ms] db.operation.name=upsert db.collection.name=LiteLLM_DailyTeamSpend litellm.service.call_type=upsert_daily_spend
trace c8a24693
  postgres.upsert LiteLLM_DailyTagSpend  [+0.0ms, 6.94ms] db.operation.name=upsert db.collection.name=LiteLLM_DailyTagSpend litellm.service.call_type=upsert_daily_spend
trace 56c46d2e
  postgres.select LiteLLM_BudgetTable  [+0.0ms, 3.01ms] db.operation.name=select db.collection.name=LiteLLM_BudgetTable litellm.service.call_type=get_data
trace 0fa4547f
  postgres.upsert LiteLLM_ProxyWorkerHeartbeat  [+0.0ms, 3.46ms] db.operation.name=upsert db.collection.name=LiteLLM_ProxyWorkerHeartbeat litellm.service.call_type=proxy_worker_heartbeat
trace 1762de14
  postgres.delete LiteLLM_ProxyWorkerHeartbeat  [+0.0ms, 2.97ms] db.operation.name=delete db.collection.name=LiteLLM_ProxyWorkerHeartbeat litellm.service.call_type=prune_proxy_worker_heartbeats
trace 70c3a7f5
  postgres.select LiteLLM_HealthCheckTable  [+0.0ms, 3.00ms] db.operation.name=select db.collection.name=LiteLLM_HealthCheckTable litellm.service.call_type=latest_health_checks
trace 3a557b2a
  postgres.upsert LiteLLM_DailyGatewayRequests  [+0.0ms, 3.26ms] db.operation.name=upsert db.collection.name=LiteLLM_DailyGatewayRequests litellm.service.call_type=commit_gateway_requests
trace d6caea79
  postgres.delete LiteLLM_ProxyWorkerHeartbeat  [+0.0ms, 1.97ms] db.operation.name=delete db.collection.name=LiteLLM_ProxyWorkerHeartbeat litellm.service.call_type=deregister_proxy_worker

Distinct names over the whole run, with counts: postgres.select LiteLLM_VerificationToken 21, postgres.select LiteLLM_TeamTable 20, postgres.update LiteLLM_VerificationToken 16, postgres.select LiteLLM_UserTable 10, postgres.select LiteLLM_BudgetTable 10, postgres.select LiteLLM_HealthCheckTable 8, postgres.insert LiteLLM_SpendLogs 8, postgres.upsert LiteLLM_DailyUserSpend 6, postgres.upsert LiteLLM_DailyTeamSpend 6, postgres.update LiteLLM_TeamTable 6, postgres.update LiteLLM_TagTable 6, postgres.upsert LiteLLM_DailyTagSpend 2, postgres.delete LiteLLM_ProxyWorkerHeartbeat 2, postgres.upsert LiteLLM_ProxyWorkerHeartbeat 1, postgres.upsert LiteLLM_DailyGatewayRequests 1, postgres.insert LiteLLM_VerificationToken 1. No batch_write_to_db span appears after the request

Type

Bug Fix

Caveats (if any)

Low

  • A spend transaction, a budget cascade or an access group sync is one span named by its table, not one span per row or per statement, by design: the span mirrors the Postgres round trip, and per-statement spans would grow without bound with the batch size
  • db.query.summary is {VERB} {table} only, by design, so no query text or values can leak
  • postgres.select auth_objects names the prefetch statement rather than one of the nine tables it joins, by design: db.collection.name lists the tables, and one statement is one span
  • A key whose user has no team membership row re-reads LiteLLM_TeamMembership once per TTL after a prefetch miss, by design: the prefetch only caches rows that exist, and the getter caches the negative sentinel for the next requests
  • litellm_batch_write_to_db_total_requests and litellm_batch_write_to_db_latency stop being populated, by design: they measured a zero-duration enqueue, not a write, and the writes are now counted under litellm_db_*

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

Link to Devin session: https://app.devin.ai/sessions/47aa54bac07e4bf1a4e78da48df35ce4
Open in Devin Desktop: https://app.devin.ai/desktop/session/47aa54bac07e4bf1a4e78da48df35ce4?variant=devin
Requested by: @yassin-berriai

@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@CLAassistant

Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@devin-ai-integration
devin-ai-integration Bot force-pushed the litellm_otel_postgres_span_operation_table branch from 288550e to cb7b879 Compare October 2, 2026 20:24
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@greptile-apps

greptile-apps Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 4/5

[Medium risk] Adds observability instrumentation to database operations.

Guard the new write decorators’ failure hook before merging so logging cannot replace database errors

Findings

  1. P1 Logging hides database errors ▶

Summary

This PR names Postgres spans by operation and table and adds events around database writes and background jobs

  • The four numbered previous findings are fixed
  • Newly decorated writes still need to keep logging errors from replacing database errors
  • devin-ai-integration[bot] accepted poison-isolation success events because rejected rows are separately logged and excluded from written counts
  • devin-ai-integration[bot] acknowledged removing the enqueue metrics as intentional because they measured no database work

Reviews (11) · Last reviewed commit: "fix(otel): name postgres service spans b..."

Comment thread litellm/proxy/db/db_write_span.py Resolved
Comment thread litellm/proxy/utils.py Resolved
@codecov

codecov Bot commented Oct 2, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Comment thread litellm/proxy/db/db_write_span.py Resolved
Comment thread litellm/proxy/utils.py Resolved
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

Comment thread litellm/proxy/utils.py Resolved
@codspeed

codspeed Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing litellm_otel_postgres_span_operation_table (db22666) with litellm_otel_cache_span_purpose_naming (c1184c8)

Open in CodSpeed

@devin-ai-integration
devin-ai-integration Bot force-pushed the litellm_otel_postgres_span_operation_table branch from b2f9412 to e4f7dfb Compare October 2, 2026 21:13
@devin-ai-integration
devin-ai-integration Bot requested a review from a team October 2, 2026 21:13
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

Comment thread litellm/proxy/utils.py Resolved
@devin-ai-integration
devin-ai-integration Bot force-pushed the litellm_otel_postgres_span_operation_table branch from e4f7dfb to 84e0a9c Compare October 2, 2026 21:39
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

@devin-ai-integration
devin-ai-integration Bot force-pushed the litellm_otel_postgres_span_operation_table branch from deefbbe to 278435b Compare October 3, 2026 01:03
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

Comment thread litellm/proxy/db/db_span.py Resolved
@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai

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

Copy link
Copy Markdown
Contributor

@greptileai

@mateo-berri

Copy link
Copy Markdown
Contributor

@greptileai review

Comment thread litellm/proxy/utils.py
max_time=10, # maximum total time to retry for
on_backoff=on_backoff, # specifying the function to call on backoff
)
@log_db_metrics

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.

P1 Logging hides database errors

The new @log_db_metrics makes failed writes await a logging hook without catching its errors. If a DataDogLogger instance uses explicit credentials but the environment lacks DD_API_KEY or DD_SITE, the hook creates another logger without those credentials. Its setup error replaces the database error, so callers checking for database outages see the wrong error.

Previously, these writes scheduled failure_handler in the background and preserved the database error. Guard the decorator’s failure hook, as db_span already does. The same issue affects update_data and delete_data

Knowledge Base Used: Logging callbacks and telemetry

@yassin-berriai
yassin-berriai merged commit 797353f into main Oct 3, 2026
98 of 102 checks passed
@yassin-berriai
yassin-berriai deleted the litellm_otel_postgres_span_operation_table branch October 3, 2026 16:20
doonga pushed a commit to greyrock-labs/home-ops that referenced this pull request Oct 18, 2026
…106.0) (#443)

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 | `v1.105.1` → `v1.106.0` |

---

### Release Notes

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

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

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

#### Verify Docker Image Signature

All LiteLLM Docker images are signed with [cosign](https://docs.sigstore.dev/cosign/overview/). Every release is signed with the same key introduced in [commit `0112e53`](https://github.com/BerriAI/litellm/commit/0112e53046018d726492c814b3644b7d376029d0).

**Verify using the pinned commit hash (recommended):**

A commit hash is cryptographically immutable, so this is the strongest way to ensure you are using the original signing key:

```bash
cosign verify \
  --key https://raw.githubusercontent.com/BerriAI/litellm/0112e53046018d726492c814b3644b7d376029d0/cosign.pub \
  ghcr.io/berriai/litellm:v1.106.0
```

**Verify using the release tag (convenience):**

Tags are protected in this repository and resolve to the same key. This option is easier to read but relies on tag protection rules:

```bash
cosign verify \
  --key https://raw.githubusercontent.com/BerriAI/litellm/v1.106.0/cosign.pub \
  ghcr.io/berriai/litellm:v1.106.0
```

Expected output:

```
The following checks were performed on each of these signatures:
  - The cosign claims were validated
  - The signatures were verified against the specified public key
```

***

#### What's Changed

- test(mcp): fire MCP client test deadlines on conditions instead of wall-clock time by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44166](https://github.com/BerriAI/litellm/pull/44166)
- fix(cost-map): add OpenAI TTS and GPT-5.x deprecation dates by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44175](https://github.com/BerriAI/litellm/pull/44175)
- fix(tracing): unify ClickHouse storage configuration by [@&#8203;yujonglee-berri](https://github.com/yujonglee-berri) in [#&#8203;43941](https://github.com/BerriAI/litellm/pull/43941)
- feat(docker): one-command quickstart that starts the gateway, Postgres, and the admin UI by [@&#8203;misbahsy](https://github.com/misbahsy) in [#&#8203;43673](https://github.com/BerriAI/litellm/pull/43673)
- fix(lens): simplify the example investigation preview by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44123](https://github.com/BerriAI/litellm/pull/44123)
- chore(helm): drop migrationJob values the chart never reads by [@&#8203;Bernedotcom2312](https://github.com/Bernedotcom2312) in [#&#8203;42141](https://github.com/BerriAI/litellm/pull/42141)
- fix(ui): register tencent in the Add Model provider dropdown by [@&#8203;jimaldon](https://github.com/jimaldon) in [#&#8203;40924](https://github.com/BerriAI/litellm/pull/40924)
- test: remove 130 legacy tests owned by stronger unit proofs by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44157](https://github.com/BerriAI/litellm/pull/44157)
- feat(mcp)!: disable stdio MCP servers by default by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;44066](https://github.com/BerriAI/litellm/pull/44066)
- fix(proxy): exit when DATABASE_URL is set but the Prisma toolchain is missing by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44207](https://github.com/BerriAI/litellm/pull/44207)
- fix(proxy): preserve lifespan state across all entrypoints by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;44214](https://github.com/BerriAI/litellm/pull/44214)
- fix(oci): resolve the GenAI endpoint realm from the compartment OCID instead of hardcoding oraclecloud.com by [@&#8203;fede-kamel](https://github.com/fede-kamel) in [#&#8203;43180](https://github.com/BerriAI/litellm/pull/43180)
- fix(chatgpt): preserve requested service tier in Responses calls by [@&#8203;SteffanWolter](https://github.com/SteffanWolter) in [#&#8203;40108](https://github.com/BerriAI/litellm/pull/40108)
- fix(ui): leave unset callback select params out of the save payload by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44213](https://github.com/BerriAI/litellm/pull/44213)
- fix(proxy-extras): hand libpq a root cert, not Prisma's sslcert, when the migration job builds indexes by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44203](https://github.com/BerriAI/litellm/pull/44203)
- feat: add Laya gateway and OSS classifier providers by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;43626](https://github.com/BerriAI/litellm/pull/43626)
- fix(auto-router): count usage savings by selected UTC request day by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;44115](https://github.com/BerriAI/litellm/pull/44115)
- fix(lens): preserve framework agent names and GenAI message content by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44218](https://github.com/BerriAI/litellm/pull/44218)
- feat(jwt): auto_register_map_existing_key maps JWT to the user's existing virtual key by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;42375](https://github.com/BerriAI/litellm/pull/42375)
- feat(ui): select Laya for OSS classification by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;43768](https://github.com/BerriAI/litellm/pull/43768)
- fix(otel): tolerate non-dict callback_settings.otel and ignore bare EXCLUDED_SERVICES env by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44086](https://github.com/BerriAI/litellm/pull/44086)
- fix(proxy): carry key, team and project tags into pass-through spend logs by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;42662](https://github.com/BerriAI/litellm/pull/42662)
- feat(ui): add System One (Jev) tab to the playground by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44043](https://github.com/BerriAI/litellm/pull/44043)
- chore: bump litellm-proxy-extras 0.4.104 -> 0.4.105 by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44234](https://github.com/BerriAI/litellm/pull/44234)
- chore(prices): add xAI grok-voice-transcribe-1.0 deprecation date by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44237](https://github.com/BerriAI/litellm/pull/44237)
- fix(exa): fall back to highlights/summary when text is missing by [@&#8203;wakqasahmed](https://github.com/wakqasahmed) in [#&#8203;42213](https://github.com/BerriAI/litellm/pull/42213)
- fix(scim): apply path-less group PATCH ops instead of storing them under an empty metadata key by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43978](https://github.com/BerriAI/litellm/pull/43978)
- fix(lens): run investigations with configured wildcard models by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44233](https://github.com/BerriAI/litellm/pull/44233)
- fix(ui): shrink the sidebar logo so it stops outweighing page titles by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;44247](https://github.com/BerriAI/litellm/pull/44247)
- feat(tracing): support claude agent sdk traces with agent name, logo and chat content by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44248](https://github.com/BerriAI/litellm/pull/44248)
- fix(ui): make model leaderboard chart bars wide and readable by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44249](https://github.com/BerriAI/litellm/pull/44249)
- test: repair stale and polluting tests red on scheduled main CI by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;44229](https://github.com/BerriAI/litellm/pull/44229)
- feat(traces): type queries and align read access with log visibility by [@&#8203;yujonglee-berri](https://github.com/yujonglee-berri) in [#&#8203;44228](https://github.com/BerriAI/litellm/pull/44228)
- chore(ui): untrack tsconfig.tsbuildinfo and gitignore \*.tsbuildinfo by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44261](https://github.com/BerriAI/litellm/pull/44261)
- refactor(mcp): extract upstream preparation and support modern clients by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;44232](https://github.com/BerriAI/litellm/pull/44232)
- fix(lens): default to traces and reopen span details by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44260](https://github.com/BerriAI/litellm/pull/44260)
- fix(bedrock): surface unrecognized converse-stream event frames instead of an empty turn by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44112](https://github.com/BerriAI/litellm/pull/44112)
- perf(proxy): batch daily model usage writes instead of upserting per request by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44243](https://github.com/BerriAI/litellm/pull/44243)
- test(integration): opt the config pass-through spend-log case into auth by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;44265](https://github.com/BerriAI/litellm/pull/44265)
- test: fix three order-dependent and timing-flaky tests by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;44271](https://github.com/BerriAI/litellm/pull/44271)
- fix(ui): make the Lens traces refresh button always clickable by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44252](https://github.com/BerriAI/litellm/pull/44252)
- feat(lens): add sample previews and improve setup and worker feedback by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44268](https://github.com/BerriAI/litellm/pull/44268)
- chore(openrouter): sync prices, limits and deprecation dates from the models API by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44287](https://github.com/BerriAI/litellm/pull/44287)
- refactor(traces): type the ClickHouse query help response by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44285](https://github.com/BerriAI/litellm/pull/44285)
- fix(proxy): stop queued registry read-throughs spending the resync budget by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;44277](https://github.com/BerriAI/litellm/pull/44277)
- feat(lens): show investigation progress as one staged bar with time left by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44301](https://github.com/BerriAI/litellm/pull/44301)
- refactor(ui): compose dashboard pages with shared layouts by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44306](https://github.com/BerriAI/litellm/pull/44306)
- fix(proxy): share ownership permissions for spend logs and traces by [@&#8203;yujonglee-berri](https://github.com/yujonglee-berri) in [#&#8203;44239](https://github.com/BerriAI/litellm/pull/44239)
- fix(proxy-extras): retry P3009 when a peer already recovered the named migration row by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44283](https://github.com/BerriAI/litellm/pull/44283)
- fix(bedrock): price amazon nova 2 pro preview at the standard tier by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44302](https://github.com/BerriAI/litellm/pull/44302)
- feat: add Bespoke Nimble gateway and OSS classifier support by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;44246](https://github.com/BerriAI/litellm/pull/44246)
- fix(anthropic): stop repeating streamed thinking text in the signature chunk by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44127](https://github.com/BerriAI/litellm/pull/44127)
- fix(responses): drop bridge-minted reasoning items from OpenAI replays by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44132](https://github.com/BerriAI/litellm/pull/44132)
- feat(bedrock): drop lookaround regex patterns from tool schemas for Converse models that reject them by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44138](https://github.com/BerriAI/litellm/pull/44138)
- feat(bedrock): serve gpt-5.6+ chat completions natively by default, with chat_completions/ opt-in for gpt-oss and grok by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44307](https://github.com/BerriAI/litellm/pull/44307)
- feat(lens): issue briefs with problem, user goal, outcome and test cases by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44311](https://github.com/BerriAI/litellm/pull/44311)
- fix(responses): keep gpt-5.4/5.5 tool calls on chat and merge bridged tool calls into one choice by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44295](https://github.com/BerriAI/litellm/pull/44295)
- fix(cost): price rule-only model names at the deployment's rate by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44144](https://github.com/BerriAI/litellm/pull/44144)
- fix(auto-router): attribute router-day savings without spend logs or a session by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;44226](https://github.com/BerriAI/litellm/pull/44226)
- test(integration): let run.py select cells by pytest node id by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44319](https://github.com/BerriAI/litellm/pull/44319)
- fix(bedrock): honor unsupported reasoning effort levels for OpenAI GPT models by [@&#8203;Aasif-Multani](https://github.com/Aasif-Multani) in [#&#8203;44183](https://github.com/BerriAI/litellm/pull/44183)
- feat(lens): add preset watch-for checks to investigation setup by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44313](https://github.com/BerriAI/litellm/pull/44313)
- fix(proxy): use OpenAI workload identity federation tokens on /openai_passthrough by [@&#8203;6matt](https://github.com/6matt) in [#&#8203;44140](https://github.com/BerriAI/litellm/pull/44140)
- feat(interactions): durable cross-pod settlement for background interaction billing by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;41955](https://github.com/BerriAI/litellm/pull/41955)
- fix(streaming): keep the finish_reason of the provider's last content chunk in the logged response by [@&#8203;joeym82956](https://github.com/joeym82956) in [#&#8203;44318](https://github.com/BerriAI/litellm/pull/44318)
- fix(bedrock): send the anthropic-workspace-id header to Bedrock Mantle by [@&#8203;kohjunhao](https://github.com/kohjunhao) in [#&#8203;44173](https://github.com/BerriAI/litellm/pull/44173)
- fix(guardrails): run unified guardrails on /v1/images/edits by [@&#8203;michelligabriele](https://github.com/michelligabriele) in [#&#8203;44195](https://github.com/BerriAI/litellm/pull/44195)
- feat(scaleway): add rerank support by [@&#8203;ankit373](https://github.com/ankit373) in [#&#8203;44160](https://github.com/BerriAI/litellm/pull/44160)
- fix(vector_stores): return managed file ids from vector store file list by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43800](https://github.com/BerriAI/litellm/pull/43800)
- fix(proxy): return 4xx instead of 500 for missing required params, invalid pagination and unknown ids by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43787](https://github.com/BerriAI/litellm/pull/43787)
- fix(guardrails): encrypt guardrail litellm_params secrets at rest by [@&#8203;yucheng-berri](https://github.com/yucheng-berri) in [#&#8203;43627](https://github.com/BerriAI/litellm/pull/43627)
- fix(search_tools): encrypt search tool litellm_params at rest by [@&#8203;yucheng-berri](https://github.com/yucheng-berri) in [#&#8203;43631](https://github.com/BerriAI/litellm/pull/43631)
- feat(roi): add GitLab sources and branch cost attribution by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44324](https://github.com/BerriAI/litellm/pull/44324)
- fix(model-prices): mark azure us/eu responses-only models as mode responses by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44323](https://github.com/BerriAI/litellm/pull/44323)
- revert(cost): revert "fix(cost): price rule-only model names at the deployment's rate" ([#&#8203;44144](https://github.com/BerriAI/litellm/issues/44144)) by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44335](https://github.com/BerriAI/litellm/pull/44335)
- fix(proxy): stamp the client alias on a copy of each streamed chunk so pricing sees the deployment model by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44341](https://github.com/BerriAI/litellm/pull/44341)
- revert(responses): revert "fix(responses): keep gpt-5.4/5.5 tool calls on chat and merge bridged tool calls into one choice" ([#&#8203;44295](https://github.com/BerriAI/litellm/issues/44295)) by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44344](https://github.com/BerriAI/litellm/pull/44344)
- refactor(dashboard): migrate to zod 4 and openai 6 by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44345](https://github.com/BerriAI/litellm/pull/44345)
- feat(ui): move LiteAdmin into the header with a docked side panel by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;44293](https://github.com/BerriAI/litellm/pull/44293)
- fix(responses): merge bridged tool calls into the same choice as the text by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44346](https://github.com/BerriAI/litellm/pull/44346)
- feat(ui): improve trace inspection and ROI estimation by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44351](https://github.com/BerriAI/litellm/pull/44351)
- refactor(ui): reorganize Lens dashboard components by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44354](https://github.com/BerriAI/litellm/pull/44354)
- refactor(ui): inject Lens backends as services instead of a fake HTTP client by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44369](https://github.com/BerriAI/litellm/pull/44369)
- refactor: clean up fresh tech debt from 2026-10-02 by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44362](https://github.com/BerriAI/litellm/pull/44362)
- feat(traces): tracing development seed by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44363](https://github.com/BerriAI/litellm/pull/44363)
- refactor(types): replace Any with proven types in 4 files by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44370](https://github.com/BerriAI/litellm/pull/44370)
- build(deps): suppress unfixed braces GHSA-vfj7-8cjw-p6xm to clear osv-scan by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44347](https://github.com/BerriAI/litellm/pull/44347)
- fix(azure): add MAI-Image max_input_tokens from models sold directly page by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44375](https://github.com/BerriAI/litellm/pull/44375)
- fix(proxy): emit postgres service spans only on real DB reads in auth cache helpers by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44148](https://github.com/BerriAI/litellm/pull/44148)
- fix(otel): nest cache spans under their operation and name service spans by purpose by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44150](https://github.com/BerriAI/litellm/pull/44150)
- fix(otel): name postgres service spans by operation and table by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44240](https://github.com/BerriAI/litellm/pull/44240)
- perf(proxy): stop prompt-cache eligibility from tokenizing the whole conversation by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44221](https://github.com/BerriAI/litellm/pull/44221)
- fix(proxy): keep the database error when the log_db_metrics failure hook raises by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44383](https://github.com/BerriAI/litellm/pull/44383)
- feat(azure): add azure_ai/kimi-k2-thinking from Azure Kimi pricing page by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44382](https://github.com/BerriAI/litellm/pull/44382)
- feat(harness): add Harness.TOOL_LOOP, a minimal in-process tool-calling loop by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44391](https://github.com/BerriAI/litellm/pull/44391)
- feat(decisions): add unified /v1/decisions endpoint for Jev-compatible providers by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44236](https://github.com/BerriAI/litellm/pull/44236)
- fix(lens): paginate trace reads within ClickHouse limits by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44384](https://github.com/BerriAI/litellm/pull/44384)
- feat(lens): live dot field timeline and full-screen traces view by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44390](https://github.com/BerriAI/litellm/pull/44390)
- feat(ui): make LiteAdmin enterprise-only by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;44399](https://github.com/BerriAI/litellm/pull/44399)
- fix(bedrock): stop emitting Converse cachePoint blocks for Kimi K3 by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44292](https://github.com/BerriAI/litellm/pull/44292)
- test(cost): pin OpenAI reported web search count with mixed actions by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44414](https://github.com/BerriAI/litellm/pull/44414)
- fix(ci): give the pass-through auth regression test a real FastAPI app by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44403](https://github.com/BerriAI/litellm/pull/44403)
- fix(azure): add azure_ai/flux.2-pro input token limit from the models sold directly page by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44405](https://github.com/BerriAI/litellm/pull/44405)
- fix(lens): batch run reads and reset trace pagination by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44398](https://github.com/BerriAI/litellm/pull/44398)
- fix(lens): preserve full trace access and expose investigation failures by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44406](https://github.com/BerriAI/litellm/pull/44406)
- feat: add make lens-dev for one-command lens local dev by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44413](https://github.com/BerriAI/litellm/pull/44413)
- fix(bedrock): honor the per-request timeout on Converse and Invoke streaming (internal copy of [#&#8203;38210](https://github.com/BerriAI/litellm/issues/38210)) by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44134](https://github.com/BerriAI/litellm/pull/44134)
- feat(traces): render curated SQL examples from shared files by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44388](https://github.com/BerriAI/litellm/pull/44388)
- fix(model_prices): registry audit 2026-10-03, add cohere embed v5, grok-imagine-video-1.5-lite and openrouter gpt-image rows by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44376](https://github.com/BerriAI/litellm/pull/44376)
- refactor(traces): extract snapshot cache by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44424](https://github.com/BerriAI/litellm/pull/44424)
- feat(lens): always-on investigations with findings and investigations tables by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44418](https://github.com/BerriAI/litellm/pull/44418)
- feat(docker): add a Windows quickstart in PowerShell, and a styled terminal for both quickstarts by [@&#8203;misbahsy](https://github.com/misbahsy) in [#&#8203;44310](https://github.com/BerriAI/litellm/pull/44310)
- feat(proxy): serve a Codex-native model catalog with per-model service_tiers from /v1/models by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44136](https://github.com/BerriAI/litellm/pull/44136)
- refactor(types): replace Any with proven types in 9 files by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44389](https://github.com/BerriAI/litellm/pull/44389)
- fix(proxy): treat Postgres connection exhaustion as DB unavailable, not poison spend-log rows by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44270](https://github.com/BerriAI/litellm/pull/44270)
- fix(proxy): treat Postgres connection exhaustion as backpressure, not poison rows by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44266](https://github.com/BerriAI/litellm/pull/44266)
- fix(lens): release budget reservations when the analysis model call fails by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44431](https://github.com/BerriAI/litellm/pull/44431)
- fix(mcp): preserve upstream tool schemas and parameter headers by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;44425](https://github.com/BerriAI/litellm/pull/44425)
- fix(bedrock_mantle): route Claude chat completions to the native Messages endpoint by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43646](https://github.com/BerriAI/litellm/pull/43646)
- fix(tracing): preserve spend identity and gateway correlation by [@&#8203;yujonglee-berri](https://github.com/yujonglee-berri) in [#&#8203;44421](https://github.com/BerriAI/litellm/pull/44421)
- feat(roi): measure shipping velocity, quality, and recorded spend by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44426](https://github.com/BerriAI/litellm/pull/44426)
- fix(azure): set text-embedding max input to 8192 from the models sold directly page by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44449](https://github.com/BerriAI/litellm/pull/44449)
- feat(ui): show invitation and reset password links in a copyable field by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;44454](https://github.com/BerriAI/litellm/pull/44454)
- feat(lens): coordinate worker releases and bundled installs by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44428](https://github.com/BerriAI/litellm/pull/44428)
- fix(auth): resolve hidden model_group_alias entries in the zero-cost budget check by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43741](https://github.com/BerriAI/litellm/pull/43741)
- fix(vertex_ai): forward system and tools to partner model count_tokens by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43900](https://github.com/BerriAI/litellm/pull/43900)
- fix(traces): reject conflicting spend aliases and unrelated HTTP siblings by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44456](https://github.com/BerriAI/litellm/pull/44456)
- chore(cost-map): add azure_ai/kimi-k2-thinking retirement date from the Azure retired models page by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44455](https://github.com/BerriAI/litellm/pull/44455)
- fix(health): probe Bedrock Mantle Claude deployments over the Anthropic Messages API by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44419](https://github.com/BerriAI/litellm/pull/44419)
- fix(tests): match the OS bind error in the owned-proxy port-race retry by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44462](https://github.com/BerriAI/litellm/pull/44462)
- feat(anthropic): workload identity federation and pluggable identity sources by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44448](https://github.com/BerriAI/litellm/pull/44448)
- test(integration): exact four-part translation cases on a shared fake provider and shared YAML deployment by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44451](https://github.com/BerriAI/litellm/pull/44451)
- feat(roi): default people and branch lists to matched accounts by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44465](https://github.com/BerriAI/litellm/pull/44465)
- feat(enterprise): bundle LiteAdmin Slack with native gateway login by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;44444](https://github.com/BerriAI/litellm/pull/44444)
- fix(caching): count tool_call cache_control marks in the injection census by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43556](https://github.com/BerriAI/litellm/pull/43556)
- chore(cost-map): sync openrouter prices from the models API by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44466](https://github.com/BerriAI/litellm/pull/44466)
- fix(lens): preserve approved worker digests and harden its image by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44467](https://github.com/BerriAI/litellm/pull/44467)
- feat: improve Lens dev seeding and live UI by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44468](https://github.com/BerriAI/litellm/pull/44468)
- test(ui): wait for step search value to settle in TraceDrawer test by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44470](https://github.com/BerriAI/litellm/pull/44470)
- feat(ui): share trace drawer as a closable SidePanel and polish Lens by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44473](https://github.com/BerriAI/litellm/pull/44473)
- fix(lens): align source setup with available worker images by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44476](https://github.com/BerriAI/litellm/pull/44476)
- feat(sdk): add run_tool_loop and arun_tool_loop helpers by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44381](https://github.com/BerriAI/litellm/pull/44381)
- feat(lens): guide setup through the first investigation by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44475](https://github.com/BerriAI/litellm/pull/44475)
- test(ci): fix six CircleCI test regressions on main by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44429](https://github.com/BerriAI/litellm/pull/44429)
- fix(proxy-extras): log v1 migration failures at ERROR so LITELLM_LOG=ERROR shows them by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44202](https://github.com/BerriAI/litellm/pull/44202)
- feat(ui): inline Lens settings tab and investigation editor by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44479](https://github.com/BerriAI/litellm/pull/44479)
- feat(mcp): hand listed-tool description and input schema to pre-call hooks per caller by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;41162](https://github.com/BerriAI/litellm/pull/41162)
- refactor: clean up fresh tech debt from 2026-10-03 by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44484](https://github.com/BerriAI/litellm/pull/44484)
- fix(otel): read the registered v2 logger without importing the proxy by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44485](https://github.com/BerriAI/litellm/pull/44485)
- test(mcp): keep the SSO assertion round trip from matching its refresh token inside random ciphertext by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44494](https://github.com/BerriAI/litellm/pull/44494)
- test(ci): pin the ROI estimator flag and the prompt-cache counter in two drifted tests by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44499](https://github.com/BerriAI/litellm/pull/44499)
- refactor(ui): move TraceView into components/lens/traces by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44501](https://github.com/BerriAI/litellm/pull/44501)
- refactor(ui): rename view_logs to logs and split request, audit and detail by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44505](https://github.com/BerriAI/litellm/pull/44505)
- refactor(ui): share CopyButton between Lens traces and logs by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44513](https://github.com/BerriAI/litellm/pull/44513)
- refactor(lens): storage-independent trace reads, shared keyset pager, typed read failures by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44422](https://github.com/BerriAI/litellm/pull/44422)
- fix(ci): send the Lens preview body as selection in the tracing endpoint tests by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44525](https://github.com/BerriAI/litellm/pull/44525)
- fix(azure): set gpt-realtime-2.1 retirement dates from the retirement schedule by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44526](https://github.com/BerriAI/litellm/pull/44526)
- fix(ci): repair the security sweep and Lens billing integration tests for ROI, JWKS, and release identity changes by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44529](https://github.com/BerriAI/litellm/pull/44529)
- fix(dashboard): route dev API calls on Accept and fail fast on non-JSON 2xx by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44528](https://github.com/BerriAI/litellm/pull/44528)
- chore(cost-map): sync openrouter prices from the models API by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44533](https://github.com/BerriAI/litellm/pull/44533)
- refactor(ui): route dashboard URL state through nuqs parsers by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44537](https://github.com/BerriAI/litellm/pull/44537)
- fix(logging): deduplicate streaming failure callbacks by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44442](https://github.com/BerriAI/litellm/pull/44442)
- feat(proxy): add LITELLM_FIPS_MODE startup gate with provider assertion and loud password migration failure by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;42700](https://github.com/BerriAI/litellm/pull/42700)
- fix(guardrails): run the end-of-stream post_call scan when the client disconnects mid-stream by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43839](https://github.com/BerriAI/litellm/pull/43839)
- refactor(mcp): fix Sequence/list return mismatch and collapse record_listed_tools wrapper by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44556](https://github.com/BerriAI/litellm/pull/44556)
- chore(cost-map): add azure retirement dates for gpt-4o-realtime-preview-2024-10-01 and jamba-instruct by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44567](https://github.com/BerriAI/litellm/pull/44567)
- feat(ui): add persistent columns and loading skeletons to Lens runs by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44579](https://github.com/BerriAI/litellm/pull/44579)
- fix(ui): remove Top models by task card from Model Leaderboard by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44502](https://github.com/BerriAI/litellm/pull/44502)
- refactor(rust): track ClickHouse migrations in a checksummed ledger by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44580](https://github.com/BerriAI/litellm/pull/44580)
- refactor(ui): extract shared timeline and time-range controls by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44584](https://github.com/BerriAI/litellm/pull/44584)
- fix(azure): set gpt-4o-transcribe retirement date from the retirement schedule by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44585](https://github.com/BerriAI/litellm/pull/44585)
- ci: move Postgres, MCP and Redis suites to CircleCI integration by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44453](https://github.com/BerriAI/litellm/pull/44453)
- chore!: retire the integrated ROI calculator by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44477](https://github.com/BerriAI/litellm/pull/44477)
- fix(caching): key response cache by router model group in litellm_metadata by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44542](https://github.com/BerriAI/litellm/pull/44542)
- fix(auto-router): align preview and serving default resolution by [@&#8203;moyai-berriai](https://github.com/moyai-berriai)\[bot] in [#&#8203;44436](https://github.com/BerriAI/litellm/pull/44436)
- fix(mcp): bind OAuth clients to their upstream issuer by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;37777](https://github.com/BerriAI/litellm/pull/37777)
- feat(guardrails): add llm shield pii redaction and rehydration guardrail by [@&#8203;ninadphalak](https://github.com/ninadphalak) in [#&#8203;42645](https://github.com/BerriAI/litellm/pull/42645)
- refactor(tracing): generate existing HTTP request models from Rust schemas by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44591](https://github.com/BerriAI/litellm/pull/44591)
- ci: run unit selections from GHA test-path and drop the CircleCI unit jobs by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44461](https://github.com/BerriAI/litellm/pull/44461)
- fix(ui): make mobile sidebar and top bar responsive by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44603](https://github.com/BerriAI/litellm/pull/44603)
- refactor(types): replace Any with proven types in 137 files by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;44478](https://github.com/BerriAI/litellm/pull/44478)
- fix(ui): restore inline Lens onboarding and responsive layout by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44604](https://github.com/BerriAI/litellm/pull/44604)
- test(integration): anthropic-route basic translation cases for six Claude models on messages, chat completions and responses by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44607](https://github.com/BerriAI/litellm/pull/44607)
- fix(responses): report truncated bridged output as incomplete and echo request params by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44460](https://github.com/BerriAI/litellm/pull/44460)
- fix(proxy): enforce internal-user model creation prohibition by [@&#8203;moyai-berriai](https://github.com/moyai-berriai)\[bot] in [#&#8203;44438](https://github.com/BerriAI/litellm/pull/44438)
- chore(harness): drop the unused Any import left in harness options by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44625](https://github.com/BerriAI/litellm/pull/44625)
- fix(harness): drop the unused Any import that fails ruff on main by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44627](https://github.com/BerriAI/litellm/pull/44627)
- refactor(proxy): rename management/teams/access.py to authz.py by [@&#8203;ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#&#8203;44624](https://github.com/BerriAI/litellm/pull/44624)
- feat(tracing)!: return only data from SQL queries by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44609](https://github.com/BerriAI/litellm/pull/44609)
- fix(openai/realtime): drop model from upstream URL for intent=transcription by [@&#8203;michelligabriele](https://github.com/michelligabriele) in [#&#8203;43854](https://github.com/BerriAI/litellm/pull/43854)
- fix(gemini): add priority tier audio input price to three Gemini rows by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44632](https://github.com/BerriAI/litellm/pull/44632)
- fix(cost): bill per-second transcription models outside chat modes by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44458](https://github.com/BerriAI/litellm/pull/44458)
- fix(ui): explain why team member reset spend is unavailable instead of hiding it by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44629](https://github.com/BerriAI/litellm/pull/44629)
- test(integration): bedrock_converse-route basic translation cases for six Claude models on messages, chat completions and responses by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44646](https://github.com/BerriAI/litellm/pull/44646)
- test(integration): run the anthropic /v1/responses basic translation cases now that the bridge echoes request params by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44615](https://github.com/BerriAI/litellm/pull/44615)
- feat(lens): restore compact navigation with live investigation review by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44472](https://github.com/BerriAI/litellm/pull/44472)
- feat(proxy): limit which models an end user can call by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43904](https://github.com/BerriAI/litellm/pull/43904)
- fix(sso): let CLI and Claude Code gateway sign-in through on DISABLE_ADMIN_UI nodes by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44620](https://github.com/BerriAI/litellm/pull/44620)
- feat(ui): declare shared search operators and flush queries on blur by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44665](https://github.com/BerriAI/litellm/pull/44665)
- fix(lens): make tool steps and conversations readable by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44645](https://github.com/BerriAI/litellm/pull/44645)
- fix(ui): send null instead of $0 when a team's member default budget is cleared by [@&#8203;ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#&#8203;44644](https://github.com/BerriAI/litellm/pull/44644)
- test(integration): azure_ai-route basic translation cases for six Claude models on messages, chat completions and responses by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44658](https://github.com/BerriAI/litellm/pull/44658)
- test(integration): basic translation cases for the openai_responses route by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44663](https://github.com/BerriAI/litellm/pull/44663)
- feat(lens): analyze trace workspaces with confined Python and compaction by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44640](https://github.com/BerriAI/litellm/pull/44640)
- fix(vertex-ai): add deprecation_date to gemini-3.1-flash-lite-image by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44639](https://github.com/BerriAI/litellm/pull/44639)
- fix(bedrock): add priority and flex prices for Grok 4.3, 4.6, 4.7 and Kimi K3 by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44670](https://github.com/BerriAI/litellm/pull/44670)
- test(integration): pin the Claude-tokenizer recount for streamed claude-sonnet-5 no-usage cases by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44643](https://github.com/BerriAI/litellm/pull/44643)
- feat(proxy): embed enterprise LiteAdmin MCP in LiteLLM images by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;44610](https://github.com/BerriAI/litellm/pull/44610)
- test(integration): basic translation cases for the azure route by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44672](https://github.com/BerriAI/litellm/pull/44672)
- test(integration): assert the Messages API health probe on Mantle Claude by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44612](https://github.com/BerriAI/litellm/pull/44612)
- refactor(rust): rename litellm-framing crate to litellm-framer by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44683](https://github.com/BerriAI/litellm/pull/44683)
- test(integration): basic translation cases for the gemini route by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44662](https://github.com/BerriAI/litellm/pull/44662)
- test(integration): basic translation cases for the openai route by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44667](https://github.com/BerriAI/litellm/pull/44667)
- refactor(rust): derive string enum serde through strum and serde_with by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44675](https://github.com/BerriAI/litellm/pull/44675)
- fix(spend-tracking): stop caching failed spend-log metadata lookups as confirmed misses by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43560](https://github.com/BerriAI/litellm/pull/43560)
- fix(proxy): let a listed team alias win over a same-named key alias in the customer model check by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44677](https://github.com/BerriAI/litellm/pull/44677)
- chore: move PR template to PULL_REQUEST_TEMPLATE/general.md, add rust.md by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44693](https://github.com/BerriAI/litellm/pull/44693)
- fix(router): retry a /v1/messages stream the provider drops before the first content chunk by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44276](https://github.com/BerriAI/litellm/pull/44276)
- fix(lens): persist final coverage with source diagnostics by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44682](https://github.com/BerriAI/litellm/pull/44682)
- test(integration): point the scratch upgraded proxy's read replica at the scratch database by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44613](https://github.com/BerriAI/litellm/pull/44613)
- fix(lens): show investigation findings for agent traces by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44696](https://github.com/BerriAI/litellm/pull/44696)
- fix(build): rebuild the Rust bridge when uv sync sees Rust sources change by [@&#8203;nate-berri](https://github.com/nate-berri) in [#&#8203;44708](https://github.com/BerriAI/litellm/pull/44708)
- fix(lens): preserve span timestamps in investigation evidence by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44702](https://github.com/BerriAI/litellm/pull/44702)
- ci: split slow unit shards and build the Rust bridge once per run by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44622](https://github.com/BerriAI/litellm/pull/44622)
- test(rust_bridge): expect PartRow start_time and end_time as required LENS_CONTENT fields by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44719](https://github.com/BerriAI/litellm/pull/44719)
- chore(deps): bump langgraph-sdk from 0.4.2 to 0.4.4 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;44713](https://github.com/BerriAI/litellm/pull/44713)
- feat: add Reka as an OpenAI-compatible provider by [@&#8203;anniejeng](https://github.com/anniejeng) in [#&#8203;44278](https://github.com/BerriAI/litellm/pull/44278)
- feat(ui): support native decisions endpoint in decision playground by [@&#8203;moyai-berriai](https://github.com/moyai-berriai)\[bot] in [#&#8203;44664](https://github.com/BerriAI/litellm/pull/44664)
- fix(lens): reconstruct native coding agent conversations by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44711](https://github.com/BerriAI/litellm/pull/44711)
- fix(responses): honor request cache controls on chat completions bridged to the Responses API by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44676](https://github.com/BerriAI/litellm/pull/44676)
- fix(deps): bump source-map-js, smol-toml, mako, multidict and werkzeug for OSV advisories by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44728](https://github.com/BerriAI/litellm/pull/44728)
- test(integration): rename translation runner run to assert_translation by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44741](https://github.com/BerriAI/litellm/pull/44741)
- feat(lens): show investigation names in findings table by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44753](https://github.com/BerriAI/litellm/pull/44753)
- feat(ui): configure cache-aware auto routing by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;43396](https://github.com/BerriAI/litellm/pull/43396)
- fix(lens): bound result recovery and preserve partial results by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44692](https://github.com/BerriAI/litellm/pull/44692)
- feat(prometheus): cap series per metric for every labeled metric by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44420](https://github.com/BerriAI/litellm/pull/44420)
- feat(lens): type to filter the traces agent dropdown by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44745](https://github.com/BerriAI/litellm/pull/44745)
- test(lens): use current worker protocol in billing integration by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44760](https://github.com/BerriAI/litellm/pull/44760)
- feat(model_prices): add chatgpt subscription rows for the gpt-6 family by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44758](https://github.com/BerriAI/litellm/pull/44758)
- test(e2e): assert the sibling-replica cooldown through the router by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44706](https://github.com/BerriAI/litellm/pull/44706)
- test(integration): basic translation cases for the bedrock_invoke route by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44752](https://github.com/BerriAI/litellm/pull/44752)
- fix(gemini): stop replaying thinking block signatures to Gemini by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44661](https://github.com/BerriAI/litellm/pull/44661)
- fix(ci): namespace claude session ids in tracing seeds and allowlist /v1/logs on backend by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44761](https://github.com/BerriAI/litellm/pull/44761)
- fix(proxy): judge the free-model budget waiver by the group an alias routes to by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44638](https://github.com/BerriAI/litellm/pull/44638)
- test(integration): basic translation cases for the vertex_ai route by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44751](https://github.com/BerriAI/litellm/pull/44751)
- fix(vertex_ai): apply regional endpoint uplift on image generation cost path by [@&#8203;nate-berri](https://github.com/nate-berri) in [#&#8203;44679](https://github.com/BerriAI/litellm/pull/44679)
- refactor(tests): extract Rust cache test split from [#&#8203;44714](https://github.com/BerriAI/litellm/issues/44714) by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44780](https://github.com/BerriAI/litellm/pull/44780)
- feat(proxy): cap batch file records, daily batch uploads, and per-file downloads by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43632](https://github.com/BerriAI/litellm/pull/43632)
- feat(lens): add copy link button to trace header by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44749](https://github.com/BerriAI/litellm/pull/44749)
- test(integration): keep scripted upstream connections open past the proxy's keepalive by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44695](https://github.com/BerriAI/litellm/pull/44695)
- test(integration): basic translation cases for the bedrock_mantle route by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44750](https://github.com/BerriAI/litellm/pull/44750)
- fix(chatgpt,github_copilot): refuse device-code login inside an event loop or worker thread by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;39585](https://github.com/BerriAI/litellm/pull/39585)
- feat(bedrock): add glm 5.3 cross-region rows and nova 2.5 sonic by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44710](https://github.com/BerriAI/litellm/pull/44710)
- fix(responses): honor caller stream flag when provider forces SSE (internal copy of [#&#8203;34095](https://github.com/BerriAI/litellm/issues/34095)) by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;41235](https://github.com/BerriAI/litellm/pull/41235)
- refactor(cache): remove dead Cache.\_native_cache runtime path by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44785](https://github.com/BerriAI/litellm/pull/44785)
- fix(vertex_ai): add regional endpoint uplift to gemini-3.1-flash-image by [@&#8203;nate-berri](https://github.com/nate-berri) in [#&#8203;44673](https://github.com/BerriAI/litellm/pull/44673)
- feat(ui): lead the Lens investigation detail with a run report by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44786](https://github.com/BerriAI/litellm/pull/44786)
- fix(ui): polish Lens runs loading, reload, and time range menu by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44789](https://github.com/BerriAI/litellm/pull/44789)
- refactor(types): move SpanAttributes, SpecialHeaders and AllowedModelRegion out of proxy.\_types by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44717](https://github.com/BerriAI/litellm/pull/44717)
- refactor(types): import proxy-only types under TYPE_CHECKING in SDK modules by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44740](https://github.com/BerriAI/litellm/pull/44740)
- refactor(logging): load enterprise alerting loggers lazily so import litellm skips proxy types by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44762](https://github.com/BerriAI/litellm/pull/44762)
- perf(types): defer pydantic schema builds via shared LiteLLMBaseModel by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44720](https://github.com/BerriAI/litellm/pull/44720)
- fix(router): price a model group from the deployments that serve it by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44732](https://github.com/BerriAI/litellm/pull/44732)
- refactor: remove fresh tech debt from the 2026-10-05 window by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44821](https://github.com/BerriAI/litellm/pull/44821)
- fix(azure): add gpt-6-sol priority processing prices by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44829](https://github.com/BerriAI/litellm/pull/44829)
- refactor(types): replace Any with proven types in 6 files by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44491](https://github.com/BerriAI/litellm/pull/44491)
- test: deflake the JEV classifier select and two router tests that inherited leaked state by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44840](https://github.com/BerriAI/litellm/pull/44840)
- refactor(rust): rename litellm-core to litellm-inference by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44802](https://github.com/BerriAI/litellm/pull/44802)
- refactor(rust): extract inference-transcription crate by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44809](https://github.com/BerriAI/litellm/pull/44809)
- refactor(rust): extract inference-responses crate by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44811](https://github.com/BerriAI/litellm/pull/44811)
- refactor(rust): extract inference-messages crate by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44818](https://github.com/BerriAI/litellm/pull/44818)
- refactor(rust): extract inference-chat crate by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44827](https://github.com/BerriAI/litellm/pull/44827)
- refactor(rust): extract inference-ocr crate by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44832](https://github.com/BerriAI/litellm/pull/44832)
- chore(rust): prune inference deps and rewrite layering docs by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44836](https://github.com/BerriAI/litellm/pull/44836)
- fix(otel): name an Arize project on every OTel v2 Arize export by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44605](https://github.com/BerriAI/litellm/pull/44605)
- fix(otel): gate the Arize OTel v2 exporter on operator credentials by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44596](https://github.com/BerriAI/litellm/pull/44596)
- fix(otel): honor per-team Arize sampling rates in OTel v2 fan-out by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44595](https://github.com/BerriAI/litellm/pull/44595)
- fix(model_prices): gemini deep research input limits, vertex flash retirement dates, azure data zone gpt-6.1-sol pricing by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44633](https://github.com/BerriAI/litellm/pull/44633)
- refactor(types): replace Any with proven types in 157 files by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;44798](https://github.com/BerriAI/litellm/pull/44798)
- fix(sap): correctly handle cache_control by [@&#8203;yamaceay](https://github.com/yamaceay) in [#&#8203;39122](https://github.com/BerriAI/litellm/pull/39122)
- fix(responses): stop SDK retries nesting under router retries, and unbreak CircleCI integration tests by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44791](https://github.com/BerriAI/litellm/pull/44791)
- fix(cost-map): update together_ai Kimi-K3 and Qwen3.8-Flash prices to published rates by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44864](https://github.com/BerriAI/litellm/pull/44864)
- fix(ui): restore key activity search to the top of the tab and add model activity search by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44521](https://github.com/BerriAI/litellm/pull/44521)
- refactor(rust): extract inference-testing crate by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44873](https://github.com/BerriAI/litellm/pull/44873)
- fix(ui): read MCP submission rules from bare-array /config/list response by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44648](https://github.com/BerriAI/litellm/pull/44648)
- chore(model_prices): remove malformed, duplicate and decommissioned palm cost map entries by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44880](https://github.com/BerriAI/litellm/pull/44880)
- fix(azure): add model router flat fee to azure provider cost tracking by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44876](https://github.com/BerriAI/litellm/pull/44876)
- chore(pricing): add azure model-router and whisper rows by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44872](https://github.com/BerriAI/litellm/pull/44872)
- fix(security): remove the publicly known master key from the repo by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44718](https://github.com/BerriAI/litellm/pull/44718)
- chore(prices): add gemini/gemini-nano-banana-2.1 from the Gemini pricing page by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44868](https://github.com/BerriAI/litellm/pull/44868)
- fix(ci): skip the generated dashboard bundle in the master key guard by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44890](https://github.com/BerriAI/litellm/pull/44890)
- fix(model_prices): correct supported_endpoints on gemini and vertex image rows by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44891](https://github.com/BerriAI/litellm/pull/44891)
- feat(vertex-ai): add gemini-nano-banana-2.1 and Nano Banana 2 priority pricing by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44892](https://github.com/BerriAI/litellm/pull/44892)
- fix(lens): reuse trace reviews and consolidate findings across runs by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44778](https://github.com/BerriAI/litellm/pull/44778)
- fix(lens): paginate visible conversation entries by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44878](https://github.com/BerriAI/litellm/pull/44878)
- refactor(rust_…
rogerrum pushed a commit to rogerrum/k8s-gitops that referenced this pull request Oct 25, 2026
….106.4 ) (#3677)

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 | `v1.105.1` → `v1.106.4` |

---

> ⚠️ **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.106.4`](https://github.com/BerriAI/litellm/releases/tag/v1.106.4)

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

#### Verify this release

```bash
cosign verify \
  --key https://raw.githubusercontent.com/BerriAI/litellm/e82a3c646908ba0a6ee0beddc4310d7a6cac4065/cosign.pub \
  ghcr.io/berriai/litellm:v1.106.4
```

Same command for `litellm-database`, `litellm-non_root` and the `docker.io/litellm/*` images

#### What's new in 1.106.4

3 PRs. 2 fixed. No action needed to upgrade

##### Changes

- **Deployment:** Fixed the proxy sometimes exiting on startup with an `ImportError` when it cannot reach the remote model cost map, broken since v1.104.0 ([#&#8203;46711](https://github.com/BerriAI/litellm/issues/46711)) <sup>Also in [1.104.7](https://github.com/BerriAI/litellm/releases/tag/v1.104.7), [1.105.5](https://github.com/BerriAI/litellm/releases/tag/v1.105.5)</sup>
- **Deployment:** Fixed image scans flagging brotli 1.2.0, the emSign ECC Root CA - G3 and unused lockfile packages ([#&#8203;48283](https://github.com/BerriAI/litellm/issues/48283), [#&#8203;48300](https://github.com/BerriAI/litellm/issues/48300))

***

Backport [#&#8203;48294](https://github.com/BerriAI/litellm/issues/48294) · [Full changelog](https://github.com/BerriAI/litellm/compare/v1.106.3...v1.106.4)

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

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

> \[!IMPORTANT]
> **The image-signing key has changed.** Starting with this release, every Docker image and Helm chart is signed with the new cosign key from commit [`e82a3c6`](https://github.com/BerriAI/litellm/commit/e82a3c646908ba0a6ee0beddc4310d7a6cac4065). Verifying with the previous key from commit `0112e53` will fail.
>
> Update anything that pins the old `cosign.pub`: `cosign verify` scripts, CI checks, and admission policies such as Kyverno, Sigstore policy-controller or Connaisseur.
>
> New `cosign.pub` SHA-256: `e3fe3e08c44b16407fe0b37c43b4f8b603b3a0f4ee74c29e647bc022d762c2c0`

#### Verify this release

```bash
cosign verify \
  --key https://raw.githubusercontent.com/BerriAI/litellm/e82a3c646908ba0a6ee0beddc4310d7a6cac4065/cosign.pub \
  ghcr.io/berriai/litellm:v1.106.3
```

Same command for `litellm-database`, `litellm-non_root` and the `docker.io/litellm/*` images

#### What's new in 1.106.3

4 PRs. 1 changed, 1 removed. 1 needs action

##### Action required

- **Deployment:** Verify image signatures with the `cosign.pub` from commit `e82a3c6`, the previous key no longer matches ([#&#8203;48103](https://github.com/BerriAI/litellm/issues/48103)) <sup>Also in [1.103.8](https://github.com/BerriAI/litellm/releases/tag/v1.103.8), [1.104.6](https://github.com/BerriAI/litellm/releases/tag/v1.104.6), [1.105.4](https://github.com/BerriAI/litellm/releases/tag/v1.105.4)</sup>

##### Changes

- **Deployment:** Removed the eMudhra root CA from every certificate bundle the SDK, proxy and Docker images trust ([#&#8203;47670](https://github.com/BerriAI/litellm/issues/47670), [#&#8203;47969](https://github.com/BerriAI/litellm/issues/47969), [#&#8203;48139](https://github.com/BerriAI/litellm/issues/48139)) <sup>Also in [1.103.8](https://github.com/BerriAI/litellm/releases/tag/v1.103.8), [1.104.6](https://github.com/BerriAI/litellm/releases/tag/v1.104.6), [1.105.4](https://github.com/BerriAI/litellm/releases/tag/v1.105.4)</sup>
- **Deployment:** Changed the cosign key that signs Docker images and Helm charts to the one from commit `e82a3c6` ([#&#8203;48103](https://github.com/BerriAI/litellm/issues/48103)) <sup>Also in [1.103.8](https://github.com/BerriAI/litellm/releases/tag/v1.103.8), [1.104.6](https://github.com/BerriAI/litellm/releases/tag/v1.104.6), [1.105.4](https://github.com/BerriAI/litellm/releases/tag/v1.105.4)</sup>

***

Backport [#&#8203;48078](https://github.com/BerriAI/litellm/issues/48078) · Backport [#&#8203;48142](https://github.com/BerriAI/litellm/issues/48142) · [Full changelog](https://github.com/BerriAI/litellm/compare/v1.106.2...v1.106.3)

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

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

#### Verify Docker Image Signature

All LiteLLM Docker images are signed with [cosign](https://docs.sigstore.dev/cosign/overview/). Every release is signed with the same key introduced in [commit `0112e53`](https://github.com/BerriAI/litellm/commit/0112e53046018d726492c814b3644b7d376029d0).

**Verify using the pinned commit hash (recommended):**

A commit hash is cryptographically immutable, so this is the strongest way to ensure you are using the original signing key:

```bash
cosign verify \
  --key https://raw.githubusercontent.com/BerriAI/litellm/0112e53046018d726492c814b3644b7d376029d0/cosign.pub \
  ghcr.io/berriai/litellm:v1.106.2
```

**Verify using the release tag (convenience):**

Tags are protected in this repository and resolve to the same key. This option is easier to read but relies on tag protection rules:

```bash
cosign verify \
  --key https://raw.githubusercontent.com/BerriAI/litellm/v1.106.2/cosign.pub \
  ghcr.io/berriai/litellm:v1.106.2
```

Expected output:

```
The following checks were performed on each of these signatures:
  - The cosign claims were validated
  - The signatures were verified against the specified public key
```

***

#### What's Changed

- fix(count_tokens): backport Bedrock Mantle 404 fallback to stable/1.106.x by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;47742](https://github.com/BerriAI/litellm/pull/47742)
- fix(batches)!: backport P0 batch-cost, pricing and translation fixes to stable/1.106.x for v1.106.2 by [@&#8203;mrinal-berri](https://github.com/mrinal-berri) in [#&#8203;47736](https://github.com/BerriAI/litellm/pull/47736)
- fix(proxy): backport LIT-145 spend and cost fixes to stable/1.106.x for v1.106.2 by [@&#8203;kerry-berri](https://github.com/kerry-berri) in [#&#8203;47695](https://github.com/BerriAI/litellm/pull/47695)

**Full Changelog**: <https://github.com/BerriAI/litellm/compare/v1.106.1...v1.106.2>

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

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

#### Verify this release

```bash
cosign verify \
  --key https://raw.githubusercontent.com/BerriAI/litellm/0112e53046018d726492c814b3644b7d376029d0/cosign.pub \
  ghcr.io/berriai/litellm:v1.106.1
```

Same command for `litellm-database`, `litellm-non_root` and the `docker.io/litellm/*` images

#### What's new in 1.106.1

9 PRs. 6 fixed. 1 needs action

##### Action required

- **Vector stores:** Run `db_scripts/strip_vector_store_internal_metadata.py` to fix stores created before this release ([#&#8203;47021](https://github.com/BerriAI/litellm/issues/47021))

##### Changes

- **Anthropic:** Fixed signed thinking blocks and `thinking.block_binding` being dropped on multi-turn requests ([#&#8203;41362](https://github.com/BerriAI/litellm/issues/41362), [#&#8203;46342](https://github.com/BerriAI/litellm/issues/46342)) <sup>Also in [1.105.2](https://github.com/BerriAI/litellm/releases/tag/v1.105.2)</sup>
- **Chat completions:** Fixed tool calls landing on `choices[1]` with gpt-5.4+ models, broken since v1.97.0 ([#&#8203;46099](https://github.com/BerriAI/litellm/issues/46099)) <sup>Also in [1.105.2](https://github.com/BerriAI/litellm/releases/tag/v1.105.2)</sup>
- **Batches and files:** Fixed 403 when team keys retrieve, cancel or download their own batches ([#&#8203;47067](https://github.com/BerriAI/litellm/issues/47067)) <sup>Also in [1.105.2](https://github.com/BerriAI/litellm/releases/tag/v1.105.2)</sup>
- **Vector stores:** Fixed HTTP 400 on metadata updates caused by keys the proxy added to the store ([#&#8203;47021](https://github.com/BerriAI/litellm/issues/47021))
- **Token counting:** Fixed undercounted PDFs, system prompts and tools, and rejected Google `countTokens` requests ([#&#8203;47389](https://github.com/BerriAI/litellm/issues/47389), [#&#8203;47446](https://github.com/BerriAI/litellm/issues/47446), [#&#8203;47454](https://github.com/BerriAI/litellm/issues/47454)) <sup>Also in [1.104.4](https://github.com/BerriAI/litellm/releases/tag/v1.104.4), [1.105.2](https://github.com/BerriAI/litellm/releases/tag/v1.105.2)</sup>
- **MCP:** Fixed `Tool not found` when calling a bare tool name on `/{server}/mcp`, broken since v1.103.0 ([#&#8203;46225](https://github.com/BerriAI/litellm/issues/46225))

***

Backport [#&#8203;47517](https://github.com/BerriAI/litellm/issues/47517) · [Full changelog](https://github.com/BerriAI/litellm/compare/v1.106.0...v1.106.1)

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

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

#### Verify Docker Image Signature

All LiteLLM Docker images are signed with [cosign](https://docs.sigstore.dev/cosign/overview/). Every release is signed with the same key introduced in [commit `0112e53`](https://github.com/BerriAI/litellm/commit/0112e53046018d726492c814b3644b7d376029d0).

**Verify using the pinned commit hash (recommended):**

A commit hash is cryptographically immutable, so this is the strongest way to ensure you are using the original signing key:

```bash
cosign verify \
  --key https://raw.githubusercontent.com/BerriAI/litellm/0112e53046018d726492c814b3644b7d376029d0/cosign.pub \
  ghcr.io/berriai/litellm:v1.106.0
```

**Verify using the release tag (convenience):**

Tags are protected in this repository and resolve to the same key. This option is easier to read but relies on tag protection rules:

```bash
cosign verify \
  --key https://raw.githubusercontent.com/BerriAI/litellm/v1.106.0/cosign.pub \
  ghcr.io/berriai/litellm:v1.106.0
```

Expected output:

```
The following checks were performed on each of these signatures:
  - The cosign claims were validated
  - The signatures were verified against the specified public key
```

***

#### What's Changed

- test(mcp): fire MCP client test deadlines on conditions instead of wall-clock time by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44166](https://github.com/BerriAI/litellm/pull/44166)
- fix(cost-map): add OpenAI TTS and GPT-5.x deprecation dates by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44175](https://github.com/BerriAI/litellm/pull/44175)
- fix(tracing): unify ClickHouse storage configuration by [@&#8203;yujonglee-berri](https://github.com/yujonglee-berri) in [#&#8203;43941](https://github.com/BerriAI/litellm/pull/43941)
- feat(docker): one-command quickstart that starts the gateway, Postgres, and the admin UI by [@&#8203;misbahsy](https://github.com/misbahsy) in [#&#8203;43673](https://github.com/BerriAI/litellm/pull/43673)
- fix(lens): simplify the example investigation preview by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44123](https://github.com/BerriAI/litellm/pull/44123)
- chore(helm): drop migrationJob values the chart never reads by [@&#8203;Bernedotcom2312](https://github.com/Bernedotcom2312) in [#&#8203;42141](https://github.com/BerriAI/litellm/pull/42141)
- fix(ui): register tencent in the Add Model provider dropdown by [@&#8203;jimaldon](https://github.com/jimaldon) in [#&#8203;40924](https://github.com/BerriAI/litellm/pull/40924)
- test: remove 130 legacy tests owned by stronger unit proofs by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44157](https://github.com/BerriAI/litellm/pull/44157)
- feat(mcp)!: disable stdio MCP servers by default by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;44066](https://github.com/BerriAI/litellm/pull/44066)
- fix(proxy): exit when DATABASE_URL is set but the Prisma toolchain is missing by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44207](https://github.com/BerriAI/litellm/pull/44207)
- fix(proxy): preserve lifespan state across all entrypoints by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;44214](https://github.com/BerriAI/litellm/pull/44214)
- fix(oci): resolve the GenAI endpoint realm from the compartment OCID instead of hardcoding oraclecloud.com by [@&#8203;fede-kamel](https://github.com/fede-kamel) in [#&#8203;43180](https://github.com/BerriAI/litellm/pull/43180)
- fix(chatgpt): preserve requested service tier in Responses calls by [@&#8203;SteffanWolter](https://github.com/SteffanWolter) in [#&#8203;40108](https://github.com/BerriAI/litellm/pull/40108)
- fix(ui): leave unset callback select params out of the save payload by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44213](https://github.com/BerriAI/litellm/pull/44213)
- fix(proxy-extras): hand libpq a root cert, not Prisma's sslcert, when the migration job builds indexes by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44203](https://github.com/BerriAI/litellm/pull/44203)
- feat: add Laya gateway and OSS classifier providers by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;43626](https://github.com/BerriAI/litellm/pull/43626)
- fix(auto-router): count usage savings by selected UTC request day by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;44115](https://github.com/BerriAI/litellm/pull/44115)
- fix(lens): preserve framework agent names and GenAI message content by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44218](https://github.com/BerriAI/litellm/pull/44218)
- feat(jwt): auto_register_map_existing_key maps JWT to the user's existing virtual key by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;42375](https://github.com/BerriAI/litellm/pull/42375)
- feat(ui): select Laya for OSS classification by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;43768](https://github.com/BerriAI/litellm/pull/43768)
- fix(otel): tolerate non-dict callback_settings.otel and ignore bare EXCLUDED_SERVICES env by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44086](https://github.com/BerriAI/litellm/pull/44086)
- fix(proxy): carry key, team and project tags into pass-through spend logs by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;42662](https://github.com/BerriAI/litellm/pull/42662)
- feat(ui): add System One (Jev) tab to the playground by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44043](https://github.com/BerriAI/litellm/pull/44043)
- chore: bump litellm-proxy-extras 0.4.104 -> 0.4.105 by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44234](https://github.com/BerriAI/litellm/pull/44234)
- chore(prices): add xAI grok-voice-transcribe-1.0 deprecation date by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44237](https://github.com/BerriAI/litellm/pull/44237)
- fix(exa): fall back to highlights/summary when text is missing by [@&#8203;wakqasahmed](https://github.com/wakqasahmed) in [#&#8203;42213](https://github.com/BerriAI/litellm/pull/42213)
- fix(scim): apply path-less group PATCH ops instead of storing them under an empty metadata key by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43978](https://github.com/BerriAI/litellm/pull/43978)
- fix(lens): run investigations with configured wildcard models by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44233](https://github.com/BerriAI/litellm/pull/44233)
- fix(ui): shrink the sidebar logo so it stops outweighing page titles by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;44247](https://github.com/BerriAI/litellm/pull/44247)
- feat(tracing): support claude agent sdk traces with agent name, logo and chat content by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44248](https://github.com/BerriAI/litellm/pull/44248)
- fix(ui): make model leaderboard chart bars wide and readable by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44249](https://github.com/BerriAI/litellm/pull/44249)
- test: repair stale and polluting tests red on scheduled main CI by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;44229](https://github.com/BerriAI/litellm/pull/44229)
- feat(traces): type queries and align read access with log visibility by [@&#8203;yujonglee-berri](https://github.com/yujonglee-berri) in [#&#8203;44228](https://github.com/BerriAI/litellm/pull/44228)
- chore(ui): untrack tsconfig.tsbuildinfo and gitignore \*.tsbuildinfo by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44261](https://github.com/BerriAI/litellm/pull/44261)
- refactor(mcp): extract upstream preparation and support modern clients by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;44232](https://github.com/BerriAI/litellm/pull/44232)
- fix(lens): default to traces and reopen span details by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44260](https://github.com/BerriAI/litellm/pull/44260)
- fix(bedrock): surface unrecognized converse-stream event frames instead of an empty turn by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44112](https://github.com/BerriAI/litellm/pull/44112)
- perf(proxy): batch daily model usage writes instead of upserting per request by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44243](https://github.com/BerriAI/litellm/pull/44243)
- test(integration): opt the config pass-through spend-log case into auth by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;44265](https://github.com/BerriAI/litellm/pull/44265)
- test: fix three order-dependent and timing-flaky tests by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;44271](https://github.com/BerriAI/litellm/pull/44271)
- fix(ui): make the Lens traces refresh button always clickable by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44252](https://github.com/BerriAI/litellm/pull/44252)
- feat(lens): add sample previews and improve setup and worker feedback by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44268](https://github.com/BerriAI/litellm/pull/44268)
- chore(openrouter): sync prices, limits and deprecation dates from the models API by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44287](https://github.com/BerriAI/litellm/pull/44287)
- refactor(traces): type the ClickHouse query help response by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44285](https://github.com/BerriAI/litellm/pull/44285)
- fix(proxy): stop queued registry read-throughs spending the resync budget by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;44277](https://github.com/BerriAI/litellm/pull/44277)
- feat(lens): show investigation progress as one staged bar with time left by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44301](https://github.com/BerriAI/litellm/pull/44301)
- refactor(ui): compose dashboard pages with shared layouts by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44306](https://github.com/BerriAI/litellm/pull/44306)
- fix(proxy): share ownership permissions for spend logs and traces by [@&#8203;yujonglee-berri](https://github.com/yujonglee-berri) in [#&#8203;44239](https://github.com/BerriAI/litellm/pull/44239)
- fix(proxy-extras): retry P3009 when a peer already recovered the named migration row by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44283](https://github.com/BerriAI/litellm/pull/44283)
- fix(bedrock): price amazon nova 2 pro preview at the standard tier by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44302](https://github.com/BerriAI/litellm/pull/44302)
- feat: add Bespoke Nimble gateway and OSS classifier support by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;44246](https://github.com/BerriAI/litellm/pull/44246)
- fix(anthropic): stop repeating streamed thinking text in the signature chunk by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44127](https://github.com/BerriAI/litellm/pull/44127)
- fix(responses): drop bridge-minted reasoning items from OpenAI replays by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44132](https://github.com/BerriAI/litellm/pull/44132)
- feat(bedrock): drop lookaround regex patterns from tool schemas for Converse models that reject them by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44138](https://github.com/BerriAI/litellm/pull/44138)
- feat(bedrock): serve gpt-5.6+ chat completions natively by default, with chat_completions/ opt-in for gpt-oss and grok by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44307](https://github.com/BerriAI/litellm/pull/44307)
- feat(lens): issue briefs with problem, user goal, outcome and test cases by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44311](https://github.com/BerriAI/litellm/pull/44311)
- fix(responses): keep gpt-5.4/5.5 tool calls on chat and merge bridged tool calls into one choice by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44295](https://github.com/BerriAI/litellm/pull/44295)
- fix(cost): price rule-only model names at the deployment's rate by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44144](https://github.com/BerriAI/litellm/pull/44144)
- fix(auto-router): attribute router-day savings without spend logs or a session by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;44226](https://github.com/BerriAI/litellm/pull/44226)
- test(integration): let run.py select cells by pytest node id by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44319](https://github.com/BerriAI/litellm/pull/44319)
- fix(bedrock): honor unsupported reasoning effort levels for OpenAI GPT models by [@&#8203;Aasif-Multani](https://github.com/Aasif-Multani) in [#&#8203;44183](https://github.com/BerriAI/litellm/pull/44183)
- feat(lens): add preset watch-for checks to investigation setup by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44313](https://github.com/BerriAI/litellm/pull/44313)
- fix(proxy): use OpenAI workload identity federation tokens on /openai_passthrough by [@&#8203;6matt](https://github.com/6matt) in [#&#8203;44140](https://github.com/BerriAI/litellm/pull/44140)
- feat(interactions): durable cross-pod settlement for background interaction billing by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;41955](https://github.com/BerriAI/litellm/pull/41955)
- fix(streaming): keep the finish_reason of the provider's last content chunk in the logged response by [@&#8203;joeym82956](https://github.com/joeym82956) in [#&#8203;44318](https://github.com/BerriAI/litellm/pull/44318)
- fix(bedrock): send the anthropic-workspace-id header to Bedrock Mantle by [@&#8203;kohjunhao](https://github.com/kohjunhao) in [#&#8203;44173](https://github.com/BerriAI/litellm/pull/44173)
- fix(guardrails): run unified guardrails on /v1/images/edits by [@&#8203;michelligabriele](https://github.com/michelligabriele) in [#&#8203;44195](https://github.com/BerriAI/litellm/pull/44195)
- feat(scaleway): add rerank support by [@&#8203;ankit373](https://github.com/ankit373) in [#&#8203;44160](https://github.com/BerriAI/litellm/pull/44160)
- fix(vector_stores): return managed file ids from vector store file list by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43800](https://github.com/BerriAI/litellm/pull/43800)
- fix(proxy): return 4xx instead of 500 for missing required params, invalid pagination and unknown ids by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43787](https://github.com/BerriAI/litellm/pull/43787)
- fix(guardrails): encrypt guardrail litellm_params secrets at rest by [@&#8203;yucheng-berri](https://github.com/yucheng-berri) in [#&#8203;43627](https://github.com/BerriAI/litellm/pull/43627)
- fix(search_tools): encrypt search tool litellm_params at rest by [@&#8203;yucheng-berri](https://github.com/yucheng-berri) in [#&#8203;43631](https://github.com/BerriAI/litellm/pull/43631)
- feat(roi): add GitLab sources and branch cost attribution by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44324](https://github.com/BerriAI/litellm/pull/44324)
- fix(model-prices): mark azure us/eu responses-only models as mode responses by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44323](https://github.com/BerriAI/litellm/pull/44323)
- revert(cost): revert "fix(cost): price rule-only model names at the deployment's rate" ([#&#8203;44144](https://github.com/BerriAI/litellm/issues/44144)) by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44335](https://github.com/BerriAI/litellm/pull/44335)
- fix(proxy): stamp the client alias on a copy of each streamed chunk so pricing sees the deployment model by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44341](https://github.com/BerriAI/litellm/pull/44341)
- revert(responses): revert "fix(responses): keep gpt-5.4/5.5 tool calls on chat and merge bridged tool calls into one choice" ([#&#8203;44295](https://github.com/BerriAI/litellm/issues/44295)) by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44344](https://github.com/BerriAI/litellm/pull/44344)
- refactor(dashboard): migrate to zod 4 and openai 6 by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44345](https://github.com/BerriAI/litellm/pull/44345)
- feat(ui): move LiteAdmin into the header with a docked side panel by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;44293](https://github.com/BerriAI/litellm/pull/44293)
- fix(responses): merge bridged tool calls into the same choice as the text by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44346](https://github.com/BerriAI/litellm/pull/44346)
- feat(ui): improve trace inspection and ROI estimation by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44351](https://github.com/BerriAI/litellm/pull/44351)
- refactor(ui): reorganize Lens dashboard components by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44354](https://github.com/BerriAI/litellm/pull/44354)
- refactor(ui): inject Lens backends as services instead of a fake HTTP client by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44369](https://github.com/BerriAI/litellm/pull/44369)
- refactor: clean up fresh tech debt from 2026-10-02 by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44362](https://github.com/BerriAI/litellm/pull/44362)
- feat(traces): tracing development seed by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44363](https://github.com/BerriAI/litellm/pull/44363)
- refactor(types): replace Any with proven types in 4 files by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44370](https://github.com/BerriAI/litellm/pull/44370)
- build(deps): suppress unfixed braces GHSA-vfj7-8cjw-p6xm to clear osv-scan by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44347](https://github.com/BerriAI/litellm/pull/44347)
- fix(azure): add MAI-Image max_input_tokens from models sold directly page by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44375](https://github.com/BerriAI/litellm/pull/44375)
- fix(proxy): emit postgres service spans only on real DB reads in auth cache helpers by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44148](https://github.com/BerriAI/litellm/pull/44148)
- fix(otel): nest cache spans under their operation and name service spans by purpose by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44150](https://github.com/BerriAI/litellm/pull/44150)
- fix(otel): name postgres service spans by operation and table by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44240](https://github.com/BerriAI/litellm/pull/44240)
- perf(proxy): stop prompt-cache eligibility from tokenizing the whole conversation by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44221](https://github.com/BerriAI/litellm/pull/44221)
- fix(proxy): keep the database error when the log_db_metrics failure hook raises by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44383](https://github.com/BerriAI/litellm/pull/44383)
- feat(azure): add azure_ai/kimi-k2-thinking from Azure Kimi pricing page by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44382](https://github.com/BerriAI/litellm/pull/44382)
- feat(harness): add Harness.TOOL_LOOP, a minimal in-process tool-calling loop by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44391](https://github.com/BerriAI/litellm/pull/44391)
- feat(decisions): add unified /v1/decisions endpoint for Jev-compatible providers by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44236](https://github.com/BerriAI/litellm/pull/44236)
- fix(lens): paginate trace reads within ClickHouse limits by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44384](https://github.com/BerriAI/litellm/pull/44384)
- feat(lens): live dot field timeline and full-screen traces view by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44390](https://github.com/BerriAI/litellm/pull/44390)
- feat(ui): make LiteAdmin enterprise-only by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;44399](https://github.com/BerriAI/litellm/pull/44399)
- fix(bedrock): stop emitting Converse cachePoint blocks for Kimi K3 by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44292](https://github.com/BerriAI/litellm/pull/44292)
- test(cost): pin OpenAI reported web search count with mixed actions by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44414](https://github.com/BerriAI/litellm/pull/44414)
- fix(ci): give the pass-through auth regression test a real FastAPI app by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44403](https://github.com/BerriAI/litellm/pull/44403)
- fix(azure): add azure_ai/flux.2-pro input token limit from the models sold directly page by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44405](https://github.com/BerriAI/litellm/pull/44405)
- fix(lens): batch run reads and reset trace pagination by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44398](https://github.com/BerriAI/litellm/pull/44398)
- fix(lens): preserve full trace access and expose investigation failures by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44406](https://github.com/BerriAI/litellm/pull/44406)
- feat: add make lens-dev for one-command lens local dev by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44413](https://github.com/BerriAI/litellm/pull/44413)
- fix(bedrock): honor the per-request timeout on Converse and Invoke streaming (internal copy of [#&#8203;38210](https://github.com/BerriAI/litellm/issues/38210)) by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44134](https://github.com/BerriAI/litellm/pull/44134)
- feat(traces): render curated SQL examples from shared files by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44388](https://github.com/BerriAI/litellm/pull/44388)
- fix(model_prices): registry audit 2026-10-03, add cohere embed v5, grok-imagine-video-1.5-lite and openrouter gpt-image rows by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44376](https://github.com/BerriAI/litellm/pull/44376)
- refactor(traces): extract snapshot cache by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44424](https://github.com/BerriAI/litellm/pull/44424)
- feat(lens): always-on investigations with findings and investigations tables by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44418](https://github.com/BerriAI/litellm/pull/44418)
- feat(docker): add a Windows quickstart in PowerShell, and a styled terminal for both quickstarts by [@&#8203;misbahsy](https://github.com/misbahsy) in [#&#8203;44310](https://github.com/BerriAI/litellm/pull/44310)
- feat(proxy): serve a Codex-native model catalog with per-model service_tiers from /v1/models by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44136](https://github.com/BerriAI/litellm/pull/44136)
- refactor(types): replace Any with proven types in 9 files by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44389](https://github.com/BerriAI/litellm/pull/44389)
- fix(proxy): treat Postgres connection exhaustion as DB unavailable, not poison spend-log rows by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44270](https://github.com/BerriAI/litellm/pull/44270)
- fix(proxy): treat Postgres connection exhaustion as backpressure, not poison rows by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44266](https://github.com/BerriAI/litellm/pull/44266)
- fix(lens): release budget reservations when the analysis model call fails by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44431](https://github.com/BerriAI/litellm/pull/44431)
- fix(mcp): preserve upstream tool schemas and parameter headers by [@&#8203;joshua-berri](https://github.com/joshua-berri) in [#&#8203;44425](https://github.com/BerriAI/litellm/pull/44425)
- fix(bedrock_mantle): route Claude chat completions to the native Messages endpoint by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43646](https://github.com/BerriAI/litellm/pull/43646)
- fix(tracing): preserve spend identity and gateway correlation by [@&#8203;yujonglee-berri](https://github.com/yujonglee-berri) in [#&#8203;44421](https://github.com/BerriAI/litellm/pull/44421)
- feat(roi): measure shipping velocity, quality, and recorded spend by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44426](https://github.com/BerriAI/litellm/pull/44426)
- fix(azure): set text-embedding max input to 8192 from the models sold directly page by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44449](https://github.com/BerriAI/litellm/pull/44449)
- feat(ui): show invitation and reset password links in a copyable field by [@&#8203;yuneng-berri](https://github.com/yuneng-berri) in [#&#8203;44454](https://github.com/BerriAI/litellm/pull/44454)
- feat(lens): coordinate worker releases and bundled installs by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44428](https://github.com/BerriAI/litellm/pull/44428)
- fix(auth): resolve hidden model_group_alias entries in the zero-cost budget check by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43741](https://github.com/BerriAI/litellm/pull/43741)
- fix(vertex_ai): forward system and tools to partner model count_tokens by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43900](https://github.com/BerriAI/litellm/pull/43900)
- fix(traces): reject conflicting spend aliases and unrelated HTTP siblings by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44456](https://github.com/BerriAI/litellm/pull/44456)
- chore(cost-map): add azure_ai/kimi-k2-thinking retirement date from the Azure retired models page by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44455](https://github.com/BerriAI/litellm/pull/44455)
- fix(health): probe Bedrock Mantle Claude deployments over the Anthropic Messages API by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44419](https://github.com/BerriAI/litellm/pull/44419)
- fix(tests): match the OS bind error in the owned-proxy port-race retry by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44462](https://github.com/BerriAI/litellm/pull/44462)
- feat(anthropic): workload identity federation and pluggable identity sources by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44448](https://github.com/BerriAI/litellm/pull/44448)
- test(integration): exact four-part translation cases on a shared fake provider and shared YAML deployment by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44451](https://github.com/BerriAI/litellm/pull/44451)
- feat(roi): default people and branch lists to matched accounts by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44465](https://github.com/BerriAI/litellm/pull/44465)
- feat(enterprise): bundle LiteAdmin Slack with native gateway login by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;44444](https://github.com/BerriAI/litellm/pull/44444)
- fix(caching): count tool_call cache_control marks in the injection census by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43556](https://github.com/BerriAI/litellm/pull/43556)
- chore(cost-map): sync openrouter prices from the models API by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44466](https://github.com/BerriAI/litellm/pull/44466)
- fix(lens): preserve approved worker digests and harden its image by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44467](https://github.com/BerriAI/litellm/pull/44467)
- feat: improve Lens dev seeding and live UI by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44468](https://github.com/BerriAI/litellm/pull/44468)
- test(ui): wait for step search value to settle in TraceDrawer test by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44470](https://github.com/BerriAI/litellm/pull/44470)
- feat(ui): share trace drawer as a closable SidePanel and polish Lens by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44473](https://github.com/BerriAI/litellm/pull/44473)
- fix(lens): align source setup with available worker images by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44476](https://github.com/BerriAI/litellm/pull/44476)
- feat(sdk): add run_tool_loop and arun_tool_loop helpers by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44381](https://github.com/BerriAI/litellm/pull/44381)
- feat(lens): guide setup through the first investigation by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44475](https://github.com/BerriAI/litellm/pull/44475)
- test(ci): fix six CircleCI test regressions on main by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44429](https://github.com/BerriAI/litellm/pull/44429)
- fix(proxy-extras): log v1 migration failures at ERROR so LITELLM_LOG=ERROR shows them by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44202](https://github.com/BerriAI/litellm/pull/44202)
- feat(ui): inline Lens settings tab and investigation editor by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44479](https://github.com/BerriAI/litellm/pull/44479)
- feat(mcp): hand listed-tool description and input schema to pre-call hooks per caller by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;41162](https://github.com/BerriAI/litellm/pull/41162)
- refactor: clean up fresh tech debt from 2026-10-03 by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44484](https://github.com/BerriAI/litellm/pull/44484)
- fix(otel): read the registered v2 logger without importing the proxy by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44485](https://github.com/BerriAI/litellm/pull/44485)
- test(mcp): keep the SSO assertion round trip from matching its refresh token inside random ciphertext by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44494](https://github.com/BerriAI/litellm/pull/44494)
- test(ci): pin the ROI estimator flag and the prompt-cache counter in two drifted tests by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44499](https://github.com/BerriAI/litellm/pull/44499)
- refactor(ui): move TraceView into components/lens/traces by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44501](https://github.com/BerriAI/litellm/pull/44501)
- refactor(ui): rename view_logs to logs and split request, audit and detail by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44505](https://github.com/BerriAI/litellm/pull/44505)
- refactor(ui): share CopyButton between Lens traces and logs by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44513](https://github.com/BerriAI/litellm/pull/44513)
- refactor(lens): storage-independent trace reads, shared keyset pager, typed read failures by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44422](https://github.com/BerriAI/litellm/pull/44422)
- fix(ci): send the Lens preview body as selection in the tracing endpoint tests by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44525](https://github.com/BerriAI/litellm/pull/44525)
- fix(azure): set gpt-realtime-2.1 retirement dates from the retirement schedule by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44526](https://github.com/BerriAI/litellm/pull/44526)
- fix(ci): repair the security sweep and Lens billing integration tests for ROI, JWKS, and release identity changes by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44529](https://github.com/BerriAI/litellm/pull/44529)
- fix(dashboard): route dev API calls on Accept and fail fast on non-JSON 2xx by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44528](https://github.com/BerriAI/litellm/pull/44528)
- chore(cost-map): sync openrouter prices from the models API by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44533](https://github.com/BerriAI/litellm/pull/44533)
- refactor(ui): route dashboard URL state through nuqs parsers by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44537](https://github.com/BerriAI/litellm/pull/44537)
- fix(logging): deduplicate streaming failure callbacks by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44442](https://github.com/BerriAI/litellm/pull/44442)
- feat(proxy): add LITELLM_FIPS_MODE startup gate with provider assertion and loud password migration failure by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;42700](https://github.com/BerriAI/litellm/pull/42700)
- fix(guardrails): run the end-of-stream post_call scan when the client disconnects mid-stream by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43839](https://github.com/BerriAI/litellm/pull/43839)
- refactor(mcp): fix Sequence/list return mismatch and collapse record_listed_tools wrapper by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44556](https://github.com/BerriAI/litellm/pull/44556)
- chore(cost-map): add azure retirement dates for gpt-4o-realtime-preview-2024-10-01 and jamba-instruct by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44567](https://github.com/BerriAI/litellm/pull/44567)
- feat(ui): add persistent columns and loading skeletons to Lens runs by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44579](https://github.com/BerriAI/litellm/pull/44579)
- fix(ui): remove Top models by task card from Model Leaderboard by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44502](https://github.com/BerriAI/litellm/pull/44502)
- refactor(rust): track ClickHouse migrations in a checksummed ledger by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44580](https://github.com/BerriAI/litellm/pull/44580)
- refactor(ui): extract shared timeline and time-range controls by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44584](https://github.com/BerriAI/litellm/pull/44584)
- fix(azure): set gpt-4o-transcribe retirement date from the retirement schedule by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44585](https://github.com/BerriAI/litellm/pull/44585)
- ci: move Postgres, MCP and Redis suites to CircleCI integration by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44453](https://github.com/BerriAI/litellm/pull/44453)
- chore!: retire the integrated ROI calculator by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44477](https://github.com/BerriAI/litellm/pull/44477)
- fix(caching): key response cache by router model group in litellm_metadata by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44542](https://github.com/BerriAI/litellm/pull/44542)
- fix(auto-router): align preview and serving default resolution by [@&#8203;moyai-berriai](https://github.com/moyai-berriai)\[bot] in [#&#8203;44436](https://github.com/BerriAI/litellm/pull/44436)
- fix(mcp): bind OAuth clients to their upstream issuer by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;37777](https://github.com/BerriAI/litellm/pull/37777)
- feat(guardrails): add llm shield pii redaction and rehydration guardrail by [@&#8203;ninadphalak](https://github.com/ninadphalak) in [#&#8203;42645](https://github.com/BerriAI/litellm/pull/42645)
- refactor(tracing): generate existing HTTP request models from Rust schemas by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44591](https://github.com/BerriAI/litellm/pull/44591)
- ci: run unit selections from GHA test-path and drop the CircleCI unit jobs by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44461](https://github.com/BerriAI/litellm/pull/44461)
- fix(ui): make mobile sidebar and top bar responsive by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44603](https://github.com/BerriAI/litellm/pull/44603)
- refactor(types): replace Any with proven types in 137 files by [@&#8203;mateo-berri](https://github.com/mateo-berri) in [#&#8203;44478](https://github.com/BerriAI/litellm/pull/44478)
- fix(ui): restore inline Lens onboarding and responsive layout by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44604](https://github.com/BerriAI/litellm/pull/44604)
- test(integration): anthropic-route basic translation cases for six Claude models on messages, chat completions and responses by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44607](https://github.com/BerriAI/litellm/pull/44607)
- fix(responses): report truncated bridged output as incomplete and echo request params by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44460](https://github.com/BerriAI/litellm/pull/44460)
- fix(proxy): enforce internal-user model creation prohibition by [@&#8203;moyai-berriai](https://github.com/moyai-berriai)\[bot] in [#&#8203;44438](https://github.com/BerriAI/litellm/pull/44438)
- chore(harness): drop the unused Any import left in harness options by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44625](https://github.com/BerriAI/litellm/pull/44625)
- fix(harness): drop the unused Any import that fails ruff on main by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44627](https://github.com/BerriAI/litellm/pull/44627)
- refactor(proxy): rename management/teams/access.py to authz.py by [@&#8203;ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#&#8203;44624](https://github.com/BerriAI/litellm/pull/44624)
- feat(tracing)!: return only data from SQL queries by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44609](https://github.com/BerriAI/litellm/pull/44609)
- fix(openai/realtime): drop model from upstream URL for intent=transcription by [@&#8203;michelligabriele](https://github.com/michelligabriele) in [#&#8203;43854](https://github.com/BerriAI/litellm/pull/43854)
- fix(gemini): add priority tier audio input price to three Gemini rows by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44632](https://github.com/BerriAI/litellm/pull/44632)
- fix(cost): bill per-second transcription models outside chat modes by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44458](https://github.com/BerriAI/litellm/pull/44458)
- fix(ui): explain why team member reset spend is unavailable instead of hiding it by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44629](https://github.com/BerriAI/litellm/pull/44629)
- test(integration): bedrock_converse-route basic translation cases for six Claude models on messages, chat completions and responses by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44646](https://github.com/BerriAI/litellm/pull/44646)
- test(integration): run the anthropic /v1/responses basic translation cases now that the bridge echoes request params by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44615](https://github.com/BerriAI/litellm/pull/44615)
- feat(lens): restore compact navigation with live investigation review by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44472](https://github.com/BerriAI/litellm/pull/44472)
- feat(proxy): limit which models an end user can call by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43904](https://github.com/BerriAI/litellm/pull/43904)
- fix(sso): let CLI and Claude Code gateway sign-in through on DISABLE_ADMIN_UI nodes by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44620](https://github.com/BerriAI/litellm/pull/44620)
- feat(ui): declare shared search operators and flush queries on blur by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44665](https://github.com/BerriAI/litellm/pull/44665)
- fix(lens): make tool steps and conversations readable by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44645](https://github.com/BerriAI/litellm/pull/44645)
- fix(ui): send null instead of $0 when a team's member default budget is cleared by [@&#8203;ryan-crabbe-berri](https://github.com/ryan-crabbe-berri) in [#&#8203;44644](https://github.com/BerriAI/litellm/pull/44644)
- test(integration): azure_ai-route basic translation cases for six Claude models on messages, chat completions and responses by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44658](https://github.com/BerriAI/litellm/pull/44658)
- test(integration): basic translation cases for the openai_responses route by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44663](https://github.com/BerriAI/litellm/pull/44663)
- feat(lens): analyze trace workspaces with confined Python and compaction by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44640](https://github.com/BerriAI/litellm/pull/44640)
- fix(vertex-ai): add deprecation_date to gemini-3.1-flash-lite-image by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44639](https://github.com/BerriAI/litellm/pull/44639)
- fix(bedrock): add priority and flex prices for Grok 4.3, 4.6, 4.7 and Kimi K3 by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44670](https://github.com/BerriAI/litellm/pull/44670)
- test(integration): pin the Claude-tokenizer recount for streamed claude-sonnet-5 no-usage cases by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44643](https://github.com/BerriAI/litellm/pull/44643)
- feat(proxy): embed enterprise LiteAdmin MCP in LiteLLM images by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;44610](https://github.com/BerriAI/litellm/pull/44610)
- test(integration): basic translation cases for the azure route by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44672](https://github.com/BerriAI/litellm/pull/44672)
- test(integration): assert the Messages API health probe on Mantle Claude by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44612](https://github.com/BerriAI/litellm/pull/44612)
- refactor(rust): rename litellm-framing crate to litellm-framer by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44683](https://github.com/BerriAI/litellm/pull/44683)
- test(integration): basic translation cases for the gemini route by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44662](https://github.com/BerriAI/litellm/pull/44662)
- test(integration): basic translation cases for the openai route by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44667](https://github.com/BerriAI/litellm/pull/44667)
- refactor(rust): derive string enum serde through strum and serde_with by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44675](https://github.com/BerriAI/litellm/pull/44675)
- fix(spend-tracking): stop caching failed spend-log metadata lookups as confirmed misses by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43560](https://github.com/BerriAI/litellm/pull/43560)
- fix(proxy): let a listed team alias win over a same-named key alias in the customer model check by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44677](https://github.com/BerriAI/litellm/pull/44677)
- chore: move PR template to PULL_REQUEST_TEMPLATE/general.md, add rust.md by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44693](https://github.com/BerriAI/litellm/pull/44693)
- fix(router): retry a /v1/messages stream the provider drops before the first content chunk by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44276](https://github.com/BerriAI/litellm/pull/44276)
- fix(lens): persist final coverage with source diagnostics by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44682](https://github.com/BerriAI/litellm/pull/44682)
- test(integration): point the scratch upgraded proxy's read replica at the scratch database by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44613](https://github.com/BerriAI/litellm/pull/44613)
- fix(lens): show investigation findings for agent traces by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44696](https://github.com/BerriAI/litellm/pull/44696)
- fix(build): rebuild the Rust bridge when uv sync sees Rust sources change by [@&#8203;nate-berri](https://github.com/nate-berri) in [#&#8203;44708](https://github.com/BerriAI/litellm/pull/44708)
- fix(lens): preserve span timestamps in investigation evidence by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44702](https://github.com/BerriAI/litellm/pull/44702)
- ci: split slow unit shards and build the Rust bridge once per run by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44622](https://github.com/BerriAI/litellm/pull/44622)
- test(rust_bridge): expect PartRow start_time and end_time as required LENS_CONTENT fields by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44719](https://github.com/BerriAI/litellm/pull/44719)
- chore(deps): bump langgraph-sdk from 0.4.2 to 0.4.4 by [@&#8203;dependabot](https://github.com/dependabot)\[bot] in [#&#8203;44713](https://github.com/BerriAI/litellm/pull/44713)
- feat: add Reka as an OpenAI-compatible provider by [@&#8203;anniejeng](https://github.com/anniejeng) in [#&#8203;44278](https://github.com/BerriAI/litellm/pull/44278)
- feat(ui): support native decisions endpoint in decision playground by [@&#8203;moyai-berriai](https://github.com/moyai-berriai)\[bot] in [#&#8203;44664](https://github.com/BerriAI/litellm/pull/44664)
- fix(lens): reconstruct native coding agent conversations by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44711](https://github.com/BerriAI/litellm/pull/44711)
- fix(responses): honor request cache controls on chat completions bridged to the Responses API by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44676](https://github.com/BerriAI/litellm/pull/44676)
- fix(deps): bump source-map-js, smol-toml, mako, multidict and werkzeug for OSV advisories by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44728](https://github.com/BerriAI/litellm/pull/44728)
- test(integration): rename translation runner run to assert_translation by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44741](https://github.com/BerriAI/litellm/pull/44741)
- feat(lens): show investigation names in findings table by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44753](https://github.com/BerriAI/litellm/pull/44753)
- feat(ui): configure cache-aware auto routing by [@&#8203;tin-berri](https://github.com/tin-berri) in [#&#8203;43396](https://github.com/BerriAI/litellm/pull/43396)
- fix(lens): bound result recovery and preserve partial results by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44692](https://github.com/BerriAI/litellm/pull/44692)
- feat(prometheus): cap series per metric for every labeled metric by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44420](https://github.com/BerriAI/litellm/pull/44420)
- feat(lens): type to filter the traces agent dropdown by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44745](https://github.com/BerriAI/litellm/pull/44745)
- test(lens): use current worker protocol in billing integration by [@&#8203;moe-berri](https://github.com/moe-berri) in [#&#8203;44760](https://github.com/BerriAI/litellm/pull/44760)
- feat(model_prices): add chatgpt subscription rows for the gpt-6 family by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44758](https://github.com/BerriAI/litellm/pull/44758)
- test(e2e): assert the sibling-replica cooldown through the router by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44706](https://github.com/BerriAI/litellm/pull/44706)
- test(integration): basic translation cases for the bedrock_invoke route by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44752](https://github.com/BerriAI/litellm/pull/44752)
- fix(gemini): stop replaying thinking block signatures to Gemini by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44661](https://github.com/BerriAI/litellm/pull/44661)
- fix(ci): namespace claude session ids in tracing seeds and allowlist /v1/logs on backend by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44761](https://github.com/BerriAI/litellm/pull/44761)
- fix(proxy): judge the free-model budget waiver by the group an alias routes to by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44638](https://github.com/BerriAI/litellm/pull/44638)
- test(integration): basic translation cases for the vertex_ai route by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44751](https://github.com/BerriAI/litellm/pull/44751)
- fix(vertex_ai): apply regional endpoint uplift on image generation cost path by [@&#8203;nate-berri](https://github.com/nate-berri) in [#&#8203;44679](https://github.com/BerriAI/litellm/pull/44679)
- refactor(tests): extract Rust cache test split from [#&#8203;44714](https://github.com/BerriAI/litellm/issues/44714) by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44780](https://github.com/BerriAI/litellm/pull/44780)
- feat(proxy): cap batch file records, daily batch uploads, and per-file downloads by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;43632](https://github.com/BerriAI/litellm/pull/43632)
- feat(lens): add copy link button to trace header by [@&#8203;ishaan-berri](https://github.com/ishaan-berri) in [#&#8203;44749](https://github.com/BerriAI/litellm/pull/44749)
- test(integration): keep scripted upstream connections open past the proxy's keepalive by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44695](https://github.com/BerriAI/litellm/pull/44695)
- test(integration): basic translation cases for the bedrock_mantle route by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;44750](https://github.com/BerriAI/litellm/pull/44750)
- fix(chatgpt,github_copilot): refuse device-code login inside an event loop or worker thread by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;39585](https://github.com/BerriAI/litellm/pull/39585)
- feat(bedrock): add glm 5.3 cross-region rows and nova 2.5 sonic by [@&#8203;berriai-litellm-provider-info-sync](https://github.com/berriai-litellm-provider-info-sync)\[bot] in [#&#8203;44710](https://github.com/BerriAI/litellm/pull/44710)
- fix(responses): honor caller stream flag when provider forces SSE (internal copy of [#&#8203;34095](https://github.com/BerriAI/litellm/issues/34095)) by [@&#8203;devin-ai-integration](https://github.com/devin-ai-integration)\[bot] in [#&#8203;41235](https://github.com/BerriAI/litellm/pull/41235)
- refactor(cache): remove dead Cache.\_native_cache run…

This branch had an error being deployed

1 failed deployment
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.

3 participants