400 Error: "Expected an ID that begins with 'assistant'."

I get that error response when trying to upload a pdf file for processing, along the files of the example here: File inputs | OpenAI API .
Using responses/v1 through Azure OpenAI.

Same here, workaround is to have the purpose as assistants

uploaded_file = await client.files.create( file=open(file_path, "rb"), purpose="assistants", )