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): avoid NotRequired access on litellm_params model
Devin AIba817aa9bbf4
diff --git a/litellm/proxy/proxy_server.py b/litellm/proxy/proxy_server.pyindex d1771cc9088..693769446f4 100644--- a/litellm/proxy/proxy_server.py+++ b/litellm/proxy/proxy_server.py@@ -12481,7 +12481,7 @@ async def supported_openai_params(model: str):global llm_routertry:deployments: Final = llm_router.get_model_list(model_name=model) if llm_router is not None else None- model_to_map: Final = deployments[0]["litellm_params"]["model"] if deployments else model+ model_to_map: Final = (deployments[0]["litellm_params"].get("model") or model) if deployments else modellitellm_model, custom_llm_provider, _, _ = litellm.get_llm_provider(model=model_to_map)return {"supported_openai_params": litellm.get_supported_openai_params(