mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 19:24:27 +00:00
fix predictions image generation response
This commit is contained in:
parent
31f9453618
commit
5d1fcc545b
1 changed files with 8 additions and 0 deletions
|
@ -1499,6 +1499,14 @@ class VertexLLM(BaseLLM):
|
|||
"""
|
||||
|
||||
_json_response = response.json()
|
||||
|
||||
if "predictions" not in _json_response:
|
||||
raise litellm.InternalServerError(
|
||||
message=f"image generation response does not contain 'predictions', got {_json_response}",
|
||||
llm_provider="vertex_ai",
|
||||
model=model,
|
||||
)
|
||||
|
||||
_predictions = _json_response["predictions"]
|
||||
|
||||
_response_data: List[Image] = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue