chat

package
v1.3.16-rc8 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromPath

func FromPath(path string) (models.Chat, error)

func IdFromPrompt

func IdFromPrompt(prompt string) string

func Save

func Save(saveAt string, chat models.Chat) error

Types

type ChatHandler

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

func New

func New(q models.ChatQuerier, confDir, args string, preMessages []models.Message) (*ChatHandler, error)

func (*ChatHandler) Query

func (q *ChatHandler) Query(ctx context.Context) error

Jump to

Keyboard shortcuts

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