vertex

package
v0.0.0-...-c3fa2bf Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package vertex implements the Vertex AI api it is largely similar to the Google "ai studio" provider but uses a different library...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type VertexAIProvider

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

func NewVertexAIProvider

func NewVertexAIProvider(ctx context.Context, projectID, location string) (*VertexAIProvider, error)

func (*VertexAIProvider) GenerateResponse

func (p *VertexAIProvider) GenerateResponse(ctx context.Context, req llm.InferRequest) (string, error)

func (*VertexAIProvider) GenerateResponseAsync

func (p *VertexAIProvider) GenerateResponseAsync(ctx context.Context, req llm.InferRequest) (<-chan llm.StreamDelta, error)

Jump to

Keyboard shortcuts

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