I’m integrating streamed OpenAI responses into a chat interface, and I’m unsure what the cleanest behavior is when someone hits Stop. By then, the server may have received several chunks, while the user has only seen part of the answer.
Should I keep the partial text in the conversation, mark it as interrupted, or discard it and leave the previous turn untouched? I’m also curious how people handle a cancellation that arrives just as the response is finishing.
Can you answer this question?
Write Answer0 Answers