fail ai test fix

This commit is contained in:
Ishaan Jaffer
2025-10-31 20:32:44 -07:00
parent 014362cace
commit 5e4da65664
@@ -11,8 +11,8 @@ from litellm.types.utils import (
ImageResponse,
ModelInfo,
PassthroughCallTypes,
Usage,
ServiceTier,
Usage,
)
from litellm.utils import get_model_info
@@ -716,6 +716,15 @@ class CostCalculatorUtils:
model=model,
image_response=completion_response,
)
elif custom_llm_provider == litellm.LlmProviders.FAL_AI.value:
from litellm.llms.fal_ai.cost_calculator import (
cost_calculator as fal_ai_image_cost_calculator,
)
return fal_ai_image_cost_calculator(
model=model,
image_response=completion_response,
)
else:
return default_image_cost_calculator(
model=model,