fix(types): allow numeric hidden response cost

Allow standard logging hidden params to carry numeric response_cost values, matching LiteLLM's calculated cost payloads.

Made-with: Cursor
This commit is contained in:
Milan 2026-04-27 17:20:22 +03:00
parent 7306fb1f87
commit a3e26ddc5e
No known key found for this signature in database

View file

@ -2651,7 +2651,7 @@ class StandardLoggingHiddenParams(TypedDict):
] # id of the model in the router, separates multiple models with the same name but different credentials
cache_key: Optional[str]
api_base: Optional[str]
response_cost: Optional[str]
response_cost: Optional[Union[str, float]]
litellm_overhead_time_ms: Optional[float]
additional_headers: Optional[StandardLoggingAdditionalHeaders]
batch_models: Optional[List[str]]