vertex

package
v0.0.0-...-dd22fb7 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(opts ...Option) *Client

func (*Client) Message

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithCredentials

func WithCredentials(creds *google.Credentials) Option

WithCredentials allows the user to pass in their own credentials

func WithDebugLogger

func WithDebugLogger(l *slog.Logger) Option

func WithProjectID

func WithProjectID(projectID string) Option

Sets the projectID to connect to

func WithRegion

func WithRegion(region string) Option

Sets the region to connect to

func WithRoundTripper

func WithRoundTripper(r http.RoundTripper) Option

Set a custom RoundTripper. This is useful if you wish to customize the http request before sending it.

type VertexModel

type VertexModel string
const (
	Claude3Dot5SonnetV2 VertexModel = "claude-3-5-sonnet-v2@20241022"
	Claude3Dot5Haiku    VertexModel = "claude-3-5-haiku@20241022"
	Claude3Opus         VertexModel = "claude-3-opus@20240229"
	Claude3Dot5Sonnet   VertexModel = "claude-3-5-sonnet@20240620"
	Claude3Sonnet       VertexModel = "claude-3-sonnet@20240229"
	Claude3Haiku        VertexModel = "claude-3-haiku@20240307"
)

func ModelToVertexModel

func ModelToVertexModel(m string) (VertexModel, error)

func (VertexModel) PrettyName

func (m VertexModel) PrettyName() string

Jump to

Keyboard shortcuts

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