From 1cfc7d2455229ba9a3373780ece7fc299f80ab4b Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Sat, 14 Feb 2026 02:20:21 +0100 Subject: [PATCH] fix(venice): avoid usage streaming chunks for Venice models (openclaw#15878) thanks @Shuai-DaiDai --- src/agents/venice-models.ts | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/agents/venice-models.ts b/src/agents/venice-models.ts index 098724c73b4..cff2e9d51cf 100644 --- a/src/agents/venice-models.ts +++ b/src/agents/venice-models.ts @@ -300,10 +300,10 @@ export function buildVeniceModelDefinition(entry: VeniceCatalogEntry): ModelDefi cost: VENICE_DEFAULT_COST, contextWindow: entry.contextWindow, maxTokens: entry.maxTokens, - // Disable streaming by default for Venice to avoid SDK crash with usage-only chunks + // Avoid usage-only streaming chunks that can break OpenAI-compatible parsers. // See: https://github.com/openclaw/openclaw/issues/15819 - params: { - streaming: false, + compat: { + supportsUsageInStreaming: false, }, }; } @@ -386,9 +386,9 @@ export async function discoverVeniceModels(): Promise { cost: VENICE_DEFAULT_COST, contextWindow: apiModel.model_spec.availableContextTokens || 128000, maxTokens: 8192, - // Disable streaming to avoid SDK crash with usage-only chunks (#15819) - params: { - streaming: false, + // Avoid usage-only streaming chunks that can break OpenAI-compatible parsers. + compat: { + supportsUsageInStreaming: false, }, }); }