Closed Dinghow closed 6 months ago
As the code in huggingface, if the history is None, the len(history) will raise error TypeError: object of type 'NoneType' has no len().
len(history)
TypeError: object of type 'NoneType' has no len()
No response
See above.
...
Ok, I've seen the code set history to an empty list if it's None.
Is there an existing issue for this?
Current Behavior
As the code in huggingface, if the history is None, the
len(history)
will raise errorTypeError: object of type 'NoneType' has no len()
.Expected Behavior
No response
Steps To Reproduce
See above.
Environment
Anything else?
No response