Hello. I’m trying to get the thread id of the playground into the code and print out the message inside, but I get an error saying ‘No thread found with id’.
The API key is set correctly. Is there anything I need to add to the code for this task? If anyone knows how to solve it, please give me advice.
1 Like
Can you send us what you made? I have the same problem.
I just tried below message!
message = client.beta.threads.messages.list(
thread_id=threads_ID
)
be sure to use the API Key under the same Project that you created the assistants api thread in the playground.
thread_messages = client.beta.threads.messages.list(threads_ID)
print(thread_messages.data)
1 Like