mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #2027] [MERGED] FIX : tools/bedrock_retrieve : The variable 'sorted_docs' is undefined. #2213
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-official-plugins/pull/2027
Author: @r3-yamauchi
Created: 11/10/2025
Status: ✅ Merged
Merged: 11/11/2025
Merged by: @crazywoola
Base:
main← Head:fix_bedrock_retrieve📝 Commits (3)
4599170FIX : tools/bedrock_retrieve : The variable 'sorted_docs' is undefined.be7fbf3FIX : tools/bedrock_retrieve_and_generate75c666fchore: bump aws_tools version to 0.0.16📊 Changes
3 files changed (+28 additions, -3 deletions)
View changed files
📝
tools/aws/manifest.yaml(+1 -1)📝
tools/aws/tools/bedrock_retrieve.py(+4 -0)📝
tools/aws/tools/bedrock_retrieve_and_generate.py(+23 -2)📄 Description
Related Issues or Context
At https://github.com/langgenius/dify-official-plugins/blob/main/tools/aws/tools/bedrock_retrieve.py#L178, the variable
sorted_docsis used without being defined, which causes an error.Due to this issue, the tool only works when the output format is JSON and does not function in other cases.
This PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
This PR contains Changes to LLM Models Plugin
Version Control (Any Changes to the Plugin Will Require Bumping the Version)
VersionField, Not in Meta Section)Dify Plugin SDK Version
dify_plugin>=0.3.0,<0.6.0is in requirements.txt (SDK docs)Environment Verification (If Any Code Changes)
Local Deployment Environment
SaaS Environment
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.