[Bug]docker中部署的napcat无法接收图片信息
发生了什么
我在nas的docker中部署了astrbot,连接gemini-2.0-flash-exp同时开启qq官方机器人和napcat(docker)两个消息适配器,与官方机器人聊天可以传输图片,与napcat中的小号qq传输图片就会出现传输失败的问题。
但是您的帮助文档的napcat部分写了docker部署可以接收图片来着,所以我在想是不是bug:
TIP 如果用 Docker 部署,将无法正常接收到语音数据、文件数据。这意味着语音转文字、沙箱的文件输入功能将无法使用。可以接收到文字消息、图片消息等其他类型的消息。
后台详细信息请见反馈最下方提供
下图为QQ中得到的回复:
如何复现?
发送图片给docker中的napcat就会报错
AstrBot 版本与部署方式
群晖DSM 7.2.1-69057 Update 5中使用Container manager 20.10.23-1437。Astrbot目前已经更新到v3.4.20
操作系统
Other
额外信息
[21:45:40| ERROR] [gemini_source.py:199]: 发生了错误(gemini_source)。Provider 配置如下: {'id': 'gemini_default', 'type': 'googlegenai_chat_completion', 'enable': True, 'key': ['xxxxxxx'], 'api_base': 'https://generativelanguage.googleapis.com/', 'model_config': {'model': 'gemini-2.0-flash-exp'}} [21:45:40| ERROR] [llm_request.py:134]: Traceback (most recent call last): File "/AstrBot/astrbot/core/pipeline/process_stage/method/llm_request.py", line 83, in process llm_response = await provider.text_chat(**req.dict) # 请求 LLM File "/AstrBot/astrbot/core/provider/sources/gemini_source.py", line 201, in text_chat raise e File "/AstrBot/astrbot/core/provider/sources/gemini_source.py", line 176, in text_chat llm_response = await self._query(payloads, func_tool) File "/AstrBot/astrbot/core/provider/sources/gemini_source.py", line 135, in _query raise Exception("Gemini 返回异常结果: " + str(result)) Exception: Gemini 返回异常结果: {'error': {'code': 400, 'message': 'Unable to submit request because it has an empty inlineData parameter. Add a value to the parameter and try again. Learn more: https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/gemini', 'status': 'INVALID_ARGUMENT'}}
你愿意提交 PR 吗?
- [x] 是的,我愿意提交 PR!
Code of Conduct
- [x] 我已阅读并同意遵守该项目的 行为准则。