mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-12 23:01:41 +00:00
fix: linting
This commit is contained in:
parent
b351c543dc
commit
ebb19ff8cb
1 changed files with 6 additions and 2 deletions
|
|
@ -1550,7 +1550,11 @@ class ImageUsageInputTokensDetails(BaseLiteLLMOpenAIResponseObject):
|
|||
"""The number of text tokens in the input prompt."""
|
||||
|
||||
|
||||
class ImageUsage(BaseLiteLLMOpenAIResponseObject):
|
||||
from openai.types.images_response import ImagesResponse as OpenAIImageResponse
|
||||
from openai.types.images_response import Usage as OpenAIImageResponseUsage
|
||||
|
||||
|
||||
class ImageUsage(OpenAIImageResponseUsage, BaseLiteLLMOpenAIResponseObject):
|
||||
input_tokens: int
|
||||
"""The number of tokens (images and text) in the input prompt."""
|
||||
|
||||
|
|
@ -1569,7 +1573,7 @@ from openai.types.images_response import ImagesResponse as OpenAIImageResponse
|
|||
|
||||
class ImageResponse(OpenAIImageResponse, BaseLiteLLMOpenAIResponseObject):
|
||||
_hidden_params: dict = {}
|
||||
usage: ImageUsage
|
||||
usage: Optional[ImageUsage] = None
|
||||
|
||||
def __init__(
|
||||
self,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue