* 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
27 lines
667 B
TypeScript
27 lines
667 B
TypeScript
import SettingComponentBuilder from '../../Chat/ModelSetting/SettingComponent'
|
|
import { SettingComponentData } from '../ModelSetting/SettingComponent'
|
|
|
|
const EngineSetting = ({
|
|
componentData,
|
|
enabled = true,
|
|
}: {
|
|
componentData: SettingComponentData[]
|
|
enabled?: boolean
|
|
}) => {
|
|
return (
|
|
<>
|
|
{componentData.filter((e) => e.name !== 'prompt_template').length && (
|
|
<div className="flex flex-col">
|
|
<SettingComponentBuilder
|
|
componentData={componentData}
|
|
enabled={enabled}
|
|
selector={(e) => e.name !== 'prompt_template'}
|
|
/>
|
|
</div>
|
|
)}
|
|
</>
|
|
)
|
|
}
|
|
|
|
export default EngineSetting
|