mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 00:16:04 +08:00
fix: restore xinference secret field (#6941)
Co-authored-by: liuzhenghua-jk <liuzhenghua-jk@360shuke.com>
This commit is contained in:
parent
20d3e1d297
commit
141e4e0276
@ -33,7 +33,7 @@ model_credential_schema:
|
|||||||
label:
|
label:
|
||||||
zh_Hans: 服务器URL
|
zh_Hans: 服务器URL
|
||||||
en_US: Server url
|
en_US: Server url
|
||||||
type: text-input
|
type: secret-input
|
||||||
required: true
|
required: true
|
||||||
placeholder:
|
placeholder:
|
||||||
zh_Hans: 在此输入Xinference的服务器地址,如 http://192.168.1.100:9997
|
zh_Hans: 在此输入Xinference的服务器地址,如 http://192.168.1.100:9997
|
||||||
@ -51,7 +51,7 @@ model_credential_schema:
|
|||||||
label:
|
label:
|
||||||
zh_Hans: API密钥
|
zh_Hans: API密钥
|
||||||
en_US: API key
|
en_US: API key
|
||||||
type: text-input
|
type: secret-input
|
||||||
required: false
|
required: false
|
||||||
placeholder:
|
placeholder:
|
||||||
zh_Hans: 在此输入您的API密钥
|
zh_Hans: 在此输入您的API密钥
|
||||||
|
@ -114,7 +114,7 @@ const Form: FC<FormProps> = ({
|
|||||||
validated={validatedSuccess}
|
validated={validatedSuccess}
|
||||||
placeholder={placeholder?.[language] || placeholder?.en_US}
|
placeholder={placeholder?.[language] || placeholder?.en_US}
|
||||||
disabled={disabed}
|
disabled={disabed}
|
||||||
type={formSchema.type === FormTypeEnum.textNumber ? 'number' : formSchema.type === FormTypeEnum.secretInput ? 'password' : 'text'}
|
type={formSchema.type === FormTypeEnum.textNumber ? 'number' : 'text'}
|
||||||
{...(formSchema.type === FormTypeEnum.textNumber ? { min: (formSchema as CredentialFormSchemaNumberInput).min, max: (formSchema as CredentialFormSchemaNumberInput).max } : {})}
|
{...(formSchema.type === FormTypeEnum.textNumber ? { min: (formSchema as CredentialFormSchemaNumberInput).min, max: (formSchema as CredentialFormSchemaNumberInput).max } : {})}
|
||||||
/>
|
/>
|
||||||
{fieldMoreInfo?.(formSchema)}
|
{fieldMoreInfo?.(formSchema)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user