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
Remove unnecessary model variable assignment (#16008)
Daniele Scasciafratte36f0ee6ff9c7
diff --git a/litellm/llms/openai/openai.py b/litellm/llms/openai/openai.pyindex 324205237dc..492ed624231 100644--- a/litellm/llms/openai/openai.py+++ b/litellm/llms/openai/openai.py@@ -1203,7 +1203,6 @@ class OpenAIChatCompletion(BaseLLM, BaseOpenAILLM):) -> EmbeddingResponse:super().embedding()try:- model = modeldata = {"model": model, "input": input, **optional_params}max_retries = max_retries or litellm.DEFAULT_MAX_RETRIESif not isinstance(max_retries, int):@@ -1332,7 +1331,6 @@ class OpenAIChatCompletion(BaseLLM, BaseOpenAILLM):) -> ImageResponse:data = {}try:- model = modeldata = {"model": model, "prompt": prompt, **optional_params}max_retries = data.pop("max_retries", 2)if not isinstance(max_retries, int):