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

openai api #20

Closed
315930399 opened this issue Oct 27, 2023 · 8 comments
Closed

openai api #20

315930399 opened this issue Oct 27, 2023 · 8 comments

Comments

@315930399
Copy link

之前的openai api脚本应该不能用了吧,有没有大佬写一个新的

@315930399
Copy link
Author

试了一下之前的脚本还能用,对于agent、function call应该要加额外的逻辑。数学方面的推理能力还是不太行
image

@appleatiger
Copy link

之前的脚本不能多轮对话

@huyuan-cn
Copy link

关闭了多轮的history后可以跑api,等大佬出新

@bonuschild
Copy link

试了一下之前的脚本还能用,对于agent、function call应该要加额外的逻辑。数学方面的推理能力还是不太行 image

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

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

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

@bonuschild
Copy link

关闭了多轮的history后可以跑api,等大佬出新

在哪里关闭多轮history?请指点,谢谢!

@jonsen
Copy link

jonsen commented Oct 29, 2023

我修改了提交到这里了:

#55

@bonuschild
Copy link

bonuschild commented Oct 29, 2023 via email

@zhangch9
Copy link
Contributor

zhangch9 commented Nov 6, 2023

请参考README中的API 部署

@zhangch9 zhangch9 closed this as completed Nov 6, 2023
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

6 participants