Skip to content

feat: Added support for OpenAI's File API. #3913

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

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

Conversation

sunyuhan1998
Copy link
Contributor

This PR is essentially an independent implementation aimed at achieving #3905.

The issue mentions our need to support OpenAI's Batch API. I noticed that the Batch API is built on top of the Files API, and besides the Batch API, components such as Assistants and Fine-tuning also depend on the Files API. Therefore, I believe we should implement support for these APIs step by step.

This PR first adds support for the Files API.

What does this PR do:

  1. Introduced an OpenAiFileApi class that provides full support for OpenAI's Files API..
  2. Implemented corresponding unit tests and integration tests.

Regarding the Files API, we can refer to the documentation: Files API

1. Introduced the OpenAiFileApi class.
2. Implemented corresponding unit tests and integration tests.

Signed-off-by: Sun Yuhan <[email protected]>
@sunyuhan1998
Copy link
Contributor Author

Hi @markpollack, What do you think about this? Could you please help review it?

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.

1 participant