litellm/litellm
Yuneng Jiang 3c1d9c0208
fix(messages): load the beta map off the loop and only for calls that carry betas on rust
Since #52042 the Rust Messages host called _load_beta_headers_config synchronously from the native decode for every call whose provider filters anthropic-beta. A plain azure_ai call with no safeguards and no caller betas therefore fetched the remote beta map, and a cold worker blocked its event loop on that fetch for every Foundry request until it returned.

The native Messages bindings now load the map before the native call starts, and only when Python's handler would: the provider filters betas through the map and the call carries safeguards or a caller anthropic-beta. The async binding awaits aload_beta_headers_config on its dedicated loader thread, the sync binding loads in place. beta_headers_config hands Rust the map once it is loaded and never fetches it. The provider predicate moved into the handler so the host and the bindings share one resolver.
2026-11-16 17:35:41 -08:00
..
a2a_protocol fix(logging): retain streaming success logging tasks until they finish (#52067) 2026-11-16 11:21:05 -08:00
accounting fix(proxy): alert on customer org, customer team, and customer member budgets (#51579) 2026-11-13 09:16:33 -08:00
anthropic_interface feat(anthropic): forward message threads on native /v1/messages (#50976) 2026-11-10 18:33:54 -08:00
assistants refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
batch_completion
batches refactor(s3-log): move the rust-backed s3 logger from s3_v3 to s3_v2 (#51893) 2026-11-14 22:24:23 -08:00
caching fix(caching): log a cache hit with the deployment's vertex_location (#52150) 2026-11-16 16:10:30 -08:00
chat_completions fix(rust): run native async calls through python's async wrapper steps (#50423) 2026-11-10 00:24:20 +00:00
cli chore: move workspace packages under litellm (#51000) 2026-11-12 04:19:57 +00:00
completion_extras fix(responses): stream tool-call arguments that only arrive in done events (#52069) 2026-11-16 12:50:12 -08:00
compression
containers feat(openai)!: honor per-deployment workload identity on non-chat routes (#39966) 2026-10-16 22:25:15 +00:00
decisions fix(decisions): answer 400 naming extra_headers when it is not an object (#50581) 2026-11-16 07:26:07 -05:00
deploy feat(control-plane): runtime dataplane and role writes via redis stream and postgres (#51762) 2026-11-16 17:36:25 +00:00
embeddings fix(rust): run native async calls through python's async wrapper steps (#50423) 2026-11-10 00:24:20 +00:00
endpoints/speech/speech_to_completion_bridge feat(accounting): capture request usage through the durable meter (#49133) 2026-10-31 07:32:25 -07:00
enterprise bump: litellm-enterprise 0.1.85 -> 0.1.86, litellm-proxy-extras 0.4.116 -> 0.4.117 (#51876) 2026-11-14 16:42:35 -08:00
evals
experimental_mcp_client refactor(mcp): drop the experimental label from the MCP server and client paths (#48513) 2026-10-27 17:47:50 +00:00
extraction feat(extraction): add /v1/extraction with Cloudflare Clairic support (#47473) 2026-10-20 15:51:45 -07:00
files refactor(vertex_ai): remove unreachable VertexAIFilesHandler.afile_content (#51966) 2026-11-15 13:54:05 -08:00
fine_tuning fix(managed_files): send provider file ids when creating a fine-tuning job from managed files (#46552) 2026-10-19 14:40:15 -07:00
google_genai fix(logging): retain streaming success logging tasks until they finish (#52067) 2026-11-16 11:21:05 -08:00
harness refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
images fix(gemini): return n images for image generations and edits when n > 1 (#52103) 2026-11-16 14:50:13 -08:00
integrations feat(focus): upgrade FOCUS export to the 1.5 Cost and Usage schema (#52105) 2026-11-16 15:43:15 -08:00
interactions feat(vertex_ai): label Vertex requests with the caller's key, team, org, and project (#50732) 2026-11-14 00:39:01 -05:00
litellm_core_utils fix(azure_ai): send reasoning_effort to Foundry reasoning models (#51775) 2026-11-16 16:40:16 -08:00
llms fix(messages): load the beta map off the loop and only for calls that carry betas on rust 2026-11-16 17:35:41 -08:00
mcp_client feat(mcp): cache upstream tool lists with an admin-set lifetime (#51160) 2026-11-12 08:48:04 -08:00
messages feat(messages): serve bedrock invoke messages on rust only (#51330) 2026-11-15 16:58:31 -08:00
models feat(alerts): add email labels, bulk actions and threshold editing (#52139) 2026-11-16 15:32:19 -08:00
ocr fix(rust): run native async calls through python's async wrapper steps (#50423) 2026-11-10 00:24:20 +00:00
packaging fix(packaging): keep the litellm-proxy package version in step with litellm (#51807) 2026-11-14 18:16:47 -08:00
passthrough fix(bedrock): log the prompt, settings and stream flag of passthrough requests (#52146) 2026-11-16 16:10:52 -08:00
proxy feat(mcp): add Parallel to the MCP discovery registry (#52141) 2026-11-16 16:30:58 -08:00
proxy-extras fix(db): index customer hierarchy filters (#51961) 2026-11-16 04:28:34 +08:00
proxy_auth
rag refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
realtime_api refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
redis feat(budgets): replace the python budget hold and settle engine with a rust engine admitted at auth (#51535) 2026-11-15 16:03:51 -08:00
repositories feat(alerts): add email labels, bulk actions and threshold editing (#52139) 2026-11-16 15:32:19 -08:00
rerank_api refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
responses fix(openai): cap and bill web search rounds on Responses-pinned chat completions (#51802) 2026-11-14 14:36:10 -05:00
router_rust fix(azure_ai): send reasoning_effort to Foundry reasoning models (#51775) 2026-11-16 16:40:16 -08:00
router_strategy fix(router): preserve routing tags after guardrail metadata enrichment (#50488) 2026-11-16 11:34:48 -08:00
router_utils feat(github_copilot): support GitHub App authentication with PEM upload (#51427) 2026-11-14 10:33:20 -05:00
runtime chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
rust fix(bedrock): recognize the ca. cross-region inference profile prefix (#52152) 2026-11-16 16:53:51 -08:00
rust_bridge fix(messages): load the beta map off the loop and only for calls that carry betas on rust 2026-11-16 17:35:41 -08:00
sandbox refactor(typing): clear 1181 basedpyright Any errors across 431 files (#47789) 2026-10-24 11:31:09 -07:00
scripts chore: move LiteLLM's configs and e2e tests off gpt-4o and gpt-4.1 before their 2027-01-14 shutdown (#51800) 2026-11-14 10:50:59 -08:00
search fix(search): price Tavily advanced and Linkup deep searches at their own cost map entries (#47411) 2026-10-19 23:32:31 -07:00
secret_managers refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
skills refactor(typing): clear about 1,100 basedpyright Any errors across 303 files (#49986) 2026-11-06 13:31:15 -08:00
systemone fix(decisions): log every request field the caller sent on /v1/systemone and /v1/decisions (#47183) 2026-10-19 14:19:14 -07:00
telemetry
text_completions refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
tracing chore: move scripts and runtime sources under litellm (#51006) 2026-11-12 04:19:57 +00:00
types fix(proxy): rewrite batch JSONL alias rows to the deployment model on model-routed uploads (#51843) 2026-11-16 15:12:52 -08:00
ui feat(ui): show an optional currency estimate on the Usage spend card (#51979) 2026-11-16 16:00:20 -08:00
vector_store_files fix(secret_managers)!: resolve oidc/file and oidc/env refs in admin-configured api_key per request (#47341) 2026-10-20 01:43:59 +00:00
vector_stores fix(bedrock): map OpenAI vector store search filters to AWS RetrievalFilter (#51291) 2026-11-14 13:39:43 -05:00
videos refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
vscode-extension chore: move ui and vscode-extension under litellm and delete docs (#50992) 2026-11-12 04:19:57 +00:00
__init__.py fix(router)!: name the request size when usage-based routing refuses an over-tpm request (#51838) 2026-11-14 16:16:21 -05:00
_internal_context.py refactor(redis): delete the Python RedisBatch now that every request op is native (#51383) 2026-11-13 03:22:28 +00:00
_lazy_imports.py refactor: read lazy attributes with getattr instead of a TypedDict wrapper (#50543) 2026-11-07 10:56:30 -08:00
_lazy_imports_registry.py feat(decisions): support Vercel AI Gateway decision models (#50642) 2026-11-14 09:43:08 -05:00
_logging.py feat(control_plane): --control-plane flag serves the control plane API from the existing image (#49658) 2026-11-16 17:36:24 +00:00
_process_defaults.py perf(cli): start lite without initializing the litellm SDK (#46803) 2026-10-17 04:53:32 +00:00
_redis.py feat(redis): serve the proxy's common Redis call with Rust stores (#50170) 2026-11-06 06:01:11 +00:00
_redis_credential_provider.py
_service_logger.py
_uuid.py fix: support Python 3.15 (#48359) 2026-10-26 16:00:11 +00:00
_version.py
anthropic_beta_gated_fields.py fix(anthropic)!: drop beta-gated body fields under drop_params (#48793) 2026-10-29 06:25:31 -07:00
anthropic_beta_headers_config.json fix(bedrock): forward the compact-2026-09-04 compaction param on Invoke /v1/messages (#51223) 2026-11-11 15:10:32 -08:00
anthropic_beta_headers_manager.py fix(messages): load the beta map off the loop and only for calls that carry betas on rust 2026-11-16 17:35:41 -08:00
blog_posts.json chore(blog): refresh the bundled blog posts backup with the latest 50 posts from the docs RSS feed (#49971) 2026-11-03 23:41:15 +00:00
budget_manager.py
constants.py fix(gemini): return n images for image generations and edits when n > 1 (#52103) 2026-11-16 14:50:13 -08:00
cost.json
cost_calculator.py fix(azure): send no api-version on Foundry project /openai/v1 Responses bases (#51767) 2026-11-14 05:24:12 -05:00
exceptions.py fix(router)!: name the request size when usage-based routing refuses an over-tpm request (#51838) 2026-11-14 16:16:21 -05:00
guardrails.py Add guardrails.apply SDK helper (#49217) (#49469) 2026-10-31 23:37:45 +00:00
main.py fix(proxy): stop returning stack traces in health check errors 2026-11-16 14:01:24 +01:00
model_prices_and_context_window_backup.json fix(azure_ai): send reasoning_effort to Foundry reasoning models (#51775) 2026-11-16 16:40:16 -08:00
policy_templates_backup.json
provider_endpoints_support_backup.json chore(pricing): sync replicate model prices from replicate.com model pages (#51067) 2026-11-11 01:07:16 +00:00
py.typed
router.py refactor(typing): clear 1141 basedpyright Any errors across 182 files (#50711) 2026-11-11 22:11:47 +00:00
router_api.py feat(redis): serve the router's session pins from a native store (#50870) 2026-11-13 03:22:28 +00:00
router_attempt.py refactor(router): delete the python router core, the rust core is the only core (#50178) 2026-11-05 10:40:46 -08:00
router_config.py refactor(typing): clear about 1,100 basedpyright Any errors across 303 files (#49986) 2026-11-06 13:31:15 -08:00
router_core.py chore: move workspace packages under litellm (#51000) 2026-11-12 04:19:57 +00:00
router_deprecated.py fix(router): re-check and reserve per-model rate limits on fallback targets (#50994) 2026-11-10 16:36:10 -08:00
router_host.py refactor(router): move router callers onto the entry points and invert the proxy imports (#48847) 2026-10-29 17:26:33 +00:00
router_python_host.py fix(sdk): stop global model_fallbacks from recursing on every completion call (#51817) 2026-11-14 16:28:38 -05:00
scheduler.py fix(scheduler): read shared queue from Redis so expired dead-replica entries stop blocking waiters (#49387) 2026-10-31 11:43:46 -07:00
schema.prisma fix(db): index customer hierarchy filters (#51961) 2026-11-16 04:28:34 +08:00
setup_wizard.py
timeout.py
tool_loop.py fix(tool_choice): accept the Responses API's flat allowed_tools layout on chat completions (#50467) 2026-11-10 13:04:06 -08:00
utils.py fix(azure_ai): send reasoning_effort to Foundry reasoning models (#51775) 2026-11-16 16:40:16 -08:00