Skip to content

Make it possible to override text file detection in llama-server web UI #18618

@he29-net

Description

@he29-net

Prerequisites

  • I am running the latest code. Mention the version if possible as well.
  • I carefully followed the README.md.
  • I searched using keywords relevant to my issue to make sure that I am creating a new issue that is not already open (or closed).
  • I reviewed the Discussions, and have a new and useful enhancement to share.

Feature Description

The file upload filter in the new llama-server web UI is too restrictive and rejects many valid text file formats without any option to override the automatic detection. It should be possible to disable the check, or at the very least add an option to easily add custom allowed file extensions.

Motivation

Copied from #17556 :
I don't think it is feasible to include every single possible file extension in a list of "text files" (currently I'm noticing that many source file types like .vhdl, .vdh, .v, .sv, .tcl are all missing, and that's just stuff I regularly use at work), not to mention that some applications hide a "known text file" under a different extension (like an .ini file with .settings extension), or that some text files may not have an extension (like Makefile, or the default file name for results from whisper.cpp server, which is named "inference").

I.e., there will always be edge cases and the list of allowed extensions can never be complete, so an easily accessible user override is desirable.

Possible Implementation

When the text file is rejected as "not supported", the dialog could simply add a button or checkbox saying "treat attachment as plain text file".

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions