vertexai

package
v1.19.6 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package vertexai is used to provide the vertexai service

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider is the provider for google vertexai.

func NewProvider

func NewProvider(projectID, location, model, credentialsFile string) *Provider

NewProvider creates a new vertexai provider.

func (*Provider) GetChatCompletions

GetChatCompletions implements provider.LLMProvider.

func (*Provider) GetChatCompletionsStream

func (p *Provider) GetChatCompletionsStream(ctx context.Context, req openai.ChatCompletionRequest, md metadata.M) (provider.ResponseRecver, error)

GetChatCompletionsStream implements provider.LLMProvider.

func (*Provider) Name

func (p *Provider) Name() string

Name implements provider.LLMProvider.

Jump to

Keyboard shortcuts

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