Error occurs when sending an image to LLM #8

Closed
opened 2026-02-16 00:19:00 -05:00 by yindo · 3 comments
Owner

Originally created by @AAlexDing on GitHub (Jan 30, 2025).

This error can be reproduced in the beta environment by simply sending a photo to the LLM.
plugin daemon: {"message":"Key: 'InvokePluginRequest[github.com/langgenius/dify-plugin-daemon/pkg/entities/requests.RequestGetLLMNumTokens].Data.PromptMessages[0].Content' Error:Field validation for 'Content' failed on the 'prompt_message_content' tag","error_type":"PluginDaemonBadRequestError","args":null}, code: -400

Image

Originally created by @AAlexDing on GitHub (Jan 30, 2025). This error can be reproduced in the beta environment by simply sending a photo to the LLM. `plugin daemon: {"message":"Key: 'InvokePluginRequest[github.com/langgenius/dify-plugin-daemon/pkg/entities/requests.RequestGetLLMNumTokens].Data.PromptMessages[0].Content' Error:Field validation for 'Content' failed on the 'prompt_message_content' tag","error_type":"PluginDaemonBadRequestError","args":null}, code: -400` ![Image](https://github.com/user-attachments/assets/0063d7a0-d901-4a06-8b73-357e8cef5a13)
yindo closed this issue 2026-02-16 00:19:00 -05:00
Author
Owner

@liujichengs commented on GitHub (Feb 1, 2025):

I encountered the same problem

@liujichengs commented on GitHub (Feb 1, 2025): I encountered the same problem
Author
Owner

@AAlexDing commented on GitHub (Feb 1, 2025):

I encountered the same problem

I temporarily removed the logic in the function isPromptMessageContent, which made it work. Maybe you can try this method until the official solution is released.
https://github.com/langgenius/dify-plugin-daemon/commit/6474db27817308646a0df31ff6b11f7e8b2d468b

@AAlexDing commented on GitHub (Feb 1, 2025): > I encountered the same problem I temporarily removed the logic in the function `isPromptMessageContent`, which made it work. Maybe you can try this method until the official solution is released. https://github.com/langgenius/dify-plugin-daemon/commit/6474db27817308646a0df31ff6b11f7e8b2d468b
Author
Owner

@Yeuoly commented on GitHub (Feb 4, 2025):

fixed in latest commit

@Yeuoly commented on GitHub (Feb 4, 2025): fixed in latest commit
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#8