Problem you have encountered:
Gemini Vertex AI API sometimes repeats the ending phrase or words in response. This includes the repetition of last words or last sentences.
What you expected to happen:
API response without repetition of ending words or phrases
Steps to reproduce:
Call this curl command in Postman multiple times and you will notice the ending sentence repeated twice. https://drive.google.com/file/d/14zu0oXH3vUfVUuhmp-2BiwvzUDTbC75g/view?usp=sharing