Documentation
¶
Index ¶
- func ChatCompletion(ctx context.Context, session_id string, prompt string, mode string, ...) chan models.StoredMessageData
- func CompactMemory(session_id string) (int64, error)
- func CreateSession(prompt string) (string, error)
- func DeleteSession(session_id string) error
- func GetAvailableSkills(session_id string) []string
- func GetContextSize(session_id string) (int64, error)
- func GetCurrentModel() (config.ResModel, error)
- func GetCurrentTodoList(session_id string) ([]models.ToDo, error)
- func GetModels() ([]config.ResModel, []config.RecentModels, error)
- func GetSessionData(session_id string) ([]models.Message, error)
- func ListSession() ([]models.Session, error)
- func Reverse(arr []models.Session) []models.Session
- func SendMessage(session_id string, message string, img_bytes [][]byte) (models.Message, error)
- func SetApiKey(m config.ResModel, apikey string) error
- func SetCurrentModel(m config.ResModel) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChatCompletion ¶
func CompactMemory ¶ added in v0.1.13
func CreateSession ¶
func DeleteSession ¶
func GetAvailableSkills ¶ added in v0.1.2
func GetContextSize ¶ added in v0.1.2
func GetCurrentModel ¶ added in v0.1.2
func ListSession ¶
func SendMessage ¶
func SetCurrentModel ¶ added in v0.1.8
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.