Update chat_model.py

This commit is contained in:
Kevin Hu 2025-12-09 18:53:41 +08:00 committed by GitHub
parent 7496484eec
commit 72974d5ce6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -191,8 +191,9 @@ class Base(ABC):
except Exception as e:
e = await self._exceptions_async(e, attempt)
if e:
yield e
yield total_tokens
yield e
yield total_tokens
return
def _length_stop(self, ans):
if is_chinese([ans]):