Update chat_model.py
This commit is contained in:
parent
520c7680dc
commit
7496484eec
1 changed files with 1 additions and 0 deletions
|
|
@ -192,6 +192,7 @@ class Base(ABC):
|
||||||
e = await self._exceptions_async(e, attempt)
|
e = await self._exceptions_async(e, attempt)
|
||||||
if e:
|
if e:
|
||||||
yield e
|
yield e
|
||||||
|
yield total_tokens
|
||||||
|
|
||||||
def _length_stop(self, ans):
|
def _length_stop(self, ans):
|
||||||
if is_chinese([ans]):
|
if is_chinese([ans]):
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue