LibreChat/api
Danny Avila b760839c0c
🧵 fix: Harmony Headers in Text Attachments Break OpenAI Models on Bedrock (#17101)
* 🧵 test: Cover Harmony Headers in Text Attachments Sent to OpenAI Models on Bedrock

A pasted text/plain attachment is sent inline as file context, so a harmony header such as `<|channel|>analysis` inside it reaches every later turn. OpenAI models on Bedrock answer that request with an event stream that closes before any event, which crashed the turn in @librechat/agents 4.0.4 with `Cannot use 'in' operator to search for 'tool_calls' in undefined`.

Drive LibreChat's own file-context formatting through the SDK's Bedrock model with a recorded response and assert the header reaches an OpenAI model neutralized and other model families unchanged.

* 📦 chore: Bump @librechat/agents to v4.0.5

* 📦 chore: Regenerate the Lockfile with npm 11 to Keep libc Constraints
2026-10-16 18:00:15 -04:00
..
app/clients 🌠 chore: Default OpenAI Image Tools to GPT Image Flare (#17014) 2026-10-16 17:56:12 -04:00
cache 🪪 fix: Boot-Paint a Cached Theme Only for Its Signed-In Owner (#16926) 2026-10-14 11:08:53 +02:00
config 🪦 refactor: Remove Dead Legacy API Modules and Root Tooling (#17114) 2026-10-15 12:25:24 +02:00
db 🛬 fix: Land MCP OAuth Callbacks on Waiting Connections (#15876) 2026-09-13 01:46:41 -04:00
models 🥢 fix: Fit MCP App Snapshots Within Message Documents (#16299) 2026-10-01 03:46:17 +00:00
server 🔎 perf: Index-Bound Word-Prefix Search for Users and Groups (#16719) 2026-10-16 22:41:37 +02:00
strategies 🙈 fix: Mask Emails and Drop Personal Identifiers From Logs (#17048) 2026-10-15 15:54:27 +02:00
test 🌠 chore: Default OpenAI Image Tools to GPT Image Flare (#17014) 2026-10-16 17:56:12 -04:00
utils ✂️ refactor: Remove Dead Helpers, Classes and Dependencies From packages/api (#17118) 2026-10-16 15:43:12 +02:00
jest.config.js 🧠 perf: Recycle Backend Jest Workers Past 1GB (#17098) 2026-10-16 22:15:10 +02:00
jsconfig.json
package.json 🧵 fix: Harmony Headers in Text Attachments Break OpenAI Models on Bedrock (#17101) 2026-10-16 18:00:15 -04:00
recover-skill-upload.js 🔌 feat: Integrate Durable Skill Lifecycle Across Writers and Routes (#17043) 2026-10-16 09:05:05 -07:00
typedefs.js 🪦 refactor: Remove Dead Legacy API Modules and Root Tooling (#17114) 2026-10-15 12:25:24 +02:00