1
0
This commit is contained in:
Antonio 2023-06-16 16:54:01 +08:00
parent febe0cff3e
commit 287e0ef296

View File

@ -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,
}
}