Skip to content

Conversation

@gaocegege
Copy link
Collaborator

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.

Signed-off-by: Ce Gao <cegao@tensorchord.ai>
@ApostaC
Copy link
Collaborator

ApostaC commented Feb 3, 2025

Thanks @gaocegege . I will take a look at this PR soon!

Copy link
Collaborator

@ApostaC ApostaC left a 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)?

@ApostaC
Copy link
Collaborator

ApostaC commented Feb 6, 2025

@gaocegege Hey, do you want this PR to be merged? Or you want to edit it a bit more?

@gaocegege
Copy link
Collaborator Author

I will address the comments first

@ApostaC
Copy link
Collaborator

ApostaC commented Feb 7, 2025

Thanks! Take your time please 👍

Signed-off-by: Ce Gao <cegao@tensorchord.ai>
@gaocegege
Copy link
Collaborator Author

Please take a look, thanks for your time 😄

ApostaC
ApostaC previously approved these changes Feb 7, 2025
Copy link
Collaborator

@ApostaC ApostaC left a 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>
Signed-off-by: Ce Gao <cegao@tensorchord.ai>
@gaocegege
Copy link
Collaborator Author

Comments are addressed, please take a look.
Thanks for your time 😄

Copy link
Collaborator

@ApostaC ApostaC left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@ApostaC ApostaC merged commit eec575a into vllm-project:main Feb 7, 2025
8 checks passed
@gaocegege gaocegege deleted the file branch February 7, 2025 02:54
@gaocegege
Copy link
Collaborator Author

Thanks. I will work on the part 2: the batch API.

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.

2 participants