published fresh until

LiteLLM 1.104 to 1.106: how do I migrate proxy and SDK?

Summary Moving through 1.105 makes database setup failures fatal; 1.106 changes cache eligibility, WebSocket lifetimes and MCP credential forwarding. Rehearse migrations on a database copy and test SDK response contracts before rollout.

Not for gateway selection, see switch-llm-provider-without-rewriting-app-gateway-or-thin-wrapper; Claude Code beta validation, see claude-code-p-extra-inputs-gateway-anthropic-beta

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

The problem

Upgrade an existing LiteLLM proxy and SDK without mistaking failed schema setup for bad keys or silently changing responses.

Release status, checked 2026-10-20

ChannelVerified releaseSource
Python package and GitHub release1.106.0, released 2026-10-18; PyPI declares MITPyPI and GitHub
Previous minor release1.105.0, released 2026-10-11Official release index
PreviewPyPI lists 1.107.0rc2 on 2026-10-20; excluded from this migration targetPyPI

Comparison windows are 1.104.0 to 1.105.0 and 1.105.0 to 1.106.0.

What changed and when to act

BoundaryChangeUpgrade decision
1.105Database setup failure prevents startup; migration enforcement opt-out is ignoredFix the underlying setup failure before replacing healthy replicas
1.105Bedrock GPT-5.6, GPT-6 and GPT-6.1 routing moves from Converse to native Chat Completions; SDK gains litellm.agent() and Decisions routesCheck response fields; use bedrock/converse/<model> where retaining Converse is required
1.106Response caching skips requests above four messages; Responses WebSockets have a session lifetime; caller keys stop being forwarded to MCPReview these policies explicitly before canary traffic

Sources, checked 2026-10-20: 1.105 notes, 1.106 notes.

Failed database setup

Exact message excerpt: Database setup failed after multiple retries. The proxy cannot start safely. The underlying failure can be connectivity or a migration error. The implementation records P1001: Can't reach database server as one example. Setting ENFORCE_PRISMA_MIGRATION_CHECK=false no longer bypasses the failure; --enforce_prisma_migration_check is a deprecated no-op.

On a disposable restored database, correct the connection or identified migration problem, then run the shipped entrypoint:

litellm --config config.yaml --skip_server_startup

Require successful exit before starting the serving process. Do not rotate working application keys to fix a schema problem, or use the old opt-out to suppress it. Official implementation and before/after logs, checked 2026-10-20.

Prisma toolchain missing

Exact diagnostic excerpt: the prisma CLI is neither on PATH nor importable as a package. A database-enabled proxy needs the additional toolchain, including in a standalone migration job. Use the documented extra, pinned here to LiteLLM 1.106.0 as of October 2026:

pip install 'litellm[extra_proxy]==1.106.0'
litellm --config config.yaml --skip_server_startup

SDK-only callers can use pip install litellm==1.106.0. Do not assume installing only the proxy extra supplies the database toolchain. Toolchain fix, migration troubleshooting and release installation, checked 2026-10-20. Commands were not run here.

Ordered migration and regression checks

1. Record the deployed version, config, image digest and application dependency lock; take a restorable database backup. Rehearse against its disposable copy. LiteLLM normally applies pending Prisma migrations at startup. Read the migration guide, checked 2026-10-20, before diagnosing a failure. 2. Select the pinned SDK or database-enabled proxy installation above. Keep the working deployment available while the standalone setup job runs. A failed job is a stop condition, not a successful rollout with broken authentication. 3. Review provider-specific contracts. Compare sync and async calls, streaming text, tool arguments and results, usage, reasoning and response identifiers using the same requests before and after. Test your actual Bedrock route, including any deliberate Converse override. 4. In the proxy config review, decide whether cache_params.max_messages should remain 4, be raised, or be null. Check otherwise identical short and long conversations for cache behavior. This is the response cache, not a promise about provider-side prompt caching. 5. Exercise Responses WebSocket reconnect behavior. The documented default closes sessions with code 1000 after 3600 seconds, with a configurable maximum of 7200 via general_settings.responses_websocket_session_limit_seconds. Do not treat every normal close as provider failure. Give MCP servers independent static credentials or OAuth; do not restore caller-key forwarding. 6. Test credential administration: changing credential_name through PATCH /credentials/{name} now yields HTTP 400; use display_name for a label or create a new credential for a new identity. Replay allowed and denied access paths and confirm spend attribution before increasing traffic.

Steps 4–6 follow the 1.106 breaking changes, checked 2026-10-20; complete error strings are unverified.

Security and packaging pitfalls

GHSA-7hp6-4w63-5g45, published 2026-09-30, describes authenticated privilege escalation through salt-key reuse. Its patched branches include 1.100.4, 1.101.3, 1.102.2 and 1.103.1. Do not roll back into its affected ranges to regain old behavior. GHSA-hhww-mrg2-969h, also published 2026-09-30, fixes reflected SSO-debug XSS in 1.85.0. Both advisories checked 2026-10-20; this is not a complete vulnerability audit.

The finalized deprecation discussion says new release publishing for the separate litellm-database, litellm-non_root and development variants stops after 2026-10-19, with exceptions for patches to previously cut versions. Move deployment automation toward the consolidated litellm distribution; do not interpret every older proposal in that living discussion as an already-removed feature. Checked 2026-10-20.

Community evidence

  • GitHub reporter imdmahajankanika, in issue 19289, reported broken login together with migration failures. This is historical demand for checking schema setup, not proof that the current release still has that defect.
  • ryan-crabbe-berri hosts discussion 32090. ptparker thanked maintainers for retaining prompt management: feedback changed the list.

A prompt to give your agent

Read the linked official release notes, migration guide and advisories before editing anything; do not guess flags or error messages. Compare our installed LiteLLM with 1.106.0, separate SDK changes from proxy changes, and propose the ordered config and dependency diff. Rehearse database setup only on an approved disposable restore. Test streaming, tool calls, response fields, cache boundaries, authentication and WebSocket reconnects. Report exact observed failures separately from source excerpts. Do not change a live database.

Limits

No installation, migration, provider call or regression test was run. Two GitHub conversations supply thin historical evidence. Full cache, MCP, credential and WebSocket error texts, complete schema diff and rollback compatibility are unverified.

Started from a post by @BerriAI, packaged by the editor. Original post

Subjects

More in security

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# LiteLLM 1.104 to 1.106: how do I migrate proxy and SDK?
Summary: Moving through 1.105 makes database setup failures fatal; 1.106 changes cache eligibility, WebSocket lifetimes and MCP credential forwarding. Rehearse migrations on a database copy and test SDK response contracts before rollout.
Copy for agent
get the whatworks thread litellm-1-104-to-1-106-proxy-sdk-migration and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread litellm-1-104-to-1-106-proxy-sdk-migration
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks