zhayujie / chatgpt-on-wechat

基于大模型搭建的聊天机器人,同时支持 微信公众号、企业微信应用、飞书、钉钉 等接入,可选择GPT3.5/GPT-4o/GPT-o1/ Claude/文心一言/讯飞星火/通义千问/ Gemini/GLM-4/Claude/Kimi/LinkAI,能处理文本、语音和图片,访问操作系统和互联网,支持基于自有知识库进行定制企业智能客服。
https://docs.link-ai.tech/cow
MIT License
29.85k stars 7.88k forks source link

"always_reply_voice": "False", 依然是返回语音回复 #2174

Closed nicklasyao closed 1 month ago

nicklasyao commented 1 month ago

前置确认

⚠️ 搜索issues中是否已存在类似问题

操作系统类型?

MacOS

运行的python版本是?

python 3.8

使用的chatgpt-on-wechat版本是?

Latest Release

运行的channel类型是?

wxy(个人微信, wechaty)

复现步骤 🕹

"always_reply_voice": "False", 依然是返回语音回复

问题描述 😯

"always_reply_voice": "False", 依然是返回语音回复

终端日志 📒

<此处粘贴终端日志>
nicklasyao commented 1 month ago

{ "model": "xunfei", "single_chat_prefix": ["bot", "@bot"], "single_chat_reply_prefix": "[bot] ", "single_chat_reply_suffix": "", "group_chat_prefix": ["@bot"], "group_chat_reply_prefix": "", "group_chat_reply_suffix": "", "group_chat_keyword": [], "group_at_off": "False", "group_name_white_list": ["测试", "ChatGPT测试群2"], "group_name_keyword_white_list": [], "group_chat_in_one_session": [], "nick_name_black_list": [], "group_welcome_msg": "", "trigger_by_self": "False", "text_to_image": "dall-e-2", "image_create_prefix": ["画", "看", "找"], "concurrency_in_session": 1, "image_create_size": "256x256", "group_chat_exit_group": "False", "expires_in_seconds": 3600, "character_desc": "你是ChatGPT, 一个由OpenAI训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。", "conversation_max_tokens": 1000,

"temperature": 0.9,
"top_p": 1,
"frequency_penalty": 0,
"presence_penalty": 0,
"request_timeout": 180,
"timeout": 120,

"xunfei_app_id": "",
"xunfei_api_key": "",
"xunfei_api_secret": "",

"wework_smart": "True",

"speech_recognition": "False",
"group_speech_recognition": "False",
"voice_reply_voice": "False",
"always_reply_voice": "False",
"voice_to_text": "xunfei",
"text_to_voice": "xunfei",

"chat_time_module": "False",
"chat_start_time": "00:00",
"chat_stop_time": "23:59",
"translate": "baidu",
"baidu_translate_app_id": "",
"baidu_translate_app_key": "",

"hot_reload": "False",

"channel_type": "wx",
"subscribe_msg": "wechatcom_app",
"debug": "True",
"appdata_dir": ""

}

nicklasyao commented 1 month ago

配置文件格式问题