google-cloud-java
google-cloud-java copied to clipboard
add System Instruction method in GenerativeModel Builder
In Python SDK, for Gemini, GenerativeModel has implemented System_instruction parameter. We can setup the system prompt when using it.
https://cloud.google.com/python/docs/reference/aiplatform/latest/vertexai.generative_models.GenerativeModel#parameter
But in Java SDK, the method(setSystemInstruction) hasn't been implemented. we would love the have the method. thank you.
https://cloud.google.com/java/docs/reference/google-cloud-vertexai/latest/com.google.cloud.vertexai.generativeai.GenerativeModel.Builder
cc/ @ZhenyiQ
Thanks @chikarenku for raising this! We didn't prioritize this earlier but it's now in version 1.3.0. Thanks to @glaforge 's contribution: https://github.com/googleapis/google-cloud-java/pull/10775. We will add sample code in the README.md soon!