mirror of
https://github.com/BerriAI/litellm.git
synced 2026-09-15 23:31:29 +00:00
fix linting errors
This commit is contained in:
parent
b0735c9e9f
commit
bfb39eb0cd
2 changed files with 5 additions and 2 deletions
|
|
@ -16,7 +16,7 @@ class VertexImageGeneration(VertexLLM):
|
|||
self,
|
||||
json_response: Dict[str, Any],
|
||||
model_response: litellm.ImageResponse,
|
||||
model: str,
|
||||
model: Optional[str] = None,
|
||||
) -> litellm.ImageResponse:
|
||||
if "predictions" not in json_response:
|
||||
raise litellm.InternalServerError(
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import re
|
||||
from datetime import datetime
|
||||
from typing import Union
|
||||
|
||||
import httpx
|
||||
|
||||
|
|
@ -117,7 +118,9 @@ class PassThroughEndpointLogging:
|
|||
model = self.extract_model_from_url(url_route)
|
||||
_json_response = httpx_response.json()
|
||||
|
||||
litellm_model_response = litellm.ModelResponse()
|
||||
litellm_model_response: Union[
|
||||
litellm.ModelResponse, litellm.EmbeddingResponse, litellm.ImageResponse
|
||||
] = litellm.ModelResponse()
|
||||
if vertex_image_generation_class.is_image_generation_response(
|
||||
_json_response
|
||||
):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue