client

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: May 9, 2026 License: MIT Imports: 14 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 CreateSession

func CreateSession(prompt string) string

func DeleteSession

func DeleteSession(session_id string)

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

func GetCurrentModel added in v0.1.2

func GetCurrentModel() (config.ResModel, error)

func GetCurrentTodoList

func GetCurrentTodoList(session_id string) []models.ToDo

func GetModels added in v0.1.2

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

func GetSessionData

func GetSessionData(session_id string) []models.Message

func ListSession

func ListSession() []models.Session

func Reverse

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

func SendMessage

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

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