mirror of
https://github.com/zadam/trilium.git
synced 2025-11-04 20:36:13 +01:00
well this at least allows for streaming responses when no tool calls are made
This commit is contained in:
@@ -87,9 +87,13 @@ export async function setupStreamingResponse(
|
||||
// Handle content updates
|
||||
if (message.content) {
|
||||
receivedAnyContent = true;
|
||||
|
||||
console.log(`[${responseId}] Received content chunk of length ${message.content.length}, preview: "${message.content.substring(0, 50)}${message.content.length > 50 ? '...' : ''}"`);
|
||||
|
||||
// Add to our accumulated response
|
||||
assistantResponse += message.content;
|
||||
|
||||
// Update the UI immediately
|
||||
// Update the UI immediately with each chunk
|
||||
onContentUpdate(assistantResponse);
|
||||
|
||||
// Reset timeout since we got content
|
||||
|
||||
Reference in New Issue
Block a user