Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Chat ¶
type Chat struct {
// contains filtered or unexported fields
}
func (*Chat) Initialize ¶
func (chat *Chat) Initialize(bird common.ExternalChatManager)
type Config ¶
type Config struct { OpenAIKey string `yaml:"open_ai_key" env:"OPENAI_KEY"` EnableCommand Feature `yaml:"enable_command"` EnableChat Feature `yaml:"enable_chat"` EnableImageGeneration Feature `yaml:"enable_image_generation"` Prompts []chatgpt.Prompt `yaml:"prompts"` ChatGPTModel string `yaml:"chatgpt_model"` DalleModel string `yaml:"dalle_model"` ResponseChance float64 `yaml:"response_chance"` HistoryLength int `yaml:"history_length"` }
type Feature ¶
type Feature string
Feature is a boolean string used to toggle functionality
func (Feature) IsEnabledByDefault ¶
IsEnabled returns true when a feature is set to be true or if the feature flag is not set at all
Click to show internal directories.
Click to hide internal directories.