I use an assistant with ChatGPT 4o 20240503 on ManyChat for my assistant on WhatsApp. Today the vision function simply stopped working correctly, without me changing the code during this period. Did OpenAI make any updates? I didn’t find anything like that. Can anyone help me solve this problem?
When the user sends me a photo, I make a POST request to …/v1/threads/THREADNUMBER/messages with the header:
OpenAI-Beta: assistants=v2
Content-Type: application/json
Authorization: Bearer {bot_gpt_api_key}
BODY:
{
“role”: “user”,
“content”: [
{
“type”: “text”,
“text”: “Analyze the image”
},
{
“type”: “image_url”,
“image_url”: {
“url”: “URLFROMIMAGE”,
“detail”: “high”
}
}
]
}
After this, I use another POST request to …/v1/threads/THREADNUMBER/runs with the same header. BODY:
{
“assistant_id”: “ID”
}
It was working perfectly…