Faisal Amir 314cb03693
feat: stop word model setting (#4113)
* feat: stop word model setting

* chore: update test tag input

* chore: handle UI when no stop word

* chore: fix types of value tag input
2024-11-25 21:17:16 +07:00

29 lines
591 B
TypeScript

import { SettingComponentProps } from '@janhq/core'
import SettingComponentBuilder from '@/containers/ModelSetting/SettingComponent'
type Props = {
componentData: SettingComponentProps[]
onValueChanged: (
key: string,
value: string | number | boolean | string[]
) => void
disabled?: boolean
}
const EngineSetting = ({
componentData,
onValueChanged,
disabled = false,
}: Props) => {
return (
<SettingComponentBuilder
componentProps={componentData}
disabled={disabled}
onValueUpdated={onValueChanged}
/>
)
}
export default EngineSetting