fix: bedrock required fields
This commit is contained in:
@@ -139,34 +139,6 @@ const useProviderRequiredFields = () => {
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
[ProviderEnum.BEDROCK]: [
|
[ProviderEnum.BEDROCK]: [
|
||||||
{
|
|
||||||
type: 'Input',
|
|
||||||
name: 'modelVersion',
|
|
||||||
required: false,
|
|
||||||
label: {
|
|
||||||
text: 'providers.form.modelVersion',
|
|
||||||
locale: true
|
|
||||||
},
|
|
||||||
description: {
|
|
||||||
text: 'providers.form.modelVersion.tips',
|
|
||||||
locale: true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
type: 'Input',
|
|
||||||
name: 'tritonDomain',
|
|
||||||
required: false,
|
|
||||||
label: {
|
|
||||||
text: 'providers.form.tritonDomain',
|
|
||||||
locale: true
|
|
||||||
},
|
|
||||||
description: {
|
|
||||||
text: 'providers.form.tritonDomain.tips',
|
|
||||||
locale: true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
[ProviderEnum.TRITON]: [
|
|
||||||
{
|
{
|
||||||
type: 'Input',
|
type: 'Input',
|
||||||
name: 'awsAccessKey',
|
name: 'awsAccessKey',
|
||||||
@@ -200,6 +172,10 @@ const useProviderRequiredFields = () => {
|
|||||||
{
|
{
|
||||||
type: 'Input',
|
type: 'Input',
|
||||||
name: 'awsRegion',
|
name: 'awsRegion',
|
||||||
|
placeholder: intl.formatMessage(
|
||||||
|
{ id: 'common.help.eg' },
|
||||||
|
{ content: 'us-eest-1' }
|
||||||
|
),
|
||||||
required: true,
|
required: true,
|
||||||
label: {
|
label: {
|
||||||
text: 'providers.form.awsRegion',
|
text: 'providers.form.awsRegion',
|
||||||
|
|||||||
Reference in New Issue
Block a user