[GH-ISSUE #3624] [FEAT]: Handle PDFs via GitHub/GitLab connector #2340

Open
opened 2026-02-22 18:29:14 -05:00 by yindo · 3 comments
Owner

Originally created by @okmeier on GitHub (Apr 10, 2025).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3624

How are you running AnythingLLM?

Docker (local)

What happened?

Running anything-llm on a local docker, using the GitHub connector to get data from a private repo with pdfs using access token.
It will import the other files, but not the pdfs. Is there a restriction in the connector?

Are there known steps to reproduce?

No response

Originally created by @okmeier on GitHub (Apr 10, 2025). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/3624 ### How are you running AnythingLLM? Docker (local) ### What happened? Running anything-llm on a local docker, using the GitHub connector to get data from a private repo with pdfs using access token. It will import the other files, but not the pdfs. Is there a restriction in the connector? ### Are there known steps to reproduce? _No response_
yindo added the enhancementIntegration Requestfeature request labels 2026-02-22 18:29:14 -05:00
Author
Owner

@timothycarambat commented on GitHub (Apr 15, 2025):

The GitHub API to fetch files returns text content as we expect. PDFs are binary format and need to be fetched via the raw.githubusercontent URL.

That is not handled in this code. It extends to any files that are binary, not just PDFs - as its content field in the GH API would be null or an error.

@timothycarambat commented on GitHub (Apr 15, 2025): [The GitHub API to fetch files](https://github.com/Mintplex-Labs/anything-llm/blob/0411ca52a88028c4a9ba32a3b984c6146d4c7e82/collector/utils/extensions/RepoLoader/GithubRepo/RepoLoader/index.js#L206-L227) returns text content as we expect. PDFs are binary format and need to be fetched via the `raw.githubusercontent` URL. That is not handled in this code. It extends to any files that are binary, not just PDFs - as its `content` field in the GH API would be null or an error.
Author
Owner

@okmeier commented on GitHub (Apr 17, 2025):

thank you for the clarification

@okmeier commented on GitHub (Apr 17, 2025): thank you for the clarification
Author
Owner

@timothycarambat commented on GitHub (Oct 1, 2025):

related #4398

@timothycarambat commented on GitHub (Oct 1, 2025): related #4398
yindo changed title from [FEAT]: Handle PDFs via GitHub/GitLab connector to [GH-ISSUE #3624] [FEAT]: Handle PDFs via GitHub/GitLab connector 2026-06-05 14:45:58 -04:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mintplex-Labs/anything-llm#2340