mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
Enhanced Bedrock Inference Profile Support for All Model Types #520
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?
Originally created by @akshaysinghas on GitHub (Aug 5, 2025).
Summary
The current Bedrock plugin has limited inference profile support that only works for LLM models. This enhancement request proposes extending inference profile functionality to all model types (LLM, text embedding, and rerank) with improved user experience and proper parameter rule loading.
Current Issues
1. Limited Model Type Support
bedrock.yamlrestrictsinference_profile_idto LLM only2. Poor User Experience
3. Missing Infrastructure
Proposed Solution
1. Universal Inference Profile Support
show_onrestrictions forinference_profile_idfieldtext_embedding.pyandrerank.pyfor inference profilesget_customizable_model_schema()for all model types2. Enhanced Configuration UI
underlying_model_typedropdown (e.g., "Anthropic Claude", "Amazon", "Cohere")underlying_model_namedropdown with model-specific options3. Parameter Rules Integration
Implementation Details
New Files Needed:
models/bedrock/models/text_embedding/model_ids.pymodels/bedrock/models/rerank/model_ids.pyModified Files:
models/bedrock/provider/bedrock.yaml- Enhanced configuration schemamodels/bedrock/models/llm/llm.py- Parameter rules loadingmodels/bedrock/models/text_embedding/text_embedding.py- Inference profile supportmodels/bedrock/models/rerank/rerank.py- Inference profile supportConfiguration Schema:
Expected Benefits
Testing Requirements
Backward Compatibility
This enhancement maintains full backward compatibility:
Priority: High
This addresses a significant gap in Bedrock plugin functionality and greatly improves the user experience for AWS Bedrock inference profiles across all supported model types.