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

临时解决微信公众号消息前[ERROR] #1938

Closed
1 task done
imhut opened this issue May 5, 2024 · 2 comments
Closed
1 task done

临时解决微信公众号消息前[ERROR] #1938

imhut opened this issue May 5, 2024 · 2 comments
Labels
community tutorial Helpful tutorials or operational instructions by community members, may be outdated

Comments

@imhut
Copy link

imhut commented May 5, 2024

⚠️ 搜索是否存在类似issue

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

总结

#1880
这里已经解释了原因了,我这里就不过多说明,只是教大家如何临时解决!
修改文件:
/bot/chatgpt/chat_gpt_bot.py
88行
reply = Reply(ReplyType.ERROR, reply_content["content"])
修改为
reply = Reply(ReplyType.TEXT, reply_content["content"])

就这么简单
12
123
1234

举例

No response

动机

No response

@zhangbinhui
Copy link

⚠️ 搜索是否存在类似issue

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

总结

#1880
这里已经解释了原因了,我这里就不过多说明,只是教大家如何临时解决!
修改文件:
/bot/chatgpt/chat_gpt_bot.py
88行
reply = Reply(ReplyType.ERROR, reply_content["content"])
修改为
reply = Reply(ReplyType.TEXT, reply_content["content"])

就这么简单
12
123
1234

举例

No response

动机

No response

👍

@6vision 6vision added community tutorial Helpful tutorials or operational instructions by community members, may be outdated and removed status: needs check labels May 22, 2024
@6vision
Copy link
Collaborator

6vision commented May 22, 2024

根本原因应该是使用的三方key返回的格式不是标准的openai格式

@6vision 6vision closed this as completed May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community tutorial Helpful tutorials or operational instructions by community members, may be outdated
Projects
None yet
Development

No branches or pull requests

3 participants