mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-12 06:19:03 +08:00
fix: model parameter stop sequence (#1885)
This commit is contained in:
parent
a8ff2e95da
commit
4e1cd75f6f
@ -63,8 +63,13 @@ const ParameterItem: FC<ParameterItemProps> = ({
|
||||
|
||||
const handleChange = (v: ParameterValue) => {
|
||||
setLocalValue(v)
|
||||
if (!isNullOrUndefined(value) && onChange)
|
||||
|
||||
if (onChange) {
|
||||
if (parameterRule.name === 'stop')
|
||||
onChange(v)
|
||||
else if (!isNullOrUndefined(value))
|
||||
onChange(v)
|
||||
}
|
||||
}
|
||||
|
||||
const handleNumberInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user