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.84k stars 7.88k forks source link

docker arm64版本中LINKAI_APP_CODE属性无效 #1564

Closed harlanhu closed 9 months ago

harlanhu commented 9 months ago

前置确认

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

操作系统类型?

Docker

运行的python版本是?

python 3.10

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

Latest Release

运行的channel类型是?

wx(个人微信, itchat)

复现步骤 🕹

image: ghcr.io/zhayujie/chatgpt-on-wechat:master-arm64 arm架构下使用docker compoes 启动指定USE_LINKAI: 'true',并指定LINKAI_API_KEYLINKAI_APP_CODE

问题描述 😯

能够成功运行但LINKAI_APP_CODE可能为默认值,自定义LINKAI_APP_CODE值无效。

终端日志 📒

[INFO][2023-12-01 08:40:13][config.py:221] - [INIT] override config by environ args: linkai_api_key=Link_xxxxxx
[INFO][2023-12-01 08:40:13][config.py:221] - [INIT] override config by environ args: group_chat_prefix=["bot", "@bot"]
[INFO][2023-12-01 08:40:13][config.py:221] - [INIT] override config by environ args: image_create_prefix=["画", "看", "找"]
[INFO][2023-12-01 08:40:13][config.py:221] - [INIT] override config by environ args: single_chat_reply_prefix="[bot] "
[INFO][2023-12-01 08:40:13][config.py:221] - [INIT] override config by environ args: conversation_max_tokens=1000
[INFO][2023-12-01 08:40:13][config.py:221] - [INIT] override config by environ args: expires_in_seconds=3600
[INFO][2023-12-01 08:40:13][config.py:221] - [INIT] override config by environ args: single_chat_prefix=["bot", "@bot"]
[INFO][2023-12-01 08:40:13][config.py:221] - [INIT] override config by environ args: model=gpt-3.5-turbo
[INFO][2023-12-01 08:40:13][config.py:221] - [INIT] override config by environ args: use_linkai=true
[INFO][2023-12-01 08:40:13][config.py:221] - [INIT] override config by environ args: proxy=
[INFO][2023-12-01 08:40:13][config.py:221] - [INIT] override config by environ args: character_desc=你是ChatGPT, 一个由OpenAI训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。
[INFO][2023-12-01 08:40:13][config.py:221] - [INIT] override config by environ args: linkai_app_code=cat-girl
[INFO][2023-12-01 08:40:13][config.py:221] - [INIT] override config by environ args: speech_recognition=true
[INFO][2023-12-01 08:40:13][config.py:221] - [INIT] override config by environ args: group_name_white_list=["test"]
[INFO][2023-12-01 08:40:13][config.py:221] - [INIT] override config by environ args: use_global_plugin_config=true
[INFO][2023-12-01 08:40:13][config.py:221] - [INIT] override config by environ args: open_ai_api_key=YOUR API KEY
[INFO][2023-12-01 08:40:13][config.py:236] - [INIT] load config: {'channel_type': 'wx', 'model': 'gpt-3.5-turbo', 'open_ai_api_key': 'YOUR API KEY', 'text_to_image': 'dall-e-2', 'voice_to_text': 'openai', 'text_to_voice': 'openai', 'proxy': '', 'hot_reload': False, 'single_chat_prefix': ['bot', '@bot'], 'single_chat_reply_prefix': '[bot] ', 'group_chat_prefix': ['bot', '@bot'], 'group_name_white_list': ['test'], 'group_chat_in_one_session': ['ChatGPT测试群'], 'image_create_prefix': ['画', '看', '找'], 'speech_recognition': True, 'group_speech_recognition': False, 'voice_reply_voice': False, 'conversation_max_tokens': 1000, 'expires_in_seconds': 3600, 'character_desc': '你是ChatGPT, 一个由OpenAI训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。', 'temperature': 0.7, 'top_p': 1, 'subscribe_msg': '感谢您的关注!\n这里是ChatGPT,可以自由对话。\n支持语音对话。\n支持图片输入。\n支持图片输出,画字开头的消息将按要求创作图片。\n支持tool、角色扮演和文字冒险等丰富的插件。\n输入{trigger_prefix}#help 查看详细指令。', 'use_linkai': True, 'linkai_api_key': 'Link_xxxx', 'linkai_app_code': 'cat-girl', 'use_global_plugin_config': True}
[INFO][2023-12-01 08:40:13][config.py:186] - [Config] User datas file not found, ignore.
[WARNING][2023-12-01 08:40:13][audio_convert.py:9] - import pysilk failed, wechaty voice message will not be supported.
[INFO][2023-12-01 08:40:13][plugin_manager.py:50] - Loading plugins config...
[INFO][2023-12-01 08:40:13][plugin_manager.py:88] - Scaning plugins ...
[INFO][2023-12-01 08:40:13][plugin_manager.py:41] - Plugin Finish_v1.0 registered, path=./plugins/finish
chatgpt-tool-hub version: 0.4.6
[INFO][2023-12-01 08:40:15][plugin_manager.py:41] - Plugin tool_v0.4 registered, path=./plugins/tool
[INFO][2023-12-01 08:40:15][plugin_manager.py:41] - Plugin Keyword_v0.1 registered, path=./plugins/keyword
[INFO][2023-12-01 08:40:15][plugin_manager.py:41] - Plugin Dungeon_v1.0 registered, path=./plugins/dungeon
[INFO][2023-12-01 08:40:15][plugin_manager.py:41] - Plugin Banwords_v1.0 registered, path=./plugins/banwords
[INFO][2023-12-01 08:40:15][plugin_manager.py:41] - Plugin Hello_v0.1 registered, path=./plugins/hello
[INFO][2023-12-01 08:40:15][plugin_manager.py:41] - Plugin linkai_v0.1.0 registered, path=./plugins/linkai
[INFO][2023-12-01 08:40:15][plugin_manager.py:41] - Plugin Godcmd_v1.0 registered, path=./plugins/godcmd
[INFO][2023-12-01 08:40:15][plugin_manager.py:41] - Plugin Role_v1.0 registered, path=./plugins/role
[INFO][2023-12-01 08:40:15][plugin_manager.py:41] - Plugin BDunit_v0.1 registered, path=./plugins/bdunit
zhayujie commented 9 months ago

可以重新再pull一下试试,arm64的镜像关联的是master版本,可能某个提交不稳定有影响,已经修复了

harlanhu commented 9 months ago

pull最新镜像已解决