1
0

Merge pull request #68 from oldweipro/bugfix

This commit is contained in:
Antonio Cheong 2023-06-19 16:23:57 +08:00 committed by GitHub
commit 43fc705f70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,7 +186,7 @@ func Handler(c *gin.Context, response *http.Response, token string, translated_r
if original_response.Message.Author.Role != "assistant" || original_response.Message.Content.Parts == nil {
continue
}
if original_response.Message.Metadata.MessageType != "next" {
if original_response.Message.Metadata.MessageType != "next" && original_response.Message.Metadata.MessageType != "continue" {
continue
}
response_string := chatgpt_response_converter.ConvertToString(&original_response, &previous_text)