Open tb opened 1 week ago
I have noticed now that if I skip:
if (type == "tools") {
observer.next(`Running (${type})\n`);
}
even short AI requests fail with the error: [nlux] Stream is already complete. No more chunks can be added
I am connecting AiChat to AI agent via LangServe with:
and default streamText code:
This code works well for queries that take up to about 8-10s, but if AI agent uses more tools the code crashes with error: stream.tsx:40 [nlux] Stream is already complete. No more chunks can be added
Here is what I see in the console log for short task that works correctly:
and here is how it looks for prompt that uses more tools and more time on the backend:
It looks like that my streamText code is not completed because of steanText code... but rather somerhere else in codebase which is hard for me to debug.
Is there some kind of timeout in AiChat that could be responsible for this?