Documentation ¶
Index ¶
- func AppendMessage(role string, content string)
- func CreateTable()
- func DecryptMessage(key []byte, encodedMessage string) (string, error)
- func EncryptMessage(key []byte, message string) (string, error)
- func GetAppPath() string
- func GetEncryptionKey() []byte
- func InitOrDie()
- func InsertKey(key string, value string)
- func IsSettingsTableCreated() bool
- func OpenAiRequest(query string) string
- func OpenDatabase() error
- func PopulateSettings()
- func PrintAiAnswer(input string)
- func PromptCustomOrDefault(question string, defaultValue string) string
- func PromptInit()
- func ReadQuestion()
- func RunQuery(input string)
- func StartAiThinking()
- func StopAiThinking()
- func StrToFloat(s string) float32
- func StrToInt(s string) int
- type ApiPostBody
- type Choice
- type Message
- type OpenApiResponse
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendMessage ¶
func CreateTable ¶
func CreateTable()
func GetAppPath ¶
func GetAppPath() string
func GetEncryptionKey ¶
func GetEncryptionKey() []byte
func IsSettingsTableCreated ¶
func IsSettingsTableCreated() bool
func OpenAiRequest ¶
func OpenDatabase ¶
func OpenDatabase() error
func PopulateSettings ¶
func PopulateSettings()
func PrintAiAnswer ¶
func PrintAiAnswer(input string)
func PromptCustomOrDefault ¶
func PromptInit ¶
func PromptInit()
func ReadQuestion ¶
func ReadQuestion()
Types ¶
type ApiPostBody ¶
type Message ¶
func GetMessages ¶
func GetMessages() []Message
type OpenApiResponse ¶
Click to show internal directories.
Click to hide internal directories.