mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-22 09:31:58 -05:00
[GH-ISSUE #21684] feat: Conforms to the standard behavior of the OpenAI API for PDF files and other supported file formats in multimodal models #35082
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Transwarpcom on GitHub (Feb 21, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/21684
Check Existing Issues
Verify Feature Scope
Problem Description
The version you are currently maintaining does not correctly handle PDF files and other supported file formats as described in the OpenAI API documentation. However, according to the documentation, the development cost to fix this issue is extremely low. Thank you for your time.
Desired Solution you'd like
Correctly implement OpenAI API behavior, the official documentation is as follows:
https://developers.openai.com/api/docs/guides/pdf-files/
Alternatives Considered
No response
Additional Context
I think we could add a switch for each model to toggle between traditional PDF processing (text extraction + OCR) and API upload.
Then, we could add a system-wide switch to toggle the global default state.
If feasible, we could also test model support for this API by maintaining a list of models that support it or by curling this endpoint (though I think this might be overly complex).