Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

没有出现二维码 没有报错 #2526

Closed
2 tasks done
1499360414 opened this issue Feb 19, 2025 · 2 comments
Closed
2 tasks done

没有出现二维码 没有报错 #2526

1499360414 opened this issue Feb 19, 2025 · 2 comments

Comments

@1499360414
Copy link

前置确认

  • 我确认我运行的是最新版本的代码,并且安装了所需的依赖,在FAQS中也未找到类似问题。

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

  • 我已经搜索过issues和disscussions,没有跟我遇到的问题相关的issue

操作系统类型?

Linux

运行的python版本是?

python 3.8

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

Master (branch)

运行的channel类型是?

wechatmp(公众号, 订阅号)

复现步骤 🕹

本地已有配置:

使用以下config.json运行项目
{
"channel_type": "wechatmp",
"model": "gpt-4o",
"open_ai_api_base": "https://api.302.ai",
"open_ai_api_key": "sk-DUxxxxxxx",
"claude_api_key": "sk-DUaxxxxxxx",
"text_to_image": "dall-e-2",
"voice_to_text": "openai",
"text_to_voice": "openai",
"proxy": "",
"hot_reload": false,
"single_chat_prefix": [""],
"single_chat_reply_prefix": "",
"group_chat_prefix": ["@bot"],
"group_name_white_list": [],
"image_create_prefix": ["画", "看", "找"],
"speech_recognition": true,
"group_speech_recognition": true,
"voice_reply_voice": false,
"conversation_max_tokens": 2500,
"expires_in_seconds": 3600,
"character_desc": "你是ChatGPT, 一个由OpenAI训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。",
"temperature": 0.7,
"subscribe_msg": "这里是AI助理,可以自由对话。\n支持语音对话。\n支持图片输出,画字开头的消息将按要求创作图片。\n支持角色扮演和文字冒险等丰富插件。\n输入{trigger_prefix}#help 查看详细指令。",
"use_linkai": false,
"linkai_api_key": "",
"linkai_app_code": ""
}

问题描述 😯

在运行之后,日志将会如下方日志中的样子,停止到这个地方并且没有报错,没有出现二维码

补充:我在服务器中可以正常curl通openai和google和网页端微信

终端日志 📒

[INFO][2025-02-19 15:49:18][config.py:300] - [INIT] load config: {'channel_type': 'wechatmp', 'model': 'gpt-4o', 'open_ai_api_base': 'https://api.302.ai', 'open_ai_api_key': 'sk-*****nRU', 'claude_api_key': 'sk-*****nRU', 'text_to_image': 'dall-e-2', 'voice_to_text': 'openai', 'text_to_voice': 'openai', 'proxy': '', 'hot_reload': False, 'single_chat_prefix': [''], 'single_chat_reply_prefix': '', 'group_chat_prefix': ['@bot'], 'group_name_white_list': [], 'image_create_prefix': ['画', '看', '找'], 'speech_recognition': True, 'group_speech_recognition': True, 'voice_reply_voice': False, 'conversation_max_tokens': 2500, 'expires_in_seconds': 3600, 'character_desc': '你是ChatGPT, 一个由OpenAI训练的大型语言模型, 你旨在回答并解决人们的任何问题,并且可以使用多种语言与人交流。, 'temperature': 0.7, 'subscribe_msg': '这里是AI助理,可以自由对话。\n支持语音对话。\n支持图片输出,画字开头的消息将按要求创作图片。\n支持角色扮演和文字冒险等丰富插件。\n输入{trigger_prefix}#help 查看详细指令。', 'use_linkai': False, 'linkai_api_key': '*****', 'linkai_app_code': ''}
[INFO][2025-02-19 15:49:18][config.py:224] - [Config] User datas loaded.
[INFO][2025-02-19 15:49:18][plugin_manager.py:50] - Loading plugins config...
[INFO][2025-02-19 15:49:18][plugin_manager.py:88] - Scaning plugins ...
[INFO][2025-02-19 15:49:18][plugin_manager.py:41] - Plugin Finish_v1.0 registered, path=./plugins/finish
chatgpt-tool-hub version: 0.5.0
[INFO][2025-02-19 15:49:18][plugin_manager.py:41] - Plugin tool_v0.5 registered, path=./plugins/tool
[INFO][2025-02-19 15:49:18][plugin_manager.py:41] - Plugin Godcmd_v1.0 registered, path=./plugins/godcmd
[INFO][2025-02-19 15:49:18][plugin_manager.py:41] - Plugin Role_v1.0 registered, path=./plugins/role
[INFO][2025-02-19 15:49:18][plugin_manager.py:41] - Plugin Hello_v0.1 registered, path=./plugins/hello
[INFO][2025-02-19 15:49:18][plugin_manager.py:41] - Plugin Keyword_v0.1 registered, path=./plugins/keyword
[INFO][2025-02-19 15:49:18][plugin_manager.py:41] - Plugin Banwords_v1.0 registered, path=./plugins/banwords
[INFO][2025-02-19 15:49:18][plugin_manager.py:41] - Plugin linkai_v0.1.0 registered, path=./plugins/linkai
[INFO][2025-02-19 15:49:18][plugin_manager.py:41] - Plugin BDunit_v0.1 registered, path=./plugins/bdunit
[INFO][2025-02-19 15:49:18][plugin_manager.py:41] - Plugin Dungeon_v1.0 registered, path=./plugins/dungeon
[INFO][2025-02-19 15:49:18][godcmd.py:194] - [Godcmd] 因未设置口令,本次的临时口令为9524。
[INFO][2025-02-19 15:49:18][godcmd.py:210] - [Godcmd] inited
[INFO][2025-02-19 15:49:18][keyword.py:40] - [keyword] {}
[INFO][2025-02-19 15:49:18][keyword.py:42] - [keyword] inited.
[INFO][2025-02-19 15:49:18][linkai.py:35] - [LinkAI] inited, config={'group_app_map': {'测试群名1': 'default', '测试群名2': 'Kv2fXJcH'}, 'midjourney': {'enabled': False, 'auto_translate': True, 'img_proxy': True, 'max_tasks': 3, 'max_tasks_per_user': 1, 'use_image_create_prefix': True}, 'summary': {'enabled': False, 'group_enabled': True, 'max_file_size': 5000, 'type': ['FILE', 'SHARING']}}
[INFO][2025-02-19 15:49:18][role.py:69] - [Role] inited
[INFO][2025-02-19 15:49:18][dungeon.py:56] - [Dungeon] inited
[INFO][2025-02-19 15:49:18][hello.py:38] - [Hello] inited
[INFO][2025-02-19 15:49:18][finish.py:23] - [Finish] inited
http://0.0.0.0:8080/
@6vision
Copy link
Collaborator

6vision commented Feb 20, 2025

公众号通道,不用扫码呀,直接发消息测试即可,如果发消息不回复,同样可以参考:#2197

@6vision 6vision closed this as completed Feb 20, 2025
@1499360414
Copy link
Author

@6vision - 但是哥,我想要把个人号当作机器人用,我看之前的那个'wx'的type不好用了,问了项目的ai,ai回复说应该用wechatmp type。

还是说我们现在已经不可以用个人号当作机器人用了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants