mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-08 22:21:35 +00:00
feat(types): add cache_read_cost and cache_creation_cost fields to CostBreakdown TypedDict
This commit is contained in:
parent
d805fe7103
commit
c1dcfa70c9
1 changed files with 3 additions and 1 deletions
|
|
@ -2798,7 +2798,9 @@ class CostBreakdown(TypedDict, total=False):
|
|||
Detailed cost breakdown for a request
|
||||
"""
|
||||
|
||||
input_cost: float # Cost of input/prompt tokens
|
||||
input_cost: float # Cost of raw (non-cached) input tokens only
|
||||
cache_read_cost: float # Cost of cache-read tokens (discounted rate)
|
||||
cache_creation_cost: float # Cost of cache-write tokens (premium rate)
|
||||
output_cost: (
|
||||
float # Cost of output/completion tokens (includes reasoning if applicable)
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue