gigachat

package
v0.0.0-...-9a938bf Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrCantGetCompletion         = errors.New("can't get completion")
	ErrCantSendCompletionRequest = errors.New("can't send completion request")
)

Functions

This section is empty.

Types

type Client

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

func New

func New(cfg config.GigaChatConfig) (*Client, error)

func (*Client) Completions

func (c *Client) Completions(text string) (string, error)

type Role

type Role string
const (
	SystemRole Role = "system"
	UserRole   Role = "user"
)

Jump to

Keyboard shortcuts

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