Skip to content

Commit b642243

Browse files
Updated comments
1 parent 342595d commit b642243

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

templates/components/chat.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
// Scroll to bottom after user message
6464
messagesEndRef.scrollIntoView({ behavior: 'smooth' });
6565

66-
// Replace EventSource with fetch
66+
// Create form data
6767
const formData = new FormData();
6868
formData.append('userInput', messageText);
6969
if (threadId) {
@@ -95,7 +95,7 @@
9595
threadId = data.thread_id;
9696
}
9797

98-
// Only create EventSource after successful message send
98+
// Create URL params
9999
const urlParams = new URLSearchParams();
100100
if (threadId && threadId !== "None") {
101101
urlParams.append('thread_id', threadId);

0 commit comments

Comments
 (0)