vertex

package
v1.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 12 Imported by: 9

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL