Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
func Command(client *openai.Client, completionModels []string, messagesCache *MessagesCache, ignoredChannelsCache *IgnoredChannelsCache) *bot.Command
Types ¶
type IgnoredChannelsCache ¶
type IgnoredChannelsCache map[string]struct{}
type MessagesCache ¶
type MessagesCache struct { *lru.Cache[string, *MessagesCacheData] }
func NewMessagesCache ¶
func NewMessagesCache(size int) (*MessagesCache, error)
type MessagesCacheData ¶
Click to show internal directories.
Click to hide internal directories.