google

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerativeAIClient

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

func NewGenerativeAIClient

func NewGenerativeAIClient(ctx context.Context, conf *config.Config) *GenerativeAIClient

func (*GenerativeAIClient) Close

func (g *GenerativeAIClient) Close() error

func (*GenerativeAIClient) CreateChatCompletion

func (g *GenerativeAIClient) CreateChatCompletion(
	ctx context.Context,
	req *openai.ChatCompletionRequest,
) (*openai.ChatCompletionResponse, error)

func (*GenerativeAIClient) CreateChatCompletionStream

func (g *GenerativeAIClient) CreateChatCompletionStream(
	ctx context.Context,
	req *openai.ChatCompletionRequest,
) (*openai.ChatCompletionStream, error)

Jump to

Keyboard shortcuts

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