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

微信中GPT回复的内容超过单条消息字数限制可否截断分成多条发送 #939

Closed
1 task done
vlux opened this issue Apr 24, 2023 · 6 comments
Closed
1 task done
Labels
enhancement New feature or request

Comments

@vlux
Copy link

vlux commented Apr 24, 2023

⚠️ 搜索是否存在类似issue

  • 我已经搜索过issues和disscussions,没有发现相似issue

总结

微信公众号和企业微信
谢谢!

举例

No response

动机

No response

@lanvent
Copy link
Collaborator

lanvent commented Apr 24, 2023

目前公众号超过字数是截断分条发送的,个人微信没有测试字数上限,你遇到了超过上限的情况吗?

@vlux
Copy link
Author

vlux commented Apr 24, 2023

目前公众号超过字数是截断分条发送的,个人微信没有测试字数上限,你遇到了超过上限的情况吗?

抱歉我这边可能开错issue,我是部署了作者的bot-on-anything在企业微信,正常回复没有问题,当回复内容过多时,后台log里显示收到了GPT的全文,但是企业微信里只收到了一条很长的信息有截断,没有收到后续的内容

@lanvent
Copy link
Collaborator

lanvent commented Apr 24, 2023

好的,目前本项目也已准备支持企业微信应用号,正在合并中 #936 。 字数上限的问题,在合并时我会测试。

@vlux
Copy link
Author

vlux commented Apr 24, 2023

好的,目前本项目也已准备支持企业微信应用号,正在合并中 #936 。 字数上限的问题,在合并时我会测试。

感谢大佬,现阶段测试的是让GPT写一段代码,后台log中是全的,企业微信内收到的是截断的,有搜到这个回复

@lanvent
Copy link
Collaborator

lanvent commented Apr 24, 2023

我刚才翻阅了开发文档,对于文字消息确实有2048字节的限制,之后本项目企业微信应用号的部分会增加分条发送消息的处理。

@lanvent
Copy link
Collaborator

lanvent commented Apr 25, 2023

已合入master

@lanvent lanvent closed this as completed Apr 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants