Louis 3ab23d571f
fix: local server blank parameters if there is no thread selected (#2028)
* fix: local server blank parameters if there is no thread selected

* fix: show errors only when the selected model is started while starting the server

* fix: show loading progress of selected model only
2024-02-15 15:48:45 +07:00

28 lines
627 B
TypeScript

/* eslint-disable @typescript-eslint/no-explicit-any */
import React from 'react'
import SettingComponentBuilder, {
SettingComponentData,
} from './SettingComponent'
const ModelSetting = ({
componentData,
}: {
componentData: SettingComponentData[]
}) => {
return (
<>
{componentData.filter((e) => e.name !== 'prompt_template').length && (
<div className="flex flex-col">
<SettingComponentBuilder
componentData={componentData}
selector={(e) => e.name !== 'prompt_template'}
/>
</div>
)}
</>
)
}
export default React.memo(ModelSetting)