Skip to content

Commit 4a82daf

Browse files
authored
💄 style: add more AWS regions (lobehub#9644)
add more regions
1 parent 84baabc commit 4a82daf

File tree

1 file changed

+36
-2
lines changed
  • src/app/[variants]/(main)/settings/provider/detail/bedrock

1 file changed

+36
-2
lines changed

src/app/[variants]/(main)/settings/provider/detail/bedrock/index.tsx

Lines changed: 36 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,40 @@ import ProviderDetail from '../default';
1515

1616
const providerKey: GlobalLLMProviderKey = 'bedrock';
1717

18+
const AWS_REGIONS: string[] = [
19+
'us-east-1',
20+
'us-east-2',
21+
'us-west-1',
22+
'us-west-2',
23+
'ca-central-1',
24+
'us-gov-east-1',
25+
'us-gov-west-1',
26+
'sa-east-1',
27+
'eu-north-1',
28+
'eu-west-1',
29+
'eu-west-2',
30+
'eu-west-3',
31+
'eu-central-1',
32+
'eu-central-2',
33+
'eu-south-1',
34+
'eu-south-2',
35+
'me-south-1',
36+
'me-central-1',
37+
'af-south-1',
38+
'ap-south-1',
39+
'ap-south-2',
40+
'ap-east-1',
41+
'ap-southeast-1',
42+
'ap-southeast-2',
43+
'ap-southeast-3',
44+
'ap-southeast-4',
45+
'ap-northeast-1',
46+
'ap-northeast-2',
47+
'ap-northeast-3',
48+
'cn-north-1',
49+
'cn-northwest-1',
50+
];
51+
1852
const useBedrockCard = (): ProviderItem => {
1953
const { t } = useTranslation('modelProvider');
2054

@@ -68,11 +102,11 @@ const useBedrockCard = (): ProviderItem => {
68102
) : (
69103
<Select
70104
allowClear
71-
options={['us-east-1', 'us-west-2', 'ap-southeast-1', 'eu-central-1'].map((i) => ({
105+
options={AWS_REGIONS.map((i) => ({
72106
label: i,
73107
value: i,
74108
}))}
75-
placeholder={'us-east-1'}
109+
placeholder={AWS_REGIONS[0]}
76110
/>
77111
),
78112
desc: t(`${providerKey}.region.desc`),

0 commit comments

Comments
 (0)