sum4all icon indicating copy to clipboard operation
sum4all copied to clipboard

总结文档,pdf报错,之前还用的好好的,今天再试总结的时候报错

Open rexinshimin0001 opened this issue 9 months ago • 4 comments

"url_sum": { "enabled": true, "service": "bibigpt", "group": true, "qa_enabled":true, "qa_prefix":"问", "prompt": "你是一个新闻专家,我会给你发一些网页内容,请你用简单明了的语言做总结。格式如下:📌总结\n一句话讲清楚整篇文章的核心观点,控制在30字左右。\n\n💡要点\n用数字序号列出来3-5个文章的核心内容,尽量使用emoji让你的表达更生动" }, "search_sum": { "enabled": true, "service": "sum4all", "search_service": "duckduckgo", "group": true, "search_prefix":"搜", "prompt": "你是一个信息检索专家,我会把我的问题和搜索结果发给你,请你根据问题,从搜索结果里找出能回答问题的相关内容,用简单明了的语言为我做回复,尽量使用emoji让你的表达更生动" }, "file_sum": { "enabled": true, "service": "gemini", "max_file_size": "15000", "group": true, "qa_prefix":"问", "prompt": "你是一个新闻专家,我会给你发一些网页内容,请你用简单明了的语言做总结。格式如下:📌总结\n一句话讲清楚整篇文章的核心观点,控制在30字左右。\n\n💡要点\n用数字序号列出来3-5个文章的核心内容,尽量使用emoji让你的表达更生动" }, "image_sum": { "enabled": true, "service": "gemini", "group": false, "qa_prefix":"问", "prompt": "先全局分析图片的主要内容,并按照逻辑分层次、段落,提炼出5个左右图片中的精华信息、关键要点,生动地向读者描述图片的主要内容。注意排版、换行、emoji、标签的合理搭配,清楚地展现图片讲了什么" }, 这是配置,之前是用sum4all总结,不行,然后换了Gemini,一样报错 这是换成gemini后 [DEBUG][2024-05-08 11:21:58][plugin_manager.py:189] - Plugin GODCMD triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-05-08 11:21:58][plugin_manager.py:189] - Plugin TIMETASK triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-05-08 11:21:58][plugin_manager.py:189] - Plugin TIMETASK triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-05-08 11:21:58][plugin_manager.py:189] - Plugin LINKAI triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-05-08 11:21:58][plugin_manager.py:189] - Plugin LINKAI triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-05-08 11:21:58][plugin_manager.py:189] - Plugin APILOT triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-05-08 11:21:58][plugin_manager.py:189] - Plugin APILOT triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-05-08 11:21:58][plugin_manager.py:189] - Plugin XINUO triggered by event Event.ON_HANDLE_CONTEXT [INFO][2024-05-08 11:21:58][Xinuo.py:104] - [xinuo] on_handle_context. user_id: @e19c6efea4f4ecb3b05f50d87321e2882e16c2878716336e165534a56882fdfc, content: tmp/textile-china_clusters_2023-12-25(1).xlsx [DEBUG][2024-05-08 11:21:58][plugin_manager.py:189] - Plugin XINUO triggered by event Event.ON_HANDLE_CONTEXT [INFO][2024-05-08 11:21:58][Xinuo.py:104] - [xinuo] on_handle_context. user_id: @e19c6efea4f4ecb3b05f50d87321e2882e16c2878716336e165534a56882fdfc, content: tmp/textile-china_clusters_2023-12-25(1).xlsx [DEBUG][2024-05-08 11:21:58][plugin_manager.py:189] - Plugin SUM4ALL triggered by event Event.ON_HANDLE_CONTEXT [INFO][2024-05-08 11:21:58][sum4all.py:182] - on_handle_context: 处理上下文开始 [INFO][2024-05-08 11:21:59][sum4all.py:185] - on_handle_context: 获取到文件路径 tmp/textile-china_clusters_2023-12-25(1).xlsx [INFO][2024-05-08 11:21:59][sum4all.py:736] - extract_content: 提取文件内容,文件路径: tmp/textile-china_clusters_2023-12-25(1).xlsx [INFO][2024-05-08 11:21:59][sum4all.py:742] - extract_content: 文件类型为 xlsx [INFO][2024-05-08 11:21:59][sum4all.py:764] - extract_content: 文件内容提取完成 [INFO][2024-05-08 11:22:00][sum4all.py:196] - Updated last_file_content in params_cache for user. [INFO][2024-05-08 11:22:00][sum4all.py:586] - handle_file: 向LLM发送内容总结请求 [ERROR][2024-05-08 11:22:02][sum4all.py:674] - Error calling LLM API: 500 Server Error: Internal Server Error for url: https://gemini.sum4all.site/v1/models/gemini-pro:generateContent [INFO][2024-05-08 11:22:02][sum4all.py:202] - 文件 tmp/textile-china_clusters_2023-12-25(1).xlsx 已删除 [DEBUG][2024-05-08 11:22:02][plugin_manager.py:194] - Plugin SUM4ALL breaked event Event.ON_HANDLE_CONTEXT [DEBUG][2024-05-08 11:22:02][chat_channel.py:172] - [WX] ready to decorate reply: Reply(type=TEXT, content=An error occurred while calling LLM API

💬5min内输入问+问题,可继续追问) [DEBUG][2024-05-08 11:22:02][chat_channel.py:284] - [WX] ready to send reply: Reply(type=TEXT, content=[ai] An error occurred while calling LLM API

💬5min内输入问+问题,可继续追问), context: Context(type=FILE, content=tmp/textile-china_clusters_2023-12-25(1).xlsx, kwargs={'isgroup': False, 'msg': <channel.wechat.wechat_message.WechatMessage object at 0x7f4ba1aad510>, 'origin_ctype': <ContextType.FILE: 4>, 'openai_api_key': None, 'gpt_model': None, 'session_id': '@e19c6efea4f4ecb3b05f50d87321e2882e16c2878716336e165534a56882fdfc', 'receiver': '@e19c6efea4f4ecb3b05f50d87321e2882e16c2878716336e165534a56882fdfc'}) [INFO][2024-05-08 11:22:03][wechat_channel.py:214] - [WX] sendMsg=Reply(type=TEXT, content=[ai] An error occurred while calling LLM API

💬5min内输入问+问题,可继续追问), receiver=@e19c6efea4f4ecb3b05f50d87321e2882e16c2878716336e165534a56882fdfc [DEBUG][2024-05-08 11:22:03][chat_channel.py:300] - Worker return success, session_id = @e19c6efea4f4ecb3b05f50d87321e2882e16c2878716336e165534a56882fdfc

这是换之前,sum4all [DEBUG][2024-05-08 11:18:31][plugin_manager.py:189] - Plugin GODCMD triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-05-08 11:18:31][plugin_manager.py:189] - Plugin TIMETASK triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-05-08 11:18:31][plugin_manager.py:189] - Plugin LINKAI triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-05-08 11:18:31][plugin_manager.py:189] - Plugin APILOT triggered by event Event.ON_HANDLE_CONTEXT [DEBUG][2024-05-08 11:18:31][plugin_manager.py:189] - Plugin XINUO triggered by event Event.ON_HANDLE_CONTEXT [INFO][2024-05-08 11:18:31][Xinuo.py:104] - [xinuo] on_handle_context. user_id: @e19c6efea4f4ecb3b05f50d87321e2882e16c2878716336e165534a56882fdfc, content: tmp/textile-china_clusters_2023-12-25(1).xlsx [DEBUG][2024-05-08 11:18:31][plugin_manager.py:189] - Plugin SUM4ALL triggered by event Event.ON_HANDLE_CONTEXT [INFO][2024-05-08 11:18:31][sum4all.py:182] - on_handle_context: 处理上下文开始 [INFO][2024-05-08 11:18:33][sum4all.py:185] - on_handle_context: 获取到文件路径 tmp/textile-china_clusters_2023-12-25(1).xlsx [INFO][2024-05-08 11:18:33][sum4all.py:736] - extract_content: 提取文件内容,文件路径: tmp/textile-china_clusters_2023-12-25(1).xlsx [INFO][2024-05-08 11:18:33][sum4all.py:742] - extract_content: 文件类型为 xlsx [INFO][2024-05-08 11:18:33][sum4all.py:764] - extract_content: 文件内容提取完成 [INFO][2024-05-08 11:18:33][sum4all.py:196] - Updated last_file_content in params_cache for user. [INFO][2024-05-08 11:18:33][sum4all.py:586] - handle_file: 向LLM发送内容总结请求 [ERROR][2024-05-08 11:18:38][sum4all.py:674] - Error calling LLM API: 400 Client Error: Bad Request for url: https://pro.sum4all.site/v1/chat/completions [INFO][2024-05-08 11:18:38][sum4all.py:202] - 文件 tmp/textile-china_clusters_2023-12-25(1).xlsx 已删除 [DEBUG][2024-05-08 11:18:38][plugin_manager.py:194] - Plugin SUM4ALL breaked event Event.ON_HANDLE_CONTEXT [DEBUG][2024-05-08 11:18:38][chat_channel.py:172] - [WX] ready to decorate reply: Reply(type=TEXT, content=An error occurred while calling LLM API

💬5min内输入问+问题,可继续追问) [DEBUG][2024-05-08 11:18:38][chat_channel.py:284] - [WX] ready to send reply: Reply(type=TEXT, content=[ai] An error occurred while calling LLM API

💬5min内输入问+问题,可继续追问), context: Context(type=FILE, content=tmp/textile-china_clusters_2023-12-25(1).xlsx, kwargs={'isgroup': False, 'msg': <channel.wechat.wechat_message.WechatMessage object at 0x7f4ba283ce20>, 'origin_ctype': <ContextType.FILE: 4>, 'openai_api_key': None, 'gpt_model': None, 'session_id': '@e19c6efea4f4ecb3b05f50d87321e2882e16c2878716336e165534a56882fdfc', 'receiver': '@e19c6efea4f4ecb3b05f50d87321e2882e16c2878716336e165534a56882fdfc'}) [INFO][2024-05-08 11:18:38][wechat_channel.py:214] - [WX] sendMsg=Reply(type=TEXT, content=[ai] An error occurred while calling LLM API

💬5min内输入问+问题,可继续追问), receiver=@e19c6efea4f4ecb3b05f50d87321e2882e16c2878716336e165534a56882fdfc [DEBUG][2024-05-08 11:18:38][chat_channel.py:300] - Worker return success, session_id = @e19c6efea4f4ecb3b05f50d87321e2882e16c2878716336e165534a56882fdfc

rexinshimin0001 avatar May 08 '24 05:05 rexinshimin0001