Add support for C and C++ header files in vector stores (Why not supported already?)

OpenAI provides vector stores which allows to index files. The feature is very useful, thanks. However, I stumbled into the following problem: even though API claims to support C and C++ files (.c and .cpp, reference: https://platform.openai.com/docs/assistants/tools/file-search#supported-files), it rejects uploading header files from those languages (.h). (“Bad Request: File extension is not supported…”)

Is there any reason for this? I suppose no and its a simple bug. Header files are written in exactly the same language, but simply have different suffix. I believe it costs nothing for OpenAI to append support for those files in API. Could you make it happen, please? It really restricts my capabilities to upload C and C++ code bases to assistants and make me do some stupid tricks with files renaming.

3 Likes