The plugin daemon ignores the "Resolution" configuration for vision, causing all vision requests to default to low resolution. #42

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

Originally created by @kurokobo on GitHub (Mar 16, 2025).

The "Resolution" configuration (High or Low) for vision requests from the Dify API is passed to the daemon through the detail key in the PromptMessageContent struct; however, the current implementation does not include that key in its structure.

https://github.com/langgenius/dify-plugin-daemon/blob/937dfad510eee201b4cf771739cdc9577dac1a4a/pkg/entities/model_entities/llm.go#L100-L108

This causes all vision requests to default to detail: low (by design in the Python SDK), which limits the size of the image that will be passed to the LLM model to a maximum of 512px, resulting in reduced accuracy of the answers.

Related to: https://github.com/langgenius/dify/issues/15637

Originally created by @kurokobo on GitHub (Mar 16, 2025). The "Resolution" configuration (High or Low) for vision requests from the Dify API is passed to the daemon through the `detail` key in the `PromptMessageContent` struct; however, the current implementation does not include that key in its structure. https://github.com/langgenius/dify-plugin-daemon/blob/937dfad510eee201b4cf771739cdc9577dac1a4a/pkg/entities/model_entities/llm.go#L100-L108 This causes all vision requests to default to `detail: low` (by design in the Python SDK), which limits the size of the image that will be passed to the LLM model to a maximum of 512px, resulting in reduced accuracy of the answers. Related to: https://github.com/langgenius/dify/issues/15637
yindo closed this issue 2026-02-16 00:19:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#42