update
This commit is contained in:
@@ -12,14 +12,6 @@ type Controller struct {
|
||||
openaiClient *openai.Client
|
||||
unraidAPIKey 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 {
|
||||
@@ -31,8 +23,7 @@ func NewController() *Controller {
|
||||
unraidURI := os.Getenv("UNRAID_URI")
|
||||
|
||||
if err != nil {
|
||||
fmt.Println(err.Error())
|
||||
//return err
|
||||
fmt.Println(".env file not found, using environment variables")
|
||||
}
|
||||
return &Controller{
|
||||
openaiClient: openaiClient,
|
||||
|
||||
Reference in New Issue
Block a user