Documentation
¶
Index ¶
- func CmdConfig(editor string, setting bool, profile bool) error
- type CMDEditor
- type Chat
- type ChatLog
- func (c *ChatLog) AddChatMessage(chatMessage ChatMessage) *ChatLog
- func (c *ChatLog) CreateOpenAIMessages() (messages []openai.Message)
- func (c *ChatLog) DeleteFile() error
- func (c *ChatLog) FilePathForUser() (string, error)
- func (c *ChatLog) FlushFile() error
- func (c *ChatLog) InitLogFile(title string, fileNameFormat string)
- func (c *ChatLog) LoadFile(filePath string) error
- func (c *ChatLog) LoadLogMessage() error
- type ChatLogToml
- type ChatMessage
- type ChatTemplate
- type Config
- type Editor
- type FileInfo
- type Message
- type Profile
- type ProfileToml
- type Setting
- type Settings
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chat ¶
type Chat struct {
Model string `toml:"model"`
Templates []ChatTemplate `toml:"templates"`
FileNameFormat string `toml:"fileNameFormat"`
}
type ChatLog ¶
type ChatLog struct {
ConfigDir string
ChatLogToml ChatLogToml
FilePath *string
}
func (*ChatLog) AddChatMessage ¶
func (c *ChatLog) AddChatMessage(chatMessage ChatMessage) *ChatLog
func (*ChatLog) CreateOpenAIMessages ¶
func (*ChatLog) DeleteFile ¶
func (*ChatLog) FilePathForUser ¶
func (*ChatLog) InitLogFile ¶
func (*ChatLog) LoadLogMessage ¶
type ChatLogToml ¶
type ChatLogToml struct {
Messages []ChatMessage `toml:"messages"`
}
type ChatMessage ¶
type ChatTemplate ¶
type Editor ¶
func InitEditor ¶
type ProfileToml ¶
type ProfileToml struct {
Profiles []Profile `toml:"profiles"`
}
Click to show internal directories.
Click to hide internal directories.

