Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add System Instruction method in GenerativeModel Builder #10759

Closed
chikarenku opened this issue Apr 29, 2024 · 2 comments
Closed

add System Instruction method in GenerativeModel Builder #10759

chikarenku opened this issue Apr 29, 2024 · 2 comments
Labels
api: vertex-ai Issues related to the Vertex AI API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@chikarenku
Copy link

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
Screenshot 2024-04-29 at 9 12 09 AM

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
Screenshot 2024-04-29 at 9 48 24 AM

@JoeWang1127 JoeWang1127 added the api: vertex-ai Issues related to the Vertex AI API. label Apr 29, 2024
@mpeddada1
Copy link
Contributor

cc/ @ZhenyiQ

@mpeddada1 mpeddada1 added type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. priority: p2 Moderately-important priority. Fix may not be included in next release. labels May 6, 2024
@ZhenyiQ
Copy link
Collaborator

ZhenyiQ commented May 10, 2024

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: #10775. We will add sample code in the README.md soon!

@ZhenyiQ ZhenyiQ closed this as completed May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: vertex-ai Issues related to the Vertex AI API. priority: p2 Moderately-important priority. Fix may not be included in next release. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

4 participants