diff --git a/typings/chatgpt/request.go b/typings/chatgpt/request.go index 6f4ef8b..87dad55 100644 --- a/typings/chatgpt/request.go +++ b/typings/chatgpt/request.go @@ -33,12 +33,12 @@ type ChatGPTRequest struct { } func NewChatGPTRequest() ChatGPTRequest { - disable_history := os.Getenv("DISABLE_HISTORY") != "" + enable_history := os.Getenv("ENABLE_HISTORY") == "" return ChatGPTRequest{ Action: "next", ParentMessageID: uuid.NewString(), Model: "text-davinci-002-render-sha", - HistoryAndTrainingDisabled: disable_history, + HistoryAndTrainingDisabled: !enable_history, } }