From 62b49a17abe76e20fd12a84e59c7e9b75571a8b6 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Fri, 22 Aug 2025 16:01:25 +0000 Subject: [PATCH] docs: add comment explaining stream handling approach --- src/api/providers/chutes.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/api/providers/chutes.ts b/src/api/providers/chutes.ts index ae44c75bcc..38b0fddba5 100644 --- a/src/api/providers/chutes.ts +++ b/src/api/providers/chutes.ts @@ -95,7 +95,8 @@ export class ChutesHandler extends BaseOpenAiCompatibleProvider { ) } } else { - // For non-DeepSeek models, track content and handle empty responses + // For non-DeepSeek models, we reimplement the stream handling instead of calling + // super.createMessage() to ensure consistent error handling for empty responses const stream = await this.createStream(systemPrompt, messages) for await (const chunk of stream) {