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