fix: 优化提示词

This commit is contained in:
hp0912 2026-06-06 12:34:17 +08:00
parent 707360a6a9
commit 35135479a3
3 changed files with 3 additions and 26 deletions

View File

@ -30,30 +30,7 @@
- ROBOT_REF_MESSAGE_ID: 如果是引用消息,则是引用的消息的 ID
**需要发送图片的时候可以在控制台输出如下内容**
```
<wechat-robot-image-url>图片URL1</wechat-robot-image-url>
<wechat-robot-image-url>图片URL2</wechat-robot-image-url>
<wechat-robot-image-url>图片URL3</wechat-robot-image-url>
<wechat-robot-image-url>图片URL4</wechat-robot-image-url>
```
**需要发送视频的时候可以在控制台输出如下内容**
```
<wechat-robot-video-url>视频URL1</wechat-robot-video-url>
<wechat-robot-video-url>视频URL2</wechat-robot-video-url>
```
**需要发语音的时候可以在控制台输出如下内容**
```
<wechat-robot-voice-url>语音URL1</wechat-robot-voice-url>
<wechat-robot-voice-url>语音URL2</wechat-robot-voice-url>
```
**发送图片的时候也可以调用 Agent 接口**
**发送图片的时候可以调用 Agent 接口**
1. 发送远程图片地址

View File

@ -50,5 +50,5 @@ argument-hint: "无需参数,直接调用即可"
## 回复要求
- 只返回接口中的 `text` 文案内容,不要额外添加解释
- 如果正常获取到肯德基文案,将文案原样返回给用户
- 当接口异常时,使用固定兜底文案回复。

View File

@ -26,7 +26,7 @@ def fetch_kfc_copy() -> str:
text = payload.get("text")
if isinstance(text, str) and text.strip():
# 该 API 偶尔返回双重转义的换行符(字面量 \n在此统一还原
return "<wechat-robot-text>" + text.replace("\\n", "\n") + "</wechat-robot-text>"
return text.replace("\\n", "\n")
return FALLBACK_TEXT