mirror of
https://github.com/run-llama/create-llama.git
synced 2026-07-15 05:08:15 -04:00
Cannot upload PDF files: Provide Uint8Array rather than Buffer #28
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 @SebastianVomMeer on GitHub (Jul 30, 2024).
After creating a new application with version 0.1.25 I cannot upload PDF files with the web interface.
The POST to http://localhost:3000/api/chat/upload responds with 500:
Related log:
This fails when the application runs locally on my Ubuntu 20.04 machine as well as inside a docker container with image nextjs-docker (started as described in your generated README.md). It happens in Chrome and Firefox.
I use azure-openai as model provider but I don't think that this is related. Indexing PDFs with
npm run generateworks just fine.@SebastianVomMeer commented on GitHub (Jul 30, 2024):
Converting the fileBuffer in app/api/chat/llamaindex/documents/helper.ts seems to be a workaround for me, but I don't have a clue about this topic.
@marcusschiesser commented on GitHub (Jul 31, 2024):
Thanks. Fixed in Release 0.1.26