From 56224406a3d6fbe1db2a0729eba30cdd9fd6114a Mon Sep 17 00:00:00 2001 From: Antonio Date: Tue, 13 Jun 2023 18:06:00 +0800 Subject: [PATCH] default --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index ae25ef2..7b28940 100644 --- a/main.go +++ b/main.go @@ -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 != "" {