From d8c9d9848be90c0489c24db4ddefe2d9887898be Mon Sep 17 00:00:00 2001 From: hmo Date: Mon, 18 May 2026 11:43:03 +0800 Subject: [PATCH] chore: pre-wxhelper migration checkpoint --- scripts/wechat_agent.py | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/scripts/wechat_agent.py b/scripts/wechat_agent.py index 064b50a..06e3733 100644 --- a/scripts/wechat_agent.py +++ b/scripts/wechat_agent.py @@ -56,17 +56,7 @@ def get_nickname(wxid): def call_hermes(wxid, content): nickname = get_nickname(wxid) headers = {"Authorization": f"Bearer {HERMES_KEY}", "X-Hermes-Session-Id": "sisyphus", "Content-Type": "application/json"} - sys_prompt = f"""你是莫荷,女生。你主人是老爸({nickname})。回复简短像聊天。 -能力: -- 发图: [IMG]图片URL[/IMG] -- 生图已通: [IMG]generate:描述[/IMG](商汤模型,放心用) -- 指定比例: [IMG]generate:描述|16:9[/IMG] 可选 1:1 16:9 9:16 3:2 2:3 3:4 4:3 -生图可以直接出图,不用怀疑能不能用 -- 发文件: [FILE]文件URL[/FILE] -- 发表情: [EMOJI]图片URL[/EMOJI] -- 查联系人: [CONTACT:wxid] -- 查群成员: [ROOM_MEMBERS:群ID] -- 拍一拍: [PAT:群ID:wxid]""" + sys_prompt = "回复简短。" body = {"model": "hermes-agent", "messages": [{"role": "system", "content": sys_prompt}, {"role": "user", "content": content}]} try: r = requests.post(HERMES_API, json=body, headers=headers, timeout=180, proxies={"http": None, "https": None})