You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I verified that the issue exists in the latest chatgpt release
Verify webapp is working
I verify that the ChatGPT webapp is working properly for this account.
Environment details
I'm doing a test AWS Lambda function in Node.js 18.x
Describe the Bug
I apologize, can you suggest how to solve my problem. I have added data streaming directly from your onProgress, but when I test how the function works, I sometimes get duplicate messages. My code looks like this:
const res = await api.sendMessage(question, {
systemMessage: role,
onProgress: (partialResponse) => {
responseText = partialResponse.text;
responseStream.write(responseText);
}
})
During testing, I sometimes get duplicates of the following kind: "The Three of PentaclesThe Three of Pentacles suggestsThe Three of Pentacles suggests that"
Could you please advise me if I did the right thing to add the data return directly from your 'onProgress' or do I need to modify my code
The text was updated successfully, but these errors were encountered:
Verify latest release
chatgpt
releaseVerify webapp is working
Environment details
I'm doing a test AWS Lambda function in Node.js 18.x
Describe the Bug
I apologize, can you suggest how to solve my problem. I have added data streaming directly from your onProgress, but when I test how the function works, I sometimes get duplicate messages. My code looks like this:
const res = await api.sendMessage(question, {
systemMessage: role,
onProgress: (partialResponse) => {
responseText = partialResponse.text;
responseStream.write(responseText);
}
})
During testing, I sometimes get duplicates of the following kind: "The Three of PentaclesThe Three of Pentacles suggestsThe Three of Pentacles suggests that"
Could you please advise me if I did the right thing to add the data return directly from your 'onProgress' or do I need to modify my code
The text was updated successfully, but these errors were encountered: