mirror of
https://github.com/langgenius/dify.git
synced 2026-03-10 03:00:20 +08:00
fix: model config
This commit is contained in:
parent
fce114f6ae
commit
17a0df3bf2
@ -89,10 +89,17 @@ const ModelLoadBalancingModal = ({
|
||||
}, [draftConfig])
|
||||
|
||||
const extendedSecretFormSchemas = useMemo(
|
||||
() => provider.provider_credential_schema.credential_form_schemas.filter(
|
||||
({ type }) => type === FormTypeEnum.secretInput,
|
||||
),
|
||||
[provider.provider_credential_schema.credential_form_schemas],
|
||||
() => {
|
||||
if (providerFormSchemaPredefined) {
|
||||
return provider?.provider_credential_schema?.credential_form_schemas?.filter(
|
||||
({ type }) => type === FormTypeEnum.secretInput,
|
||||
) ?? []
|
||||
}
|
||||
return provider?.model_credential_schema?.credential_form_schemas?.filter(
|
||||
({ type }) => type === FormTypeEnum.secretInput,
|
||||
) ?? []
|
||||
},
|
||||
[provider?.model_credential_schema?.credential_form_schemas, provider?.provider_credential_schema?.credential_form_schemas, providerFormSchemaPredefined],
|
||||
)
|
||||
|
||||
const encodeConfigEntrySecretValues = useCallback((entry: ModelLoadBalancingConfigEntry) => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user