Skip to content

LLM Module 10 MB limit exceeded when sending large/image-heavy PDFs → SSE stream 400 #2125

Description

@fistofzen

Checklist

Describe the Question

When a packaging label (PDF) is sent to the LLM, a single base64 document exceeds SAP AI Core Orchestration's per-document limit of 10 MB (10,485,760 bytes). The request is rejected with 400 and the stream dies as Error while iterating over SSE stream. The user receives no answer.

ErrorWithCause: Error while iterating over SSE stream.
at OrchestrationStream.iterator (.../@sap-ai-sdk/core/src/stream/sse-stream.ts:63:15)
at async _processOrchestrationStreamChunkResponse (.../orchestration-stream.ts:58:22)
at async OrchestrationClient._streamResponseChunks (.../langchain/src/orchestration/client.ts:378:22)
Caused by:
Error: Error received from the server.
{"request_id":"...","code":400,"message":"400 - LLM Module: Base64 document size (12300030 bytes) exceeds maximum allowed size (10485760 bytes)","location":"LLM Module", ...}

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions