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

Problem in file-upload #66

Open
med-edu-science opened this issue Jul 4, 2024 · 0 comments
Open

Problem in file-upload #66

med-edu-science opened this issue Jul 4, 2024 · 0 comments

Comments

@med-edu-science
Copy link

Thanks for this useful R-package!

There is an error with the file upload, which is probably due to changes made by OpenAI in the chat completion API:

openai::upload_file(file = file, purpose = "assistants")
Error in match.arg(purpose) :
'arg' should be one of “search”, “answers”, “classifications”, “fine-tune”

openai::upload_file(file = file, purpose = "answers")
Error: OpenAI API request failed [400]:
'answers' is not one of ['fine-tune', 'assistants', 'batch', 'user_data', 'responses', 'vision'] - 'purpose'

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

No branches or pull requests

1 participant