openclaw/src
Shuai-DaiDai 8316571efe
fix(venice): disable streaming to prevent SDK crash (#15878)
* fix(venice): disable streaming to prevent SDK crash with usage-only chunks (#15819)

Venice.ai API returns SSE chunks containing only usage metadata without
a choices array. The SDK crashes trying to access choices[0] on these
chunks with: Cannot read properties of undefined (reading '0')

Changes:
- Disable streaming by default for all Venice models
- Apply to both static catalog and dynamically discovered models
- Users can explicitly enable streaming in config if needed

This is a workaround until the SDK handles Venice's streaming format.

Fixes #15819

* fix(venice): avoid usage streaming chunks for Venice models (openclaw#15878) thanks @Shuai-DaiDai

---------

Co-authored-by: 帅小呆1号 <shuaixiaodai1@openclaw.ai>
Co-authored-by: Peter Steinberger <steipete@gmail.com>
2026-02-14 02:23:35 +01:00
..
acp fix: ensure CLI exits after command completion (#12906) 2026-02-14 00:34:33 +01:00
agents fix(venice): disable streaming to prevent SDK crash (#15878) 2026-02-14 02:23:35 +01:00
auto-reply perf(test): merge queue integration coverage and shrink media fixture 2026-02-14 00:50:14 +00:00
browser perf(test): consolidate browser and canvas hotspot suites 2026-02-14 01:07:23 +00:00
canvas-host perf(test): consolidate browser and canvas hotspot suites 2026-02-14 01:07:23 +00:00
channels feat(slack): land thread-ownership from @DarlingtonDeveloper (#15775) 2026-02-13 23:37:05 +00:00
cli perf(cli): reduce read-only startup overhead 2026-02-14 01:18:44 +00:00
commands fix(gateway): prune expired entries instead of clearing all hook auth failure state (#15848) 2026-02-14 01:46:12 +01:00
compat
config perf(test): silence config overwrite warnings in vitest 2026-02-14 01:10:45 +00:00
cron fix(cron): use job config for cleanup instead of hardcoded "keep" (openclaw#15427) thanks @arosstale 2026-02-13 19:10:17 -06:00
daemon fix(daemon): preserve backslashes in parseCommandLine on Windows (#15642) 2026-02-13 19:27:06 +01:00
discord perf(test): gate monitor runtime logs during vitest 2026-02-14 01:14:56 +00:00
docs Docs: landing page revamp (#8885) 2026-02-04 10:37:14 -05:00
gateway fix(gateway): hide phantom main agent when agents.list is configured (openclaw#12364) thanks @arosstale 2026-02-13 18:56:10 -06:00
hooks fix(hooks): replace console logging with proper subsystem logging in loader (openclaw#11029) thanks @shadril238 2026-02-13 18:21:11 -06:00
imessage perf(test): gate monitor runtime logs during vitest 2026-02-14 01:14:56 +00:00
infra fix(heartbeat): exempt wake and hook reasons from empty-heartbeat skip (openclaw#14532) thanks @arosstale 2026-02-13 19:05:02 -06:00
line refactor(line): split flex template builders 2026-02-13 19:08:37 +00:00
link-understanding fix(security): block private/loopback/metadata IPs in link-understanding URL detection (#15604) 2026-02-13 18:38:40 +01:00
logging perf(test): reduce vitest logging overhead and media fixture cost 2026-02-14 00:59:53 +00:00
macos refactor: unify gateway restart deferral and dispatcher cleanup 2026-02-14 00:38:18 +01:00
markdown feat(telegram): render blockquotes as native <blockquote> tags (#14608) (#14626) 2026-02-12 08:11:57 -05:00
media fix(media): classify text/* MIME types as documents (openclaw#12341) thanks @arosstale 2026-02-13 18:38:38 -06:00
media-understanding refactor(media): extract runner entry execution helpers 2026-02-13 19:08:37 +00:00
memory perf(test): reduce hot-suite setup and duplicate test work 2026-02-13 23:30:41 +00:00
node-host refactor(node-host): extract invoke handlers 2026-02-13 19:08:37 +00:00
pairing perf: replace proper-lockfile with lightweight file locks 2026-02-13 17:57:30 +00:00
plugin-sdk fix(security): enforce bounded webhook body handling 2026-02-13 19:14:54 +01:00
plugins perf(test): avoid npm pack in plugin install e2e fixtures 2026-02-14 00:17:49 +00:00
process perf(test): trim duplicate gateway and auto-reply test overhead 2026-02-13 23:40:38 +00:00
providers perf(test): eliminate resetModules via injectable seams 2026-02-13 16:20:37 +00:00
routing fix: add discord role allowlists (#10650) (thanks @Minidoracat) 2026-02-12 19:52:24 -06:00
scripts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
security refactor(security): extract channel audit checks 2026-02-13 19:08:37 +00:00
sessions fix: preserve inter-session input provenance (thanks @anbecker) 2026-02-13 02:02:01 +01:00
shared/text chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
signal perf(test): gate monitor runtime logs during vitest 2026-02-14 01:14:56 +00:00
slack perf(test): gate monitor runtime logs during vitest 2026-02-14 01:14:56 +00:00
telegram refactor(telegram): extract native command menu helpers 2026-02-14 02:02:53 +01:00
terminal fix(onboarding): exit cleanly after web ui hatch 2026-02-13 03:20:32 +01:00
test-helpers fix: use STATE_DIR instead of hardcoded ~/.openclaw for identity and canvas (#4824) 2026-02-07 22:16:59 -05:00
test-utils perf(test): reduce hot-suite import and setup overhead 2026-02-13 20:26:39 +00:00
tts refactor(tts): extract directives and provider core 2026-02-13 19:08:37 +00:00
tui fix(tui): preserve streamed text when final payload regresses (#15452) (#15573) 2026-02-13 19:12:59 +01:00
types fix: update pi packages to 0.51.0, remove bogus type augmentation 2026-02-02 01:52:33 +01:00
utils fix: use relayAbort helper for addEventListener to preserve AbortError reason 2026-02-13 18:13:18 +01:00
web perf(test): reduce vitest logging overhead and media fixture cost 2026-02-14 00:59:53 +00:00
whatsapp chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
wizard fix(configure): reject literal "undefined" and "null" gateway auth tokens (#13767) 2026-02-13 17:04:41 +01:00
channel-web.barrel.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
channel-web.ts
docker-setup.test.ts perf(test): collapse docker setup sandbox churn 2026-02-14 01:09:03 +00:00
entry.ts perf(cli): speed up help/config paths and route config get/unset 2026-02-14 00:27:35 +00:00
extensionAPI.ts chore: Migrate to tsdown, speed up JS bundling by ~10x (thanks @hyf0). 2026-02-03 20:18:16 +09:00
globals.test.ts
globals.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
index.test.ts
index.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
logger.test.ts perf(test): reduce vitest logging overhead and media fixture cost 2026-02-14 00:59:53 +00:00
logger.ts chore: Enable "curly" rule to avoid single-statement if confusion/errors. 2026-01-31 16:19:20 +09:00
logging.ts perf(test): eliminate resetModules via injectable seams 2026-02-13 16:20:37 +00:00
polls.test.ts chore: Enable "experimentalSortImports" in Oxfmt and reformat all imorts. 2026-02-01 10:03:47 +09:00
polls.ts
runtime.ts perf(test): gate monitor runtime logs during vitest 2026-02-14 01:14:56 +00:00
utils.test.ts fix(paths): structurally resolve home dir to prevent Windows path bugs (#12125) 2026-02-08 20:06:29 -05:00
utils.ts Deduplicate more 2026-02-09 18:56:58 -08:00
version.test.ts fix: CLI harden update restart imports and fix nested bundle version resolution 2026-02-06 00:09:48 -05:00
version.ts fix: CLI harden update restart imports and fix nested bundle version resolution 2026-02-06 00:09:48 -05:00