The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]
Python ai-gatewayanthropicazure-openaibedrockgatewaylangchainlitellmllmllm-gatewayllmopsmcp-gatewayopenaiopenai-proxyrustrust-aivertex-ai
fix(proxy): build public team alias response immutably
Hayden Moulds2f8f3d3d21e0
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.pyindex ccabc4ed572..c3c45855c5f 100644--- a/litellm/proxy/proxy_server.py+++ b/litellm/proxy/proxy_server.py@@ -10827,15 +10827,14 @@ async def model_info(# Use the actual litellm model from the deployment to get provider info_, provider, _, _ = litellm.get_llm_provider(model=deployment.litellm_params.model)- response = create_model_info_response(+ response: Final = create_model_info_response(model_id=resolved_model_id,provider=provider,include_metadata=False,fallback_type=None,llm_router=llm_router,)- response["id"] = internal_to_public.get(resolved_model_id, model_id)- return response+ return {**response, "id": internal_to_public.get(resolved_model_id, model_id)}def _blocked_response_usage(original_response: object | None) -> "litellm.Usage":