* feat: stop word model setting * chore: update test tag input * chore: handle UI when no stop word * chore: fix types of value tag input
29 lines
591 B
TypeScript
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
|