Skip to content
This repository has been archived by the owner on Aug 10, 2023. It is now read-only.

Commit

Permalink
Merge pull request #35 from InterestingDarkness/incognito
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonio Cheong authored May 26, 2023
2 parents 214463f + 5bf09af commit 0bcb863
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions internal/chatgpt/typings.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
}

Expand Down

0 comments on commit 0bcb863

Please sign in to comment.