We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a60df0b commit 49bbf93Copy full SHA for 49bbf93
packages/xl-ai/src/streamTool/callLLMWithStreamTools.ts
@@ -270,7 +270,8 @@ function partialObjectStreamThrowError<PARTIAL>(
270
case "finish":
271
break;
272
case "error":
273
- throw chunk.error;
+ controller.error(chunk.error);
274
+ break;
275
default: {
276
const _exhaustiveCheck: never = chunk;
277
throw new Error(`Unsupported chunk type: ${_exhaustiveCheck}`);
0 commit comments