Hi, I’m currently using the assistants API and I’m experiencing some performance issues when trying to list messages in a thread. Basically I’m trying to get the latest message in the thread.
Could it be related to thread’ run or to the list operation?
const threadMessages = await openai.beta.threads.messages.list(threadId, {
after: createdMessage.id,
order: 'asc',
limit: 1
})