Skip to content

add System Instruction method in GenerativeModel Builder #10759

Description

@chikarenku

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: vertex-aiIssues related to the Vertex AI API.priority: p2Moderately-important priority. Fix may not be included in next release.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions