Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't truncate the filename to the base name when uploading files. #223

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jlewi
Copy link

@jlewi jlewi commented Feb 9, 2025

The filename is being truncated to just the base name when being set in uploaded files.

Without this change if you set filename to "somedir/somesubset/file1.md" it will be set to "file1.md". With this change it will be "somedir/somesubset/file1.md". Not truncating the filename is pretty important in order to be able to track the files in the vector store.

Not sure if we need to make this change in a backwards compatible way and if so how to do it.

Fix #222

@jlewi jlewi requested a review from a team as a code owner February 9, 2025 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

filename with the files API is truncated to the base name
1 participant