Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
default
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio committed Jun 13, 2023
1 parent 3ea859a commit 5622440
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ func admin(c *gin.Context) {
}

func init() {
if OpenAI_HOST == "" {
OpenAI_HOST = "chat.openai.com"
}
authorizations.OpenAI_Email = os.Getenv("OPENAI_EMAIL")
authorizations.OpenAI_Password = os.Getenv("OPENAI_PASSWORD")
if authorizations.OpenAI_Email != "" && authorizations.OpenAI_Password != "" {
Expand Down

0 comments on commit 5622440

Please sign in to comment.