This linked code below is, showing how to employ a file that has been uploaded to the files endpoint as a file id in a thread message in the Assistants endpoint.
{
“role”:“user”,
“content”:[
{
“type”: “text”,
“text”: “naber”
},
{
“type”: “image_file”,
“image_file”: “file-<file_id>”
}
]
}
when ı run this code with this param, i take this err
{
“error”: {
“message”: “Invalid type for ‘content[1].image_file’: expected an object, but got a string instead.”,
“type”: “invalid_request_error”,
“param”: “content[1].image_file”,
“code”: “invalid_type”
}
}