[PR #110] [MERGED] fix: respect resolution settings for vision sent from api #317

Closed
opened 2026-02-16 01:15:31 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/langgenius/dify-plugin-daemon/pull/110
Author: @kurokobo
Created: 3/16/2025
Status: Merged
Merged: 3/16/2025
Merged by: @crazywoola

Base: mainHead: image_detail


📝 Commits (1)

  • bc4c60f fix: respect resolution settings for vision sent from api

📊 Changes

1 file changed (+2 additions, -1 deletions)

View changed files

📝 pkg/entities/model_entities/llm.go (+2 -1)

📄 Description

This PR changes the PromptMessageContent structure to allow having the Detail (detail in JSON) key.

By this change, the "Resolution" configuration for the vision requests that are sent from the API side will be handled and passed to LLM model correctly.

Closes #109


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/langgenius/dify-plugin-daemon/pull/110 **Author:** [@kurokobo](https://github.com/kurokobo) **Created:** 3/16/2025 **Status:** ✅ Merged **Merged:** 3/16/2025 **Merged by:** [@crazywoola](https://github.com/crazywoola) **Base:** `main` ← **Head:** `image_detail` --- ### 📝 Commits (1) - [`bc4c60f`](https://github.com/langgenius/dify-plugin-daemon/commit/bc4c60f93e0e0ea6efbfca37fd2a317b94af311b) fix: respect resolution settings for vision sent from api ### 📊 Changes **1 file changed** (+2 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `pkg/entities/model_entities/llm.go` (+2 -1) </details> ### 📄 Description This PR changes the `PromptMessageContent` structure to allow having the `Detail` (`detail` in JSON) key. By this change, the "Resolution" configuration for the vision requests that are sent from the API side will be handled and passed to LLM model correctly. Closes #109 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 01:15:31 -05:00
yindo closed this issue 2026-02-16 01:15:31 -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#317