mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-29 01:42:19 +00:00
fix(cost): fall back to completion_window when service_tier normalizes away
This commit is contained in:
parent
0645d9df71
commit
a978d5e03b
1 changed files with 1 additions and 1 deletions
|
|
@ -1396,7 +1396,7 @@ def completion_cost(
|
|||
|
||||
# Extract service_tier from optional_params if not provided directly
|
||||
if service_tier is None and optional_params is not None:
|
||||
service_tier = optional_params.get("service_tier")
|
||||
service_tier = _normalize_service_tier(optional_params.get("service_tier"))
|
||||
if service_tier is None:
|
||||
service_tier = _service_tier_from_completion_window(cast(dict[str, object], optional_params))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue