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 _select_model_name_for_cost_calc docstring
Ishaan Jaff4622e35d9627
diff --git a/litellm/cost_calculator.py b/litellm/cost_calculator.pyindex 6f176e12c38..45bd24aab3c 100644--- a/litellm/cost_calculator.py+++ b/litellm/cost_calculator.py@@ -373,8 +373,7 @@ def _select_model_name_for_cost_calc(1. If custom pricing is true, return received model name2. If base_model is set (e.g. for azure models), return that3. If completion response has model set return that- 4. Check if compl- 4. If model is passed in return that+ 4. Check if model is passed in return that"""return_model: Optional[str] = Noneregion_name: Optional[str] = None