nextcloud / integration_openai

OpenAI integration in Nextcloud
GNU Affero General Public License v3.0
52 stars 11 forks source link

Fix: Use correct userId in most provider #153

Closed julien-nc closed 2 weeks ago

julien-nc commented 2 weeks ago

Since the provider's process method is called in a bg job, there is no userId injected in the constructors. That's why we have a userId param in the process method.

It was not a blocking problem because the quota check is successful when the userId is null. But still it was not checking the quota correctly.