tools

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChatBot

type ChatBot interface {
	Setup(token string) error
	TestConnection() error
	Query(string) models.ResponseMessage
	NewClient() ChatBot
}

type ChatBotInstance

type ChatBotInstance struct {
	ChatBot
}

func NewChatBot

func NewChatBot(bot ChatBot) ChatBotInstance

type Davinci

type Davinci struct {
	MaxTokens   int
	Temperature float64
	// contains filtered or unexported fields
}

func (*Davinci) ActivateEmojiSupport added in v1.0.1

func (d *Davinci) ActivateEmojiSupport()

func (*Davinci) NewClient added in v1.0.6

func (d *Davinci) NewClient() ChatBot

NewClient resets the prompt and messages and returns a new client

func (*Davinci) Query

func (d *Davinci) Query(message string) models.ResponseMessage

func (*Davinci) SetRetryLimit added in v1.1.1

func (d *Davinci) SetRetryLimit(limit uint8)

func (*Davinci) SetTimeout added in v1.1.1

func (d *Davinci) SetTimeout(timeout time.Duration)

func (*Davinci) Setup

func (d *Davinci) Setup(token string) error

func (*Davinci) TestConnection

func (d *Davinci) TestConnection() error

Jump to

Keyboard shortcuts

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