[GH-ISSUE #747] [FEAT]: Allow code file types #430

Closed
opened 2026-02-22 18:19:27 -05:00 by yindo · 3 comments
Owner

Originally created by @InTEGr8or on GitHub (Feb 17, 2024).
Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/747

Originally assigned to: @timothycarambat on GitHub.

What would you like to see?

I think the LLMs are capable of doing a lot of code analysis, right? Several of them are advertised as "code interpreters".

I must be missing something significant because I am wondering why code files are not allowed in the file upload.

Why aren't code file types allowed?

Originally created by @InTEGr8or on GitHub (Feb 17, 2024). Original GitHub issue: https://github.com/Mintplex-Labs/anything-llm/issues/747 Originally assigned to: @timothycarambat on GitHub. ### What would you like to see? I think the LLMs are capable of doing a lot of code analysis, right? Several of them are advertised as "code interpreters". I must be missing something significant because I am wondering why code files are not allowed in the file upload. Why aren't code file types allowed?
yindo added the enhancementfeature request labels 2026-02-22 18:19:27 -05:00
yindo closed this issue 2026-02-22 18:19:27 -05:00
Author
Owner

@InTEGr8or commented on GitHub (Feb 18, 2024):

For additional background, I can easily convert a code file to a .txt file and then ask Ollama in AnywhereLLM questions about the code file and it answers as if it understands the code file and what I'm trying to do from the command line.

NOTE: I added this line to the top of the .txt file:

// this is the text version of a `build.gradle` file.

image

@InTEGr8or commented on GitHub (Feb 18, 2024): For additional background, I can easily convert a code file to a `.txt` file and then ask Ollama in AnywhereLLM questions about the code file and it answers as if it understands the code file and what I'm trying to do from the command line. NOTE: I added this line to the top of the `.txt` file: ```txt // this is the text version of a `build.gradle` file. ``` ![image](https://github.com/Mintplex-Labs/anything-llm/assets/1802850/088a48e0-5bf6-4a9e-a510-99c4079c4cc1)
Author
Owner

@nicho2 commented on GitHub (Feb 19, 2024):

is it possible to accept yaml and json files ?

@nicho2 commented on GitHub (Feb 19, 2024): is it possible to accept yaml and json files ?
Author
Owner

@grantneufeld commented on GitHub (Feb 25, 2024):

I would like an setting where we can add arbitrary file extensions to be treated as text. (e.g., .c, .py, .swift, .cpp, etc.)

Maybe even a setting where we can tell the app to try to open any unrecognized file as text.

@grantneufeld commented on GitHub (Feb 25, 2024): I would like an setting where we can add arbitrary file extensions to be treated as text. (e.g., `.c`, `.py`, `.swift`, `.cpp`, etc.) Maybe even a setting where we can tell the app to try to open _any_ unrecognized file as text.
yindo changed title from [FEAT]: Allow code file types to [GH-ISSUE #747] [FEAT]: Allow code file types 2026-06-05 14:35:16 -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#430