gpt接入微信个人号

  1. 使用dify以及dify-on-wechat(基于gewechat)
  2. 编辑好环境后,配置config.json,注意channel_type是gewechat(使用ipad协议)
{
    "channel_type": "gewechat",
    "dify_api_base": "http://公网ip/v1",
    "dify_api_key": "app-xxxx",
    "dify_app_type": "chatbot",
    "gewechat_app_id": "留空自动获取",
    "gewechat_base_url": "http://本机ip:2531/v2/api",
    "gewechat_callback_url": "http://本机ip:9919/v2/api/callback/collect",
    "gewechat_download_url": "http://本机ip:2532/download",
    "gewechat_token": "留空自动获取",
    "group_chat_prefix": [
        "@bot"
    ],
    "group_name_white_list": [
        "ALL_GROUP"
    ],
    "model": "dify",
    "single_chat_prefix": [
        ""
    ],
    "single_chat_reply_prefix": ""
}
  1. cd dify-on-wechat,python3 app.py
Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐