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

[Vertex AI] Add VertexAI.Preview nested type for preview APIs #14334

Draft
wants to merge 1 commit into
base: vertex-imagen
Choose a base branch
from

Conversation

andrewheard
Copy link
Contributor

Added a nested struct Preview in VertexAI for encapsulating Public Preview API surfaces. This clarifies that ImagenModel is in Public Preview.

Before:

let model = VertexAI.vertexAI().imagenModel("imagen-3.0-generate-001")

After:

let model = VertexAI.vertexAI().preview().imagenModel("imagen-3.0-generate-001")

Note: This is the only way to obtain an instance of ImagenModel.

#14221
#no-changelog

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

Successfully merging this pull request may close these issues.

2 participants