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
Update litellm/litellm_core_utils/get_model_cost_map.py
Cesar Garcia4e4dd88e7e9f
diff --git a/litellm/litellm_core_utils/get_model_cost_map.py b/litellm/litellm_core_utils/get_model_cost_map.pyindex 8aa422e1625..a3e4429dfaa 100644--- a/litellm/litellm_core_utils/get_model_cost_map.py+++ b/litellm/litellm_core_utils/get_model_cost_map.py@@ -26,9 +26,9 @@ def _load_local_model_cost_map() -> dict:# Try loading from package resources (production)try:import importlib.resources- with importlib.resources.open_text(- "litellm", "model_prices_and_context_window.json"- ) as f:+ with importlib.resources.files("litellm").joinpath(+ "model_prices_and_context_window.json"+ ).open("r") as f:return json.load(f)except (FileNotFoundError, ModuleNotFoundError):pass