LibreChat/packages/api
Mihidum 61d034c20f
📄 fix: Send Textual Documents to Claude Through Gateways as Text (#16055)
Claude accepts base64 documents only for PDF. Through an OpenAI-compatible
gateway, a textual file was sent as an OpenAI `file` part with its own media
type, which the gateway maps to a base64 document that Claude rejects with a
400 on every later turn. Send it as a text part with the decoded contents,
using the same Claude detection as the document filter.

Fixes #16054

Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-19 14:50:43 -04:00
..
openapi 📖 fix: Verify Agents OpenAPI contracts and disable external reporting (#16028) 2026-09-16 15:17:56 -04:00
src 📄 fix: Send Textual Documents to Claude Through Gateways as Text (#16055) 2026-09-19 14:50:43 -04:00
types
.gitignore
babel.config.cjs
jest.config.mjs 🧵 ci: Keep a Floor of Two Jest Workers in CI (#15819) 2026-09-14 00:32:20 -04:00
jest.setup.cjs
package.json 📖 fix: Verify Agents OpenAPI contracts and disable external reporting (#16028) 2026-09-16 15:17:56 -04:00
tsconfig-paths-bootstrap.mjs
tsconfig.build.json
tsconfig.json
tsconfig.openapi.json 🔌 feat: OpenAPI spec and docs for the public Agents API (#15928) 2026-09-16 13:50:05 -04:00
tsconfig.spec.json
tsdown.config.mjs