client

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChatCompletion

func ChatCompletion(ctx context.Context, session_id string, prompt string, mode string, img_bytes [][]byte) chan models.StoredMessageData

func CompactMemory added in v0.1.13

func CompactMemory(session_id string) (int64, error)

func CreateSession

func CreateSession(prompt string) (string, error)

func DeleteSession

func DeleteSession(session_id string) error

func GetAvailableSkills added in v0.1.2

func GetAvailableSkills(session_id string) []string

func GetContextSize added in v0.1.2

func GetContextSize(session_id string) (int64, error)

func GetCurrentModel added in v0.1.2

func GetCurrentModel() (config.ResModel, error)

func GetCurrentTodoList

func GetCurrentTodoList(session_id string) ([]models.ToDo, error)

func GetModels added in v0.1.2

func GetModels() ([]config.ResModel, []config.RecentModels, error)

func GetSessionData

func GetSessionData(session_id string) ([]models.Message, error)

func ListSession

func ListSession() ([]models.Session, error)

func Reverse

func Reverse(arr []models.Session) []models.Session

func SendMessage

func SendMessage(session_id string, message string, img_bytes [][]byte) (models.Message, error)

func SetApiKey added in v0.1.8

func SetApiKey(m config.ResModel, apikey string) error

func SetCurrentModel added in v0.1.8

func SetCurrentModel(m config.ResModel) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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