fix: detached model in completion thread (#1269)

This commit is contained in:
takatost
2023-10-02 22:27:25 +08:00
committed by GitHub
parent 41d4c5b424
commit 373e90ee6d
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: