Can you please share us how to use API to list threads? Thanks.
How to list all threads in Azure OpenAI Assistant
Wang, Zheng
40
Reputation points
From the documentation, I have seen that we can retrieve the thread information given the thread_id.
GET https://YOUR_RESOURCE_NAME.openai.azure.com/openai/threads/{thread_id}?api-version=2024-02-15-preview
But if we don't know the thread_id, how to list all the threads under this resource.
In OpenAI, I can see some solution to GET https://api.openai.com/v1/threads/
Any way to do that through Azure OpenAI API?
2 answers
Sort by: Most helpful
-
-
Mohamed Hussein 360 Reputation points
2024-11-18T01:13:36.3433333+00:00 Following is working for me
https://{{YourEndPoint}}.openai.azure.com/openai/threads?api-version=2024-05-01-preview