studio

package
v0.0.0-...-3b69c6d Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const REGION = "studio"

A unique identifier for the Gemini Studio provider

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

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

func NewEndpoint

func NewEndpoint(apiKey string) (*Endpoint, error)

func (*Endpoint) GenerateChatCompletion

func (ep *Endpoint) GenerateChatCompletion(ctx context.Context, openaiRequest *openai.ChatCompletionRequest) (*openai.ChatCompletionResponse, error)

func (*Endpoint) Ping

func (ep *Endpoint) Ping(ctx context.Context) (time.Duration, error)

func (*Endpoint) Provider

func (ep *Endpoint) Provider() string

func (*Endpoint) Region

func (ep *Endpoint) Region() string

func (*Endpoint) Shutdown

func (ep *Endpoint) Shutdown() error

Jump to

Keyboard shortcuts

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