mirror of
https://github.com/BerriAI/litellm.git
synced 2026-10-06 02:48:13 +00:00
transform_image_generation_response
This commit is contained in:
parent
33f65114b6
commit
51a140feb7
1 changed files with 1 additions and 2 deletions
|
|
@ -190,8 +190,7 @@ class GoogleImageGenConfig(BaseImageGenerationConfig):
|
|||
predictions = response_data.get("predictions", [])
|
||||
for prediction in predictions:
|
||||
# Google AI returns base64 encoded images in the prediction
|
||||
generated_images = prediction.get("generatedImages", [])
|
||||
for image_data in generated_images:
|
||||
for image_data in prediction:
|
||||
model_response.data.append(ImageObject(
|
||||
b64_json=image_data.get("bytesBase64Encoded", None),
|
||||
url=None, # Google AI returns base64, not URLs
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue