Open-Earth-Foundation / CityCatalyst

Open Source carbon accounting for cities
GNU Affero General Public License v3.0
20 stars 5 forks source link

On 2569 change initialize thread #767

Closed mircorudolph closed 1 day ago

mircorudolph commented 1 day ago

I moved the initialization of the thread (communication with openAI assistant API) from rendering the chat component to sending a message. Now the initial answer will take slightly longer, but we do not create a lot of empty threads each time it gets rendered.