Merge remote-tracking branch 'origin/feat/rag-2' into feat/rag-2

This commit is contained in:
jyong 2025-09-02 16:44:33 +08:00
commit a8cd1e2483
2 changed files with 5 additions and 5 deletions

View File

@ -14,7 +14,7 @@ export enum FormTypeEnum {
secretInput = 'secret-input', secretInput = 'secret-input',
select = 'select', select = 'select',
radio = 'radio', radio = 'radio',
boolean = 'boolean', boolean = 'checkbox',
files = 'files', files = 'files',
file = 'file', file = 'file',
modelSelector = 'model-selector', modelSelector = 'model-selector',

View File

@ -94,8 +94,8 @@ const FormInputItem: FC<Props> = ({
// return VarType.appSelector // return VarType.appSelector
// else if (isModelSelector) // else if (isModelSelector)
// return VarType.modelSelector // return VarType.modelSelector
// else if (isBoolean) else if (isBoolean)
// return VarType.boolean return VarType.boolean
else if (isObject) else if (isObject)
return VarType.object return VarType.object
else if (isArray) else if (isArray)
@ -187,7 +187,7 @@ const FormInputItem: FC<Props> = ({
return ( return (
<div className={cn('gap-1', !(isShowJSONEditor && isConstant) && 'flex')}> <div className={cn('gap-1', !(isShowJSONEditor && isConstant) && 'flex')}>
{showTypeSwitch && ( {showTypeSwitch && (
<FormInputTypeSwitch value={varInput?.type || VarKindType.constant} onChange={handleTypeChange}/> <FormInputTypeSwitch value={varInput?.type || VarKindType.constant} onChange={handleTypeChange} />
)} )}
{isString && ( {isString && (
<MixedVariableTextInput <MixedVariableTextInput
@ -209,7 +209,7 @@ const FormInputItem: FC<Props> = ({
placeholder={placeholder?.[language] || placeholder?.en_US} placeholder={placeholder?.[language] || placeholder?.en_US}
/> />
)} )}
{isBoolean && ( {isBoolean && isConstant && (
<FormInputBoolean <FormInputBoolean
value={varInput?.value as boolean} value={varInput?.value as boolean}
onChange={handleValueChange} onChange={handleValueChange}