Update chat_model.py
This commit is contained in:
parent
7496484eec
commit
72974d5ce6
1 changed files with 3 additions and 2 deletions
|
|
@ -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]):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue