Closed koossaayy closed 2 months ago
Hello @koossaayy, Thanks for your feedback. I was able to reproduce the problem locally. As far as I understand, it seems to be a general problem with gemini ai. Gemini returns the following response in some requests other than the normal api response. I am continuing to investigate the problem and will let you know when I find the most appropriate solution.
{
"finishReason": "RECITATION",
"index" : 0,
}
Hello @koossaayy
We have a new fix for this issue. Can you try again after composer update
?
https://github.com/google-gemini-php/client/releases/tag/1.0.4
Hello, Running the following code
Will return the mentioned error. Here is the full error stack : https://flareapp.io/share/xmN9W6p5
Update:
Commenting the last entries in the history, won't trigger that error. I guess that's something I am doing on my end, with the prompts. I will try more, and see.