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: resolve mypy type error in _is_potential_model_name_in_model_cost
Chesars1aa63842495e
diff --git a/litellm/utils.py b/litellm/utils.pyindex 8eb71817111..a75130a31eb 100644--- a/litellm/utils.py+++ b/litellm/utils.py@@ -4867,7 +4867,7 @@ def _is_potential_model_name_in_model_cost(Check if the potential model name is in the model cost (case-insensitive)."""return any(- _get_model_cost_key(potential_model_name) is not None+ _get_model_cost_key(str(potential_model_name)) is not Nonefor potential_model_name in potential_model_names.values())