[BUG] PDF attachment causes persistent error for all subsequent chat messages #16250
Replies: 2 comments
|
I checked this against the attachment routing that landed for 0.8.8 (#15763, #15937, #15940, #16027, #16058). Reading the code at 1. PDFs still default to the provider path on custom endpoints The capability gate in const canJudgeCapability = isMedia ? namedEndpoint : providerKnown;The spec pins this behaviour ("keeps documents on the provider path for a custom endpoint name"): So unless an admin writes an explicit per-endpoint config, a PDF sent to vLLM is still delivered as a 2. Conversations that already contain such a PDF stay locked File records created before delivery paths existed have no
Changing the endpoint config afterwards does not help these threads, so every following message fails with the same error. Possible fixes
|
|
Thanks for the detailed repro. For new PDF uploads on a build with unified file upload (this setting is not available in v0.8.7), route PDFs to extracted text instead of sending a native fileConfig:
endpoints:
YourCustomEndpointName: # match the endpoint's name in librechat.yaml
legacyFileUploadUX: false
defaultLLMDeliveryPath:
overrides:
'application/pdf': textPlease upgrade and test with a new PDF in a new conversation. The config affects new uploads, but it does not repair old file records without |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
When a PDF is attached in a conversation with a custom OpenAI-compatible endpoint backed by vLLM, the provider rejects the request. After that, every following message in the same conversation fails with the same error. The conversation cannot be recovered, only a new conversation works.
Steps to Reproduce
librechat.yaml.400 Unsupported chat content part type.The llama.cpp server behaves the same way and returns
501 Unknown part type.Expected Behavior
Environment
v0.8.8-rc4still takes the same delivery paths for this case, see the analysis in [BUG] PDF attachment causes persistent error for all subsequent chat messages #16234 (comment)Related
All reactions