mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-15 19:25:57 +08:00
fix: remove the maximum length limit of "paragraph" variable (#6234)
This commit is contained in:
parent
7c2c949f01
commit
c564f32ab6
@ -17,7 +17,6 @@ import Switch from '@/app/components/base/switch'
|
|||||||
import { ChangeType, InputVarType } from '@/app/components/workflow/types'
|
import { ChangeType, InputVarType } from '@/app/components/workflow/types'
|
||||||
|
|
||||||
const TEXT_MAX_LENGTH = 256
|
const TEXT_MAX_LENGTH = 256
|
||||||
const PARAGRAPH_MAX_LENGTH = 1032 * 32
|
|
||||||
|
|
||||||
export type IConfigModalProps = {
|
export type IConfigModalProps = {
|
||||||
isCreate?: boolean
|
isCreate?: boolean
|
||||||
@ -167,7 +166,7 @@ const ConfigModal: FC<IConfigModalProps> = ({
|
|||||||
|
|
||||||
{isStringInput && (
|
{isStringInput && (
|
||||||
<Field title={t('appDebug.variableConig.maxLength')}>
|
<Field title={t('appDebug.variableConig.maxLength')}>
|
||||||
<ConfigString maxLength={type === InputVarType.textInput ? TEXT_MAX_LENGTH : PARAGRAPH_MAX_LENGTH} modelId={modelConfig.model_id} value={max_length} onChange={handlePayloadChange('max_length')} />
|
<ConfigString maxLength={type === InputVarType.textInput ? TEXT_MAX_LENGTH : Infinity} modelId={modelConfig.model_id} value={max_length} onChange={handlePayloadChange('max_length')} />
|
||||||
</Field>
|
</Field>
|
||||||
|
|
||||||
)}
|
)}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user