Skip to content

Feature/完善微信公众号对话机器人服务 #3159

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

Conversation

Q1an05
Copy link
Contributor

@Q1an05 Q1an05 commented Jul 24, 2025

feat1.

为微信公众号AI对话机器人添加从多模态对话回到文字对话的功能,用户可以输入“t"从多模态切换回纯文字输出

  • 在CustomMessageHandler_AI中添加"t"命令支持,输入"t"可在多模态状态下切换回纯文字输出
  • 更新欢迎消息,提示用户可用的命令

feat2

为微信公众号AI对话机器人添加Markdown格式输出控制功能

  • 在CustomMessageHandler_AI中添加dm/md命令支持
    • 输入'dm'可关闭Markdown格式输出,使用纯文本回复
    • 输入'md'可恢复Markdown格式输出
  • 根据UseMarkdown状态为AI对话添加相应的格式前缀
  • 更新欢迎消息,提示用户可用的命令

JeffreySu and others added 15 commits June 8, 2025 22:43
升级聊天 AI Sample,优化上下文储存机制
升级聊天 AI Sample,优化上下文储存机制
更新 Sample,添加 C# Language 设定
[2025-07-04] v2025.7.14 更新微信支付、小程序;优化 Sample;完善 AI 对话示例
- 在ChatStore类中添加UseMarkdown属性,默认为true
- 在CustomMessageHandler_AI中添加dm/md命令支持
  - 输入'dm'可关闭Markdown格式输出,使用纯文本回复
  - 输入'md'可恢复Markdown格式输出
- 根据UseMarkdown状态为AI对话添加相应的格式前缀
- 更新欢迎消息,提示用户可用的命令
var responseMessage = base.CreateResponseMessage<ResponseMessageText>();
responseMessage.Content = "已切换到纯文字对话模式!AI 将用纯文字回复";
return responseMessage;
}
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Command Unreachable Due to Conflicting Conditions

The "T" command, intended to switch from multimodal to text-only conversation, is unreachable. The code block containing the "T" command is nested within a condition that requires chatStore.MultimodelType to be SimpleChat, while the "T" command's own condition requires chatStore.MultimodelType to be ChatAndImage. These mutually exclusive conditions prevent the command from ever executing.

Locations (1)

Fix in CursorFix in Web

@JeffreySu JeffreySu changed the base branch from master to Developer July 24, 2025 06:37
@JeffreySu JeffreySu merged commit d3182fb into JeffreySu:Developer Jul 24, 2025
1 check passed
@JeffreySu JeffreySu mentioned this pull request Jul 24, 2025
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

Successfully merging this pull request may close these issues.

2 participants