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

@ -193,6 +193,7 @@ class Base(ABC):
if e: if e:
yield e yield e
yield total_tokens yield total_tokens
return
def _length_stop(self, ans): def _length_stop(self, ans):
if is_chinese([ans]): if is_chinese([ans]):