We use Vector Stores (and Files API) for retrieval over our codebase. Our repositories contain many Swift and ObjC files. Currently, the Files API rejects .swift/.m/.mm files with “File type not supported” (HTTP 400), which forces us to append .txt on upload. While this workaround is possible, it complicates tooling and causes filename mismatches between the Files layer and our repository paths.
Request
- Please whitelist the .swift/.m/.mm extension as text for Files API with purpose=assistants/user.
- Treat it all as UTF-8 text (text/plain), same as .txt.
Why this matters
- Use case: indexing Swift source code for RAG with File API/Vector Stores
- Impact: simplifies uploads, avoids filename mangling, keeps original paths consistent for search, diffs, and UI.
- Expected behavior: identical to .txt ingestion.
If others rely on Swift code ingestion via Vector Stores, please upvote/comment to help prioritize. Thanks!