mirror of
https://github.com/tiennm99/litellm.git
synced 2026-08-15 18:24:07 +00:00
fix - default value for cost
This commit is contained in:
@@ -276,12 +276,14 @@ class LowestCostLoggingHandler(CustomLogger):
|
||||
item_litellm_model_name, {}
|
||||
)
|
||||
item_input_cost = item_litellm_model_cost_map.get(
|
||||
"input_cost_per_token", 0.0
|
||||
"input_cost_per_token", 5.0
|
||||
)
|
||||
item_output_cost = item_litellm_model_cost_map.get(
|
||||
"output_cost_per_token", 0.0
|
||||
"output_cost_per_token", 5.0
|
||||
)
|
||||
|
||||
# if litellm["model"] is not in model_cost map -> use item_cost = $10
|
||||
|
||||
item_cost = item_input_cost + item_output_cost
|
||||
|
||||
item_rpm = item_map.get(precise_minute, {}).get("rpm", 0)
|
||||
|
||||
Reference in New Issue
Block a user