From 5bf09af5a4e9ff0df155d5a6da935df2e667978c Mon Sep 17 00:00:00 2001 From: InterestingDarkness Date: Fri, 26 May 2023 04:46:03 +0800 Subject: [PATCH] incognito mode --- internal/chatgpt/typings.go | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/internal/chatgpt/typings.go b/internal/chatgpt/typings.go index 8f74ae6..2d43445 100644 --- a/internal/chatgpt/typings.go +++ b/internal/chatgpt/typings.go @@ -18,17 +18,19 @@ type chatgpt_author struct { } type ChatGPTRequest struct { - Action string `json:"action"` - Messages []chatgpt_message `json:"messages"` - ParentMessageID string `json:"parent_message_id,omitempty"` - Model string `json:"model"` + Action string `json:"action"` + Messages []chatgpt_message `json:"messages"` + ParentMessageID string `json:"parent_message_id,omitempty"` + Model string `json:"model"` + HistoryAndTrainingDisabled bool `json:"history_and_training_disabled"` } func NewChatGPTRequest() ChatGPTRequest { return ChatGPTRequest{ - Action: "next", - ParentMessageID: uuid.NewString(), - Model: "text-davinci-002-render-sha", + Action: "next", + ParentMessageID: uuid.NewString(), + Model: "text-davinci-002-render-sha", + HistoryAndTrainingDisabled: true, } }