Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions dashboard/widget/minirag-widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,10 @@
// Add placeholder assistant message for streaming
const assistantMsg = { role: 'assistant', content: '', sources: [] };
this._messages.push(assistantMsg);
this._render();

try {
if (e.message === 'Stream error') {
} else {
// JSON parse error - log and continue processing
console.warn('Failed to parse streaming response:', e.message, 'Data:', dataStr);
const resp = await fetch(`${this._config.apiUrl}/v1/chat`, {
method: 'POST',
headers: {
Expand Down