chat

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Separator = "(╯°o°)╯︵ ┻━┻"
)

Variables

This section is empty.

Functions

func IntSliceToString

func IntSliceToString(nums []int) string

func StringToIntSlice

func StringToIntSlice(s string) ([]int, error)

Types

type Chat

type Chat struct {
	ID        *int64   `json:"id"`
	Model     int      `json:"model"`
	Context   []int    `json:"context"`
	Owner     string   `json:"owner"`
	Title     string   `json:"title"`
	Questions []string `json:"questions"`
	Responses []string `json:"responses"`
}

func (*Chat) ContextFromDB

func (c *Chat) ContextFromDB(db []byte)

func (*Chat) ContextToDB

func (c *Chat) ContextToDB() []byte

func (*Chat) QuestionsToString

func (c *Chat) QuestionsToString() string

func (*Chat) ResponsesToString

func (c *Chat) ResponsesToString() string

func (*Chat) SetQuestions

func (c *Chat) SetQuestions(questions string)

func (*Chat) SetResponses

func (c *Chat) SetResponses(responses string)

Jump to

Keyboard shortcuts

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