-
Notifications
You must be signed in to change notification settings - Fork 360
feat: OpenAI batch API part 1 #52
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
Conversation
Signed-off-by: Ce Gao <cegao@tensorchord.ai>
|
Thanks @gaocegege . I will take a look at this PR soon! |
ApostaC
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left some comments. Otherwise LGTM!
In the meantime, can we write down the document of the new endpoints somewhere (e.g., in issue #47)?
|
@gaocegege Hey, do you want this PR to be merged? Or you want to edit it a bit more? |
|
I will address the comments first |
|
Thanks! Take your time please 👍 |
Signed-off-by: Ce Gao <cegao@tensorchord.ai>
|
Please take a look, thanks for your time 😄 |
ApostaC
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one minor comment. Other LGTM!
Signed-off-by: Ce Gao <cegao@tensorchord.ai>
Signed-off-by: Ce Gao <cegao@tensorchord.ai>
|
Comments are addressed, please take a look. |
ApostaC
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
Thanks. I will work on the part 2: the batch API. |
This is the part 1 of #47
file.Storage has been introduced to abstract file operations, to support both OpenAI files and the uploads API. The user-id in the interface is defaulted to uid-default, which is kept for future extensibility.
I believe OpenAI uses a database, such as PostgreSQL, to store file metadata. For now, we are using simple file operations to handle this.
I’ve raised this PR to discuss whether this approach aligns with our requirements. Then will implement the batch API in part 2.