mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-10 03:28:53 +00:00
refactor(cost): drop unused image generation call predicate
Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
parent
dc4a6118ee
commit
f7db106bc8
1 changed files with 0 additions and 9 deletions
|
|
@ -235,15 +235,6 @@ class StandardBuiltInToolCostTracking:
|
|||
)
|
||||
return max(count, 1)
|
||||
|
||||
@staticmethod
|
||||
def response_object_includes_image_generation_call(response_object: object) -> bool:
|
||||
"""Check if the response object includes an image generation call (Responses API)."""
|
||||
if not isinstance(response_object, ResponsesAPIResponse):
|
||||
return False
|
||||
return StandardBuiltInToolCostTracking.response_includes_output_type(
|
||||
response_object=response_object, output_type="image_generation_call"
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def _image_generation_call_cost(output_item: object, custom_llm_provider: str | None) -> float:
|
||||
from litellm.cost_calculator import (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue