1
0

Merge pull request #35 from InterestingDarkness/incognito

This commit is contained in:
Antonio Cheong 2023-05-26 08:42:06 +08:00 committed by GitHub
commit 0bcb8635a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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