Skip to content

Commit

Permalink
Merge pull request #23 from xqdoo00o/master
Browse files Browse the repository at this point in the history
continue conv
  • Loading branch information
bi1101 authored May 11, 2024
2 parents e4a8b44 + 6a55cb9 commit 288d5c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion conversion/requests/chatgpt/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ func ConvertAPIRequest(api_request official_types.APIRequest, account string, se
val := api_request.Model[12:]
chatgpt_request.ConversationMode.Kind = "gizmo_interaction"
chatgpt_request.ConversationMode.GizmoId = val
chatgpt_request.Model = "text-davinci-002-render-sha"
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,10 @@ func nightmare(c *gin.Context) {
translated_request.Action = "continue"
translated_request.ConversationID = continue_info.ConversationID
translated_request.ParentMessageID = continue_info.ParentID
chat_require = chatgpt.CheckRequire(&secret, deviceId, proxy_url)
if chat_require.Proof.Required {
proofToken = chatgpt.CalcProofToken(chat_require, proxy_url)
}
if chat_require.Arkose.Required {
chatgpt_request_converter.RenewTokenForRequest(&translated_request, secret.PUID, chat_require.Arkose.DX, proxy_url)
}
Expand Down

0 comments on commit 288d5c0

Please sign in to comment.