Documentation
¶
Index ¶
- func AddMessage(chatID int, role, apiName, content string) error
- func CloseDB()
- func CreateChat(title string) (int, error)
- func DeleteAPIKey(apiName string) error
- func DeleteChat(chatID int) error
- func FlushDB() error
- func GetAPIKey(apiName string) (string, error)
- func GetAllAPIKeys() ([]struct{ ... }, error)
- func InitDB() error
- func MigrateDatabase() error
- func SetAPIKey(apiName, apiKey string) error
- func UpdateChatContext(chatID int, context string) error
- func UpdateChatTitle(chatID int, newTitle string) error
- type Chat
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMessage ¶
func CreateChat ¶
func DeleteAPIKey ¶
func DeleteChat ¶ added in v1.4.0
func GetAllAPIKeys ¶
func MigrateDatabase ¶ added in v1.4.0
func MigrateDatabase() error
func UpdateChatContext ¶ added in v1.4.0
func UpdateChatTitle ¶ added in v1.4.0
Types ¶
Click to show internal directories.
Click to hide internal directories.