From fe09fe485f6e12cbf4e400561680511f9747f827 Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Wed, 22 Apr 2026 14:52:35 -0300 Subject: [PATCH] fix: Strip reasoning_content from OpenAI format messages for non-reasoning models (#1505) --- CHANGELOG.md | 2 + open-sse/executors/muse-spark-web.ts | 229 ++++++++++++++++-- open-sse/translator/index.ts | 6 + src/app/(dashboard)/dashboard/memory/page.tsx | 125 +++++++++- src/lib/providers/validation.ts | 10 + src/lib/providers/webCookieAuth.ts | 18 ++ tests/unit/muse-spark-web.test.ts | 125 +++++++++- .../provider-validation-specialty.test.ts | 1 + 8 files changed, 485 insertions(+), 31 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d27029f04..ae270e1079 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,8 @@ ### 🐛 Bug Fixes +- **fix(core):** Strip `reasoning_content` from OpenAI format messages for non-reasoning models to prevent upstream HTTP 400 validation errors. (#1505) +- **fix(ui):** Add missing UI wiring for "Add Memory" and "Import" buttons on the `/dashboard/memory` page. (#1506) - **fix(core):** Add periodic runtime log rotation checks to prevent disk exhaustion in long-running instances. (#1504 — thanks @ether-btc) - **fix(build):** Resolve missing `process` module in webpack client build for pino-abstract-transport. (#1509 — thanks @hartmark) - **fix(ui):** Add dark mode support for native dropdown `