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

Support file uploads #191

Open
nooone opened this issue Jan 30, 2025 · 1 comment
Open

Support file uploads #191

nooone opened this issue Jan 30, 2025 · 1 comment

Comments

@nooone
Copy link

nooone commented Jan 30, 2025

I am unable to figure out how to upload a file to use it with a vector store and an assistant.
I have implemented this with "Simple OpenAI" (community library) before, so I do understand the API in general.
However I am unable to figure out how to actually upload the bytes.

OpenAIClient.files() is missing a create method.
OpenAIClient.beta().vectorStore().files() has a create method, but it expects an existing File-ID.
OpenAIClient.upload() has a create method, but it ultimately requires OpenAIClient.upload().parts() to complete and OpenAIClient.upload().parts() seems to be completely empty without any methods at all.

Is uploading files even supported? If so, can you add an example to the documentation? If not, can you add a list of features that this library does currently not support instead?

@TomerAberbach TomerAberbach changed the title How to upload a file? Support file uploads Jan 30, 2025
@TomerAberbach
Copy link
Collaborator

File uploads and downloads are currently not supported, but we will be tackling that ~soon. I think the only endpoints we are missing are ones related to uploads/downloads.

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

No branches or pull requests

2 participants