Skip to content

Commit 62b49a1

Browse files
committed
docs: add comment explaining stream handling approach
1 parent 8d2a100 commit 62b49a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/api/providers/chutes.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ export class ChutesHandler extends BaseOpenAiCompatibleProvider<ChutesModelId> {
9595
)
9696
}
9797
} else {
98-
// For non-DeepSeek models, track content and handle empty responses
98+
// For non-DeepSeek models, we reimplement the stream handling instead of calling
99+
// super.createMessage() to ensure consistent error handling for empty responses
99100
const stream = await this.createStream(systemPrompt, messages)
100101

101102
for await (const chunk of stream) {

0 commit comments

Comments
 (0)