mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
[PR #2379] [MERGED] fix(bedrock): use OrderedDict for _fetch_locks to support move_to_end… #2431
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/2379
Author: @ysano
Created: 1/7/2026
Status: ✅ Merged
Merged: 1/7/2026
Merged by: @crazywoola
Base:
main← Head:fix/bedrock-inference-profile-ordereddict📝 Commits (1)
aac2ed2fix(bedrock): use OrderedDict for _fetch_locks to support move_to_end method📊 Changes
2 files changed (+2 additions, -2 deletions)
View changed files
📝
models/bedrock/manifest.yaml(+1 -1)📝
models/bedrock/utils/inference_profile.py(+1 -1)📄 Description
… method
Related Issues or Context
Fix
'dict' object has no attribute 'move_to_end'error when validating Bedrock inference profiles.When adding a Bedrock model with a cross-region inference profile ID (e.g.,
jp.anthropic.claude-haiku-4-5-20251001-v1:0), the validation fails with:Root Cause: In
models/bedrock/utils/inference_profile.py,_fetch_locksis declared as a regulardict(line 21), butmove_to_endmethod is called on it (line 30).move_to_endis only available onOrderedDict.Solution: Change
_fetch_locksfromdicttoOrderedDictto enable LRU cache behavior as intended.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)0.0.57→0.0.58Dify Plugin SDK Version
dify_plugin>=0.3.0,<0.6.0is in requirements.txt (SDK docs)dify_plugin==0.7.0(newer than template suggests)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.