Assistants API - Handling multiple users


I am wondering if I should write my application sync or async, I use the assistants API. I want be able handle multiple concurrent users and I am aware of the rate limits.

What really confuses me is that that ” creating a Run is an asynchronous operation” from the cookbook. Most of the example codes are sync.

Should my application use async/await or should I just write sync code for my application and it will perform the same and be able to handle multiple concurrent users?

So e.g if I just create the assistant or the thread, should it be async or sync for this case?

Did you find any examples related to this?
I do not see any documentation for async methods either

Nope, I’ve implemented my functions as async and I use the async openai library. I will test how many concurrent users my application can handle.

I couldn’t find any good documentation about this topic so I went with my gut feeling.