Closed coderphonui closed 2 months ago
I have figured out the issue. In my current version of Spring AI, the code on the highlighted line of GemeniModel does not add the part for the message.
I see it's fixed on the main branch:
However, seems the snapshot release is still using the old version.
Bug description
I am using Spring AI in my project and try to generate the content several times with the same chatClient. With Vertex Gemini, I got the exception at the second time to execute the call method. Below is the exception I am facing:
Environment I am using the Java 17, Spring AI 1.0.0-SNAPSHOT and spring-ai-vertex-ai-gemini-spring-boot-starter
Steps to reproduce
Code to reproduce the issue:
Expected behavior
chatClient should be able to run many times as long as the prompt correct.