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(register_model): align membership check with stored value for openrouter models
Chesars77496776c15a
diff --git a/litellm/utils.py b/litellm/utils.pyindex 7576e3bb83d..2e186bb160f 100644--- a/litellm/utils.py+++ b/litellm/utils.py@@ -2779,7 +2779,7 @@ def register_model(model_cost: Union[str, dict]): # noqa: PLR0915litellm.anthropic_models.add(key)elif value.get("litellm_provider") == "openrouter":split_string = key.split("/", 1)- if key not in litellm.openrouter_models:+ if split_string[-1] not in litellm.openrouter_models:litellm.openrouter_models.add(split_string[-1])elif value.get("litellm_provider") == "vercel_ai_gateway":if key not in litellm.vercel_ai_gateway_models: