fix: detached model in completion thread (#1269)

This commit is contained in:
takatost 2023-10-02 22:27:25 +08:00 committed by GitHub
commit 373e90ee6d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 21 deletions

View file

@ -132,8 +132,6 @@ class BaseLLM(BaseProviderModel):
if self.deduct_quota:
self.model_provider.check_quota_over_limit()
db.session.commit()
if not callbacks:
callbacks = self.callbacks
else: