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

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

Open
rexinshimin0001 opened this issue May 8, 2024 · 4 comments

Comments

@rexinshimin0001
Copy link

"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

@fatwang2
Copy link
Owner

fatwang2 commented May 8, 2024 via email

@rexinshimin0001
Copy link
Author

不是文件熟练了 rexinshimin0001 @.>于2024年5月8日周三13:54写道:
……
"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": "你是一个信息搜索专家,我把我的问题和搜索结果发给你,请你根据问题,从搜索结果里找到能回答问题的相关内容,用简单明了的语言为我做回复,尝试使用表情符号让你的表达更丰富" }, "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个左右图片中的关键信息、关键要点,面向读者描述图片的主要内容。注意版、换行、表情符号、标签的合理搭配,清晰地演示图片讲什么"},这是配置,之前是用sum4all总结,不行,然后换了Gemini,同样报错换成了gemini后[DEBUG][2024-05-08 11:21: 58][plugin_manager.py:189] - 由事件 Event.ON_HANDLE_CONTEXT 触发的插件 GODCMD [DEBUG][2024-05-08 11:21:58][plugin_manager.py:189] - 由事件 Event.ON_HANDLE_CONTEXT 触发的插件 TIMETASK [ DEBUG][2024-05-08 11:21:58][plugin_manager.py:189] - 由事件 Event.ON_HANDLE_CONTEXT 触发的插件 TIMETASK [DEBUG][2024-05-08 11:21:58][plugin_manager.py: 189] - 由事件 Event.ON_HANDLE_CONTEXT 触发的插件 LINKAI [DEBUG][2024-05-08 11:21:58][plugin_manager.py:189] - 由事件 Event.ON_HANDLE_CONTEXT [DEBUG][2024-05- 触发的插件 LINKAI 08 11:21:58][plugin_manager.py:189] - 由事件 Event.ON_HANDLE_CONTEXT 触发的插件 APILOT [DEBUG][2024-05-08 11:21:58][plugin_manager.py:189] - 由事件触发的插件 APILOT事件 Event.ON_HANDLE_CONTEXT [DEBUG][2024-05-08 11:21:58][plugin_manager.py:189] - 由事件 Event.ON_HANDLE_CONTEXT [INFO][2024-05-08 11:21:58] 触发的插件 XINUO [xinuo.py:104] - [xinuo] on_handle_context。 user_id:@e19c6efea4f4ecb3b05f50d87321e2882e16c2878716336e165534a56882fdfc,内容:tmp/textile-china_clusters_2023-12-25(1).xlsx [调试][2024-05-08 11:21:5 8][plugin_manager.py:189] - 插件XINUO由事件Event触发.ON_HANDLE_CONTEXT [INFO][2024-05-08 11:21:58][Xinuo.py:104] - [xinuo] on_handle_context. user_id:@e19c6efea4f4ecb3b05f50d87321e2882e16c2878716336e165534a56882fdfc,内容:tmp/textile-china_clusters_2023-12-25(1).xlsx [调试][2024-05-08 11:21:5 8][plugin_manager.py:189] - 由事件 Event 触发的插件 SUM4ALL .ON_HANDLE_CONTEXT [信息][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] - 为用户更新了 params_cache 中的last_file_content。 [INFO][2024-05-08 11:22:00][sum4all.py:586] - handle_file: 向LLM发送内容汇总请求[ERROR][2024-05-08 11:22:02][sum4all.py :674] - 调用 LLM API 时出错:500 服务器错误: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] - 插件 SUM4ALL 中断事件 Event.ON_HANDLE_CONTEXT [DEBUG][2024-05-08 11: 22:02][chat_channel.py:172] - [WX] 准备装饰回复: Reply(type=TEXT, content=调用LLM API时出错 💬5min内输入问+问题,可继续追) [DEBUG] [2024-05-08 11:22:02][chat_channel.py:284] - [WX] 准备发送回复: Reply(type=TEXT, content=[ai] 调用 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 对象位于 0x7f4ba1aad510>, 'origin_ctype': <ContextType.FILE: 4>, 'openai_api_key': None, 'gpt_model': None, 'session_id': @.
' , '接收者': @.'}) [INFO][2024-05-08 11:22:03][wechat_channel.py:214] - [WX] sendMsg=Reply(type =TEXT, content=[ai] 调用LLM API时出错 💬5min内输入问+问题,可继续追问), @. [DEBUG][2024-05-08 11: 22:03][chat_channel.py:300] - Worker返回成功,session_id = @e19c6efea4f4ecb3b05f50d87321e2882e16c2878716336e165534a56882fdfc是换之前,sum4all [DEBUG][2024-05-08 11:18:31 ][plugin_manager.py:189] - 插件GODCMD 由事件 Event.ON_HANDLE_CONTEXT [DEBUG][2024-05-08 11:18:31][plugin_manager.py:189] 触发 - 插件 TIMETASK 由事件 Event.ON_HANDLE_CONTEXT [DEBUG][2024-05-08 11:18 触发:31][plugin_manager.py:189] - 由事件 Event.ON_HANDLE_CONTEXT 触发的插件 LINKAI [DEBUG][2024-05-08 11:18:31][plugin_manager.py:189] - 由事件 Event.ON_HANDLE_CONTEXT 触发的插件 APILOT [DEBUG][2024-05-08 11:18:31][plugin_manager.py:189] - 插件 XINUO 由事件 Event.ON_HANDLE_CONTEXT 触发 [INFO][2024-05-08 11:18:31][Xinuo.py :104] - [xinuo] on_handle_context。 user_id:@e19c6efea4f4ecb3b05f50d87321e2882e16c2878716336e165534a56882fdfc,内容:tmp/textile-china_clusters_2023-12-25(1).xlsx [调试][2024-05-08 11:18:3 1][plugin_manager.py:189] - 由事件 Event 触发的插件 SUM4ALL .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] -更新了用户的 params_cache 中的last_file_content。 [INFO][2024-05-08 11:18:33][sum4all.py:586] - handle_file: 向LLM发送内容汇总请求[ERROR][2024-05-08 11:18:38][sum4all.py :674] - 调用 LLM API 时出错: 400 客户端错误: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] - 插件 SUM4ALL 中断事件 Event.ON_HANDLE_CONTEXT [DEBUG][2024-05-08 11:18:38] [chat_channel.py:172] - [WX] 准备装饰回复: Reply(type=TEXT, content=调用LLM API时出错 💬5min内输入问+问题,可继续追问) [DEBUG][2024-05 -08 11:18:38][chat_channel.py:284] - [WX] 准备发送回复: Reply(type=TEXT, content=[ai] 调用 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 对象位于 0x7f4ba283ce20>、'origin_ctype': <ContextType.FILE: 4>、'openai_api_key': None、'gpt_model': None、'session_id': @.'、'receiver' : @.'}) [INFO][2024-05-08 11:18:38][wechat_channel.py:214] - [WX] sendMsg=Reply(type=TEXT, content =[ai] 调用LLM API时出错 💬5min内输入问+问题,可继续追问), @.*** [DEBUG][2024-05-08 11:18:38] [chat_channel.py:300] - Worker 返回成功,session_id = @e19c6efea4f4ecb3b05f50d87321e2882e16c2878716336e165534a56882fdfc — 直接回复此电子邮件,在 GitHub < #55 > 上查看,或取消订阅 < https://github.com/notifications/unsubscribe-授权/A77NZSU2OHVEAA5V6XX6YG3ZBG4ZTAVCNFSM6AAAAABHMJBBE2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGI4DINZTG44DQNI > .您收到此消息是因为您订阅了该主题。消息 ID:@.***>

啥意思,不是文件熟练了?

@fatwang2
Copy link
Owner

fatwang2 commented May 8, 2024

我哪里说熟练了,问你是不是文件太大了

@rexinshimin0001
Copy link
Author

我哪里说熟练了,问你是不是文件太大了
原来如此 我知道了,谢谢

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