mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 19:00:59 +03:00
add bedrock embeddings
This commit is contained in:
@@ -31,7 +31,7 @@ class AWSChatBedrock_ChatModels implements INode {
|
||||
this.type = 'AWSChatBedrock'
|
||||
this.icon = 'awsBedrock.png'
|
||||
this.category = 'Chat Models'
|
||||
this.description = 'Wrapper around AWS Bedrock large language models'
|
||||
this.description = 'Wrapper around AWS Bedrock large language models that use the Chat endpoint'
|
||||
this.baseClasses = [this.type, ...getBaseClasses(ChatBedrock)]
|
||||
this.credential = {
|
||||
label: 'AWS Credential',
|
||||
@@ -88,27 +88,18 @@ class AWSChatBedrock_ChatModels implements INode {
|
||||
{ label: 'us-west-1', name: 'us-west-1' },
|
||||
{ label: 'us-west-2', name: 'us-west-2' }
|
||||
],
|
||||
default: 'us-east-1',
|
||||
optional: false
|
||||
default: 'us-east-1'
|
||||
},
|
||||
{
|
||||
label: 'Model Name',
|
||||
name: 'model',
|
||||
type: 'options',
|
||||
options: [
|
||||
{ label: 'amazon.titan-tg1-large', name: 'amazon.titan-tg1-large' },
|
||||
{ label: 'amazon.titan-e1t-medium', name: 'amazon.titan-e1t-medium' },
|
||||
{ label: 'stability.stable-diffusion-xl', name: 'stability.stable-diffusion-xl' },
|
||||
{ label: 'ai21.j2-grande-instruct', name: 'ai21.j2-grande-instruct' },
|
||||
{ label: 'ai21.j2-jumbo-instruct', name: 'ai21.j2-jumbo-instruct' },
|
||||
{ label: 'ai21.j2-mid', name: 'ai21.j2-mid' },
|
||||
{ label: 'ai21.j2-ultra', name: 'ai21.j2-ultra' },
|
||||
{ label: 'anthropic.claude-instant-v1', name: 'anthropic.claude-instant-v1' },
|
||||
{ label: 'anthropic.claude-v1', name: 'anthropic.claude-v1' },
|
||||
{ label: 'anthropic.claude-v2', name: 'anthropic.claude-v2' }
|
||||
],
|
||||
default: 'anthropic.claude-v2',
|
||||
optional: false
|
||||
default: 'anthropic.claude-v2'
|
||||
},
|
||||
{
|
||||
label: 'Temperature',
|
||||
@@ -117,8 +108,7 @@ class AWSChatBedrock_ChatModels implements INode {
|
||||
step: 0.1,
|
||||
description: 'Temperature parameter may not apply to certain model. Please check available model parameters',
|
||||
optional: true,
|
||||
default: 0.7,
|
||||
additionalParams: false
|
||||
default: 0.7
|
||||
},
|
||||
{
|
||||
label: 'Max Tokens to Sample',
|
||||
@@ -126,9 +116,8 @@ class AWSChatBedrock_ChatModels implements INode {
|
||||
type: 'number',
|
||||
step: 10,
|
||||
description: 'Max Tokens parameter may not apply to certain model. Please check available model parameters',
|
||||
optional: false,
|
||||
default: 200,
|
||||
additionalParams: false
|
||||
optional: true,
|
||||
default: 200
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user