Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoConfigFound = errors.New("config file or not found")
ErrNoConfigFound config file not found
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct { PathOverride string `toml:"pathOverride"` Debug bool `toml:"debug"` Professor ProfessorConfig }
App holds the application configuration
type OpenAISourceConfig ¶
type OpenAISourceConfig struct { ApiKey string `toml:"key"` CustomPrompt string `toml:"customPrompt"` Url string `toml:"url"` Model string `toml:"model"` }
OpenAISourceConfig holds the configuration for setting the OpenAI professor source.
type ProfessorConfig ¶
type ProfessorConfig struct { Enabled bool `toml:"enabled"` Type ProfessorSourceType `toml:"type"` OpenAI OpenAISourceConfig `toml:"openai"` }
ProfessorConfig is the config for the Professor feature.
type ProfessorSourceType ¶
type ProfessorSourceType string
ProfessorSourceType type for the professor source implementation.
const ( // OpenAISourceType used for setting OpenAI as the professor source. OpenAISourceType ProfessorSourceType = "openai" )
Click to show internal directories.
Click to hide internal directories.