ai

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidApiKey = errors.New("invalid api key")
	ErrRateLimit     = errors.New("rate limit error")
	ErrMaxPromptSize = errors.New("maximum prompt size exceeded")
	ErrModelNotFound = errors.New("model not found")
)

define errors

Functions

This section is empty.

Types

type AI

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

func NewAI

func NewAI() *AI

func (*AI) SendMsg

func (a *AI) SendMsg(content string) (string, error)

Jump to

Keyboard shortcuts

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