Hello everyone!
I hope you’re doing well.
I’m trying to add messages to an existing thread but have run into a bit of an issue. When I follow all the steps—Create Thread, Create Message, Run, and Retrieve—everything works perfectly.
However, when I skip the “Create Thread” step and use the ThreadID of an existing thread, nothing seems to happen. I’ve checked both the debug file and the Thread Dashboard, but there’s no activity.
I also tried creating a message separately, without including the previous or subsequent steps, by using the following cURL command:
curl https://api.openai.com/v1/threads/thread_existing/messages \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "OpenAI-Beta: assistants=v2" \
-d '{
"role": "user",
"content": "How does AI work? Explain it in simple terms."
}'
In the URL, I’ve made sure to include the ThreadID of the existing thread.
Does anyone have an idea of what might be causing this issue or what I might be doing wrong? Any help would be greatly appreciated!
Thank you so much in advance!