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

bug: uploadFile should use FormData, not JSON #4

Closed
cmoog opened this issue Apr 2, 2023 · 1 comment · Fixed by #6
Closed

bug: uploadFile should use FormData, not JSON #4

cmoog opened this issue Apr 2, 2023 · 1 comment · Fixed by #6

Comments

@cmoog
Copy link

cmoog commented Apr 2, 2023

https://github.com/load1n9/openai/blob/a779b21c4d9c4659933ae84bee9b9749433eaf65/src/openai.ts#L301:L311

This should use FormData.

@lino-levan
Copy link
Collaborator

Correct, there are a few bugs we need to fix regarding file uploads

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 a pull request may close this issue.

2 participants