Why the Gemini API have this behavior?
Other problem is, when is the response reasonable, have somes “\n” in same way
Why the Gemini API have this behavior?
Other problem is, when is the response reasonable, have somes “\n” in same way
Hi @LuSRodri , Welcome to the forum.
If possible, could you please share the prompt and the structured output schema so that I can reproduce it on my end? Thanks.
Hi @GUNAND_MAYANGLAMBAM , Thank you!
I could not replay the problem. But is something like this:
I’ve been seeing the same problem today. Gemini 2.0 Flash and Gemini 2.0 Flash Lite (and even Gemini 2.0 Pro Exp) will occasionally infinitely repeat text (sometimes \n, sometimes the previous sentence).
When I change the structure (e.g. by removing the “summary” field) it seems to work consistently. My specific prompt uses a video, so I’m sure how well the chat can be shared, but in any case, here are the links:
I am also experiencing this issue. For me, I found the \n looped when hitting the \xa0 character in my input. However I now have another scenario where I am not able to find the culprit.
I’m also having this issue regularly. Using a nested pydantic schema and litellm to call gemini flash-2.0