dalenguyen / dalenguyen.github.io

Personal website with Github pages and Angular
http://dalenguyen.me
25 stars 16 forks source link

Requesting retrieve file functionality. #49

Closed microsoftbuild closed 2 years ago

microsoftbuild commented 2 years ago

Hi @dalenguyen

There are two functionalities i.e. retrieve file and retrieve file contents, that are offered by the OpenAI API.Requesting you to please add them. I'd also love to contribute but haven't worked on writing packages.

Link for reference: https://beta.openai.com/docs/api-reference/files/retrieve

dalenguyen commented 2 years ago

It's already there. Can you try it?

  // FILES
  listFiles()

  retrieveFile(fileId: string)

  retrieveFileContent(fileId: string)

  uploadFile(data: FileRequest)

  deleteFile(fileId: string)
microsoftbuild commented 2 years ago

Thanks for the help @dalenguyen

I didn't see this in the readme. Hence asked.