This commit is contained in:
2023-04-08 16:00:42 -05:00
parent 8351c16bbd
commit 55594456da

View File

@@ -12,6 +12,14 @@ type Controller struct {
openaiClient *openai.Client openaiClient *openai.Client
unraidAPIKey string unraidAPIKey string
unraidURI string unraidURI string
config *configStruct
}
type configStruct struct {
openaiApiKey string `json : "OPENAI_API_KEY"`
unraidAPIKey string `json : "UNRAID_API_KEY"`
unraidURI string `json : "UNRAID_URI"`
} }
func NewController() *Controller { func NewController() *Controller {