fix: enable block streaming for all providers (#684)

This commit is contained in:
Ruby
2026-01-10 15:25:55 -06:00
committed by GitHub
parent 6d70524aa8
commit a6a9930a34
2 changed files with 2 additions and 7 deletions

View File

@@ -590,7 +590,6 @@ export async function getReplyFromConfig(
"on")
: "off";
const providerKey = sessionCtx.Provider?.trim().toLowerCase();
const explicitBlockStreamingEnable = opts?.disableBlockStreaming === false;
const resolvedBlockStreaming =
opts?.disableBlockStreaming === true
? "off"
@@ -603,12 +602,7 @@ export async function getReplyFromConfig(
agentCfg?.blockStreamingBreak === "message_end"
? "message_end"
: "text_end";
const allowBlockStreaming =
providerKey === "telegram" || explicitBlockStreamingEnable;
const blockStreamingEnabled =
resolvedBlockStreaming === "on" &&
opts?.disableBlockStreaming !== true &&
allowBlockStreaming;
const blockStreamingEnabled = resolvedBlockStreaming === "on";
const blockReplyChunking = blockStreamingEnabled
? resolveBlockStreamingChunking(
cfg,