Add support for Bedrock as model provider#1194
Open
ensean wants to merge 2 commits into
Open
Conversation
- Add BedrockLLM class with support for both bedrock-runtime and bedrock-mantle endpoints - Implement protocol-to-model-type mapping for better model configuration management - Add AWS region extraction utility from Bedrock endpoint URLs - Register Bedrock as a supported model type in LLMFactory - Add langchain-aws dependency to backend - Update model protocol handling to use new get_model_type_by_protocol function - Add Amazon Bedrock supplier configuration to frontend with full model and parameter setup - Add i18n translations for Bedrock in English, Chinese (Simplified/Traditional), and Korean - Update ModelForm.vue to display Bedrock-specific configuration options and endpoint guidance
- Add `/bedrock/models` API endpoint to list invocable Bedrock models grouped by scope (In-Region, Cross-Region Geo, Global, Foundation Models) - Implement model grouping logic based on inference profile type and geo prefixes (us, eu, apac) - Add `BedrockModelListReq` schema with AWS region, credentials, and endpoint type parameters - Install boto3 and langchain-aws separately in Dockerfile with --no-deps to avoid numpy version conflicts - Remove langchain-aws from main dependencies (now installed separately during build) - Update default PyPI index URL from Aliyun mirror to pypi.org - Add frontend API integration and UI components for Bedrock model selection - Add i18n support for Bedrock model listing in English, Korean, Simplified Chinese, and Traditional Chinese
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.