zhayujie / bot-on-anything

Connect AI models (like ChatGPT-3.5/4.0, Baidu Yiyan, New Bing, Bard) to apps (like Wechat, public account, DingTalk, Telegram, QQ). 将 ChatGPT、必应、文心一言、谷歌Bard 等对话模型连接各类应用,如微信、公众号、QQ、Telegram、Gmail、Slack、Web、企业微信、飞书、钉钉等。
MIT License
3.81k stars 896 forks source link

加入输出敏感词 #416

Open raphaelxiao opened 1 year ago

raphaelxiao commented 1 year ago

总有人在公众号引导GPT作出敏感发言(比如“历史上1989年发生了什么”),光是在输入端设置敏感词已经不够了。 加了一个敏感词输出的文档sensitive_words_output.txt。 如果两个文档内容相同也可以直接改wechat_mp_channel.py的路径。