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(types/utils.py): add cache_creation_input_token_cost_above_1hr to modelinfobase
Krrish Dholakiac1a33dcc5f5e
diff --git a/litellm/types/utils.py b/litellm/types/utils.pyindex 9ed66003e76..85e4e6bfdd4 100644--- a/litellm/types/utils.py+++ b/litellm/types/utils.py@@ -123,6 +123,7 @@ class ModelInfoBase(ProviderSpecificModelInfo, total=False):max_output_tokens: Required[Optional[int]]input_cost_per_token: Required[float]cache_creation_input_token_cost: Optional[float]+ cache_creation_input_token_cost_above_1hr: Optional[float]cache_read_input_token_cost: Optional[float]input_cost_per_character: Optional[float] # only for vertex ai modelsinput_cost_per_audio_token: Optional[float]@@ -162,7 +163,9 @@ class ModelInfoBase(ProviderSpecificModelInfo, total=False):SearchContextCostPerQuery] # Cost for using web search toolcitation_cost_per_token: Optional[float] # Cost per citation token for Perplexity- tiered_pricing: Optional[List[Dict[str, Any]]] # Tiered pricing structure for models like Dashscope+ tiered_pricing: Optional[+ List[Dict[str, Any]]+ ] # Tiered pricing structure for models like Dashscopelitellm_provider: Required[str]mode: Required[Literal[