接入微信需要搭配AstrBot框架,具体分四步:
- 部署AstrBot:下载安装这个第三方机器人框架(支持Windows/Linux)
- Starting the API service:在WeClone项目下运行python src/api_service.py(默认端口8005)
- Configuring Connections:在AstrBot中添加服务商,类型选OpenAI,API地址填http://localhost:8005/v1
- Optimized settings:关闭工具调用(/tool off reminder),确保系统提示词与训练时一致
关键细节:1)微信协议建议使用iPad协议更稳定;2)首次连接需要扫码登录微信账号;3)语音回复功能需额外配置音频传输路径。整个过程约需30分钟完成部署。
This answer comes from the articleWeClone: training digital doppelgangers with WeChat chats and voicesThe