Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

需要样例代码,让我们更好的使用,调用ChatGLM3。 #41

Closed
coderwpf opened this issue Oct 29, 2023 · 4 comments
Closed

需要样例代码,让我们更好的使用,调用ChatGLM3。 #41

coderwpf opened this issue Oct 29, 2023 · 4 comments

Comments

@coderwpf
Copy link

需要样例代码,让我们更好的使用,调用ChatGLM3:

@bonuschild
Copy link

+1, 直接使用chatglm2-6b的代码在tokenization_chatglm.py的189行build_chat_input处报错:

        content = item["content"]
TypeError: list indices must be integers or slices, not str

看来是返回内容的形式也变了,请指点如何修改,谢谢!

@coderwpf
Copy link
Author

coderwpf commented Nov 1, 2023

+1, 直接使用chatglm2-6b的代码在tokenization_chatglm.py的189行build_chat_input处报错:

        content = item["content"]
TypeError: list indices must be integers or slices, not str

看来是返回内容的形式也变了,请指点如何修改,谢谢!

官方代码已经更新了我就关闭了

@coderwpf coderwpf closed this as completed Nov 1, 2023
@bonuschild
Copy link

+1, 直接使用chatglm2-6b的代码在tokenization_chatglm.py的189行build_chat_input处报错:

        content = item["content"]
TypeError: list indices must be integers or slices, not str

看来是返回内容的形式也变了,请指点如何修改,谢谢!

官方代码已经更新了我就关闭了

嗯嗯,谢谢啦!已经看到有了。

@zzyybtxl
Copy link

您好 我添加history的时候 出现了这个问题,请问如何解决呀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants