forked from langflow-ai/langflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: bedrock component handling AWS constants (langflow-ai#4514)
* update model list as constants update model list as constants Add default value to Secret string variables * Update amazon_bedrock.py load_from_db false for session_token
- Loading branch information
1 parent
78ca4fd
commit 296d006
Showing
3 changed files
with
85 additions
and
105 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
AWS_MODEL_IDs = [ | ||
"amazon.titan-text-express-v1", | ||
"amazon.titan-text-lite-v1", | ||
"amazon.titan-text-premier-v1:0", | ||
"amazon.titan-embed-text-v1", | ||
"amazon.titan-embed-text-v2:0", | ||
"amazon.titan-embed-image-v1", | ||
"amazon.titan-image-generator-v1", | ||
"anthropic.claude-v2", | ||
"anthropic.claude-v2:1", | ||
"anthropic.claude-3-sonnet-20240229-v1:0", | ||
"anthropic.claude-3-haiku-20240307-v1:0", | ||
"anthropic.claude-3-opus-20240229-v1:0", | ||
"anthropic.claude-instant-v1", | ||
"ai21.j2-mid-v1", | ||
"ai21.j2-ultra-v1", | ||
"cohere.command-text-v14", | ||
"cohere.command-light-text-v14", | ||
"cohere.command-r-v1:0", | ||
"cohere.command-r-plus-v1:0", | ||
"cohere.embed-english-v3", | ||
"cohere.embed-multilingual-v3", | ||
"meta.llama2-13b-chat-v1", | ||
"meta.llama2-70b-chat-v1", | ||
"meta.llama3-8b-instruct-v1:0", | ||
"meta.llama3-70b-instruct-v1:0", | ||
"mistral.mistral-7b-instruct-v0:2", | ||
"mistral.mixtral-8x7b-instruct-v0:1", | ||
"mistral.mistral-large-2402-v1:0", | ||
"mistral.mistral-small-2402-v1:0", | ||
"stability.stable-diffusion-xl-v0", | ||
"stability.stable-diffusion-xl-v1", | ||
] | ||
|
||
AWS_REGIONS = [ | ||
"us-west-2", | ||
"us-west-1", | ||
"us-gov-west-1", | ||
"us-gov-east-1", | ||
"us-east-2", | ||
"us-east-1", | ||
"sa-east-1", | ||
"me-south-1", | ||
"me-central-1", | ||
"il-central-1", | ||
"eu-west-3", | ||
"eu-west-2", | ||
"eu-west-1", | ||
"eu-south-2", | ||
"eu-south-1", | ||
"eu-north-1", | ||
"eu-central-2", | ||
"eu-central-1", | ||
"cn-northwest-1", | ||
"cn-north-1", | ||
"ca-west-1", | ||
"ca-central-1", | ||
"ap-southeast-5", | ||
"ap-southeast-4", | ||
"ap-southeast-3", | ||
"ap-southeast-2", | ||
"ap-southeast-1", | ||
"ap-south-2", | ||
"ap-south-1", | ||
"ap-northeast-3", | ||
"ap-northeast-2", | ||
"ap-northeast-1", | ||
"ap-east-1", | ||
"af-south-1", | ||
] |
This file contains 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
This file contains 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