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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
실시간으로 GPT의 답변이 한 글자 한 글자 보이게 하려고 함
이때, DB에는 저장된 상태가 아니기 때문에 해당 메시지의 id가 없는 상태임
그래서 메시지의 상태가 바뀌더라도 UI에 실시간으로 청크들이 보이지 않는 문제가 있었음
해결
현재 시간을 기준으로 임시 ID를 발급하는 방법으로 해걸
const handleSend = async () => {
if (!message.trim() || isProcessing) return;
Beta Was this translation helpful? Give feedback.
All reactions