From c1a33dcc5f5eb710670324d4864ea689d8587598 Mon Sep 17 00:00:00 2001 From: Krrish Dholakia Date: Tue, 16 Sep 2025 19:15:26 -0700 Subject: [PATCH] fix(types/utils.py): add cache_creation_input_token_cost_above_1hr to modelinfobase --- litellm/types/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/litellm/types/utils.py b/litellm/types/utils.py index 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 models input_cost_per_audio_token: Optional[float] @@ -162,7 +163,9 @@ class ModelInfoBase(ProviderSpecificModelInfo, total=False): SearchContextCostPerQuery ] # Cost for using web search tool citation_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 Dashscope litellm_provider: Required[str] mode: Required[ Literal[