Преглед изворни кода

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

tags/2.0.0-beta.1
jyong пре 2 месеци
родитељ
комит
a8cd1e2483

+ 1
- 1
web/app/components/header/account-setting/model-provider-page/declarations.ts Прегледај датотеку

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

+ 4
- 4
web/app/components/workflow/nodes/_base/components/form-input-item.tsx Прегледај датотеку

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

Loading…
Откажи
Сачувај