feat: support amazon bedrock anthropic (#114)

* 🚧 WIP: bedrock

*  feat: support amazon bedrock anthropic
This commit is contained in:
Buer
2024-03-18 16:00:35 +08:00
committed by GitHub
parent 6f76007292
commit b81808e839
23 changed files with 1617 additions and 29 deletions

View File

@@ -101,6 +101,12 @@ export const CHANNEL_OPTIONS = {
value: 31,
color: 'primary'
},
32: {
key: 32,
text: 'Amazon Bedrock',
value: 32,
color: 'orange'
},
24: {
key: 24,
text: 'Azure Speech',

View File

@@ -60,8 +60,15 @@ const typeConfig = {
},
14: {
input: {
models: ['claude-instant-1.2', 'claude-2.0', 'claude-2.1', 'claude-3-opus-20240229', 'claude-3-sonnet-20240229'],
test_model: 'claude-3-sonnet-20240229'
models: [
'claude-instant-1.2',
'claude-2.0',
'claude-2.1',
'claude-3-opus-20240229',
'claude-3-sonnet-20240229',
'claude-3-haiku-20240307'
],
test_model: 'claude-3-haiku-20240307'
},
modelGroup: 'Anthropic'
},
@@ -202,6 +209,23 @@ const typeConfig = {
test_model: 'llama2-7b-2048'
},
modelGroup: 'Groq'
},
32: {
input: {
models: [
'claude-instant-1.2',
'claude-2.0',
'claude-2.1',
'claude-3-opus-20240229',
'claude-3-sonnet-20240229',
'claude-3-haiku-20240307'
],
test_model: 'claude-3-haiku-20240307'
},
prompt: {
key: '按照如下格式输入Region|AccessKeyID|SecretAccessKey|SessionToken 其中SessionToken可不填空'
},
modelGroup: 'Anthropic'
}
};