mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-21 17:45:23 -04:00
[PR #1422] [MERGED] feat(bedrock): Enhanced inference profile support for all model types #1880
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/1422
Author: @akshaysinghas
Created: 8/5/2025
Status: ✅ Merged
Merged: 8/8/2025
Merged by: @crazywoola
Base:
main← Head:model-option-inference-profile📝 Commits (6)
365652cfeat(bedrock): Enhanced inference profile support for all model types9e3241efix(bedrock): Hide Bedrock Model parameter for inference profiles3b2a034chore(bedrock): Bump version to 0.0.286b39f1bresolve: Merge conflicts with main branch4f134dcchore(bedrock): Bump version to 0.0.29856ff33refactor(bedrock): Address PR feedback - remove manual model selection and deduplicate code📊 Changes
9 files changed (+532 additions, -89 deletions)
View changed files
📝
models/bedrock/manifest.yaml(+1 -1)📝
models/bedrock/models/llm/llm.py(+43 -72)➕
models/bedrock/models/rerank/model_ids.py(+41 -0)📝
models/bedrock/models/rerank/rerank.py(+130 -6)➕
models/bedrock/models/text_embedding/model_ids.py(+43 -0)📝
models/bedrock/models/text_embedding/text_embedding.py(+143 -5)📝
models/bedrock/provider/bedrock.yaml(+6 -5)➕
models/bedrock/utils/__init__.py(+1 -0)➕
models/bedrock/utils/inference_profile.py(+124 -0)📄 Description
Summary
This PR implements comprehensive inference profile support for all AWS Bedrock model types (LLM, text embedding, and rerank), addressing the limitations identified in issue #1421.
🎯 Key Improvements
1. Universal Inference Profile Support
2. Enhanced User Experience
3. Parameter Rules Integration
📁 Files Changed
New Files:
models/bedrock/models/text_embedding/model_ids.py- Text embedding model ID mappingsmodels/bedrock/models/rerank/model_ids.py- Rerank model ID mappingsModified Files:
models/bedrock/provider/bedrock.yaml- Enhanced configuration with dropdownsmodels/bedrock/models/llm/llm.py- Parameter rules loading and improved schemamodels/bedrock/models/text_embedding/text_embedding.py- Added inference profile supportmodels/bedrock/models/rerank/rerank.py- Added inference profile support🧪 Testing
🔄 Backward Compatibility
📋 Configuration Example
Before (LLM only):
After (All model types):
🎁 Benefits
🔗 Related
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com
Evidences from local testing:





Changed the maxTokens to 50 to test parameter is working
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.