mirror of
https://github.com/lobehub/lobe-chat.git
synced 2025-12-20 01:12:52 +08:00
@@ -15,6 +15,40 @@ import ProviderDetail from '../default';
|
||||
|
||||
const providerKey: GlobalLLMProviderKey = 'bedrock';
|
||||
|
||||
const AWS_REGIONS: string[] = [
|
||||
'us-east-1',
|
||||
'us-east-2',
|
||||
'us-west-1',
|
||||
'us-west-2',
|
||||
'ca-central-1',
|
||||
'us-gov-east-1',
|
||||
'us-gov-west-1',
|
||||
'sa-east-1',
|
||||
'eu-north-1',
|
||||
'eu-west-1',
|
||||
'eu-west-2',
|
||||
'eu-west-3',
|
||||
'eu-central-1',
|
||||
'eu-central-2',
|
||||
'eu-south-1',
|
||||
'eu-south-2',
|
||||
'me-south-1',
|
||||
'me-central-1',
|
||||
'af-south-1',
|
||||
'ap-south-1',
|
||||
'ap-south-2',
|
||||
'ap-east-1',
|
||||
'ap-southeast-1',
|
||||
'ap-southeast-2',
|
||||
'ap-southeast-3',
|
||||
'ap-southeast-4',
|
||||
'ap-northeast-1',
|
||||
'ap-northeast-2',
|
||||
'ap-northeast-3',
|
||||
'cn-north-1',
|
||||
'cn-northwest-1',
|
||||
];
|
||||
|
||||
const useBedrockCard = (): ProviderItem => {
|
||||
const { t } = useTranslation('modelProvider');
|
||||
|
||||
@@ -68,11 +102,11 @@ const useBedrockCard = (): ProviderItem => {
|
||||
) : (
|
||||
<Select
|
||||
allowClear
|
||||
options={['us-east-1', 'us-west-2', 'ap-southeast-1', 'eu-central-1'].map((i) => ({
|
||||
options={AWS_REGIONS.map((i) => ({
|
||||
label: i,
|
||||
value: i,
|
||||
}))}
|
||||
placeholder={'us-east-1'}
|
||||
placeholder={AWS_REGIONS[0]}
|
||||
/>
|
||||
),
|
||||
desc: t(`${providerKey}.region.desc`),
|
||||
|
||||
Reference in New Issue
Block a user