fix: stabilize partial streaming filters

This commit is contained in:
Ayaan Zaidi
2026-01-31 22:29:00 +05:30
committed by Ayaan Zaidi
parent a64d8d2d66
commit b5c2b1880d
3 changed files with 61 additions and 29 deletions

View File

@@ -37,6 +37,7 @@ export type EmbeddedPiSubscribeState = {
deltaBuffer: string;
blockBuffer: string;
blockState: { thinking: boolean; final: boolean; inlineCode: InlineCodeState };
partialBlockState: { thinking: boolean; final: boolean; inlineCode: InlineCodeState };
lastStreamedAssistant?: string;
lastStreamedAssistantCleaned?: string;
lastStreamedReasoning?: string;