-
-
Notifications
You must be signed in to change notification settings - Fork 81
Open
Description
Hello,
I am trying the snippet used here https://github.com/google-gemini-php/client?tab=readme-ov-file#text-and-video-input
My goal is to supply an image, have Gemini modify it and send it to me back
However I only receive text
- If I call ->text() first then I receive text result and all other fields, mainly inlineData, are NULL ... the texts cheerfully says that yes, Gemini modified the image and it is here
- If I call ->parts() first then I get error "'The
GenerateContentResponse::parts()quick accessor only works for a single candidate, but none were returned. Check theGenerateContentResponse::$promptFeedbackto see if the prompt was blocked." ... $promptFeedback is NULL
It only has usageMetadata, modelVersion and responseId (model is "gemini-2.0-flash")
Can you please advise?
Thank you!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels