forked from phoenix/litellm-mirror
fix response_cost_calculator
This commit is contained in:
parent
0a73fa6d01
commit
96ec2a5a19
1 changed files with 2 additions and 0 deletions
|
@ -854,6 +854,8 @@ def response_cost_calculator(
|
|||
if isinstance(response_object, BaseModel):
|
||||
response_object._hidden_params["optional_params"] = optional_params
|
||||
if isinstance(response_object, ImageResponse):
|
||||
if base_model is not None:
|
||||
model = base_model
|
||||
response_cost = completion_cost(
|
||||
completion_response=response_object,
|
||||
model=model,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue