Empty threads keep being created

I have an assistant app that’s connected to OpenAI. Recently, I noticed that empty threads keep being created when the services is not used. I wonder if the error might be in my code or it’s natural for the API to create empty threads from time to time.

Sorry for this silly question; I’m new to this field.

Seems like your code is getting triggered on its own. A glimpse at your code will be helpful.