THUDM / ChatGLM2-6B

ChatGLM2-6B: An Open Bilingual Chat LLM | 开源双语对话语言模型
Other
15.65k stars 1.85k forks source link

[BUG/Help] Nonetype bug for build_stream_inputs #650

Closed Dinghow closed 6 months ago

Dinghow commented 6 months ago

Is there an existing issue for this?

Current Behavior

As the code in huggingface, if the history is None, the len(history) will raise error TypeError: object of type 'NoneType' has no len().

Expected Behavior

No response

Steps To Reproduce

See above.

Environment

...

Anything else?

No response

Dinghow commented 6 months ago

Ok, I've seen the code set history to an empty list if it's None.