Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultVersion = "vertex-2023-10-16"
Variables ¶
This section is empty.
Functions ¶
func WithCredentials ¶
func WithCredentials(ctx context.Context, region string, projectID string, creds *google.Credentials) sdkoption.RequestOption
WithCredentials returns a request option which uses the provided credentials for Google Vertex AI and registers middleware that intercepts request to the Messages API.
func WithGoogleAuth ¶
func WithGoogleAuth(ctx context.Context, region string, projectID string, scopes ...string) sdkoption.RequestOption
WithGoogleAuth returns a request option which loads the Application Default Credentials for Google Vertex AI and registers middleware that intercepts requests to the Messages API.
If you already have a *google.Credentials, it is recommended that you instead call WithCredentials directly.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.