-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
support self-ask in private message #292
base: main
Are you sure you want to change the base?
Conversation
Hi @Benature , thank you for your PR |
I've encountered the async onPrivateMessage(talker: ContactInterface, text: string) {
const talkerId = talker.id;
- // const gptMessage = await this.getGPTMessage(text, talkerId);
+ const gptMessage = "gpt message";
await this.trySay(talker, gptMessage);
} (The triggered word is |
Seems it is about the empty triggered word, I will check it in the afternoon. |
last commit: In (talker.self() && messageType != MessageType.Text) |
如果是自问自答,建议要搭配 |
这个MR挺好的,试了下可用。参考这个commit: sundl123/wechat-chatgpt@2120ef4 |
我朋友只有一个微信号,他想把自己的微信作为 ChatGPT 机器人使用。在与别人私聊的对话中,他希望自己也可以通过触发关键词来向 ChatGPT 提问。因此做了以下的改动,私以为对于没有多余微信号的使用者还是有点用的。
isNonsense
过滤中忽略了 talker 是 self 的情况|| talker
)