mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-20 13:47:15 +08:00
fix(wechat_kf): download attachments to agent_workspace/tmp
So agent tools resolve relative refs like mp/xxx.pdf on the first try, matching weixin's _get_tmp_dir convention.
This commit is contained in:
@@ -344,6 +344,8 @@ class WechatKfChannel(ChatChannel):
|
||||
|
||||
# On a text turn, attach any pending images/files as references
|
||||
# so the downstream agent can pick them up via the text content.
|
||||
# Paths are already under agent_workspace/tmp (see
|
||||
# WechatKfMessage._get_tmp_dir), so a relative ref also works.
|
||||
if kf_msg.ctype == ContextType.TEXT:
|
||||
cached_files = file_cache.get(session_id)
|
||||
if cached_files:
|
||||
|
||||
Reference in New Issue
Block a user