* 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
28 lines
627 B
TypeScript
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)
|