I am encountering a persistent issue with the Azure OpenAI Assistants API when attempting to upload a file for use with the Code Interpreter feature.
The request to the Azure OpenAI assistant creation API was successful, but we could not upload the file only.
Here are the details of the problem:Issue Description:
When making an API call to upload a file with the "assistants" purpose, I consistently receive a 500 Internal Server Error. This occurs specifically when using the Azure OpenAI service.
(The same code and file upload succeed when sent directly to the OpenAI API)
request code(using ruby-openai gem):
@openai_client.files.upload(
parameters: {
file: File.open(path_to_file),
purpose: 'assistants',
}
)
Here are the details:Error message:
Request ID: b429bbae-02d5-4035-9914-9dac5a8ed3ad
Server error: 500
Response body: {"error"=>{"message"=>"The server had an error processing your request. Sorry about that! You can retry your request, or contact us through our help center at oai-assistants@microsoft.com if you keep seeing this error. (Please include the request ID b429bbae-02d5-4035-9914-9dac5a8ed3ad in your email.)", "type"=>"server_error", "param"=>nil, "code"=>nil}}
If anyone has information regarding this issue, I would greatly appreciate a response.