feat: add temperature and top-p to ModelSetting and add ChatConfigurationModal and bind backend data to KnowledgeCard (#65)

* feat: bind backend data to KnowledgeCard

* feat: add ChatConfigurationModal

* feat: add temperature and top-p to ModelSetting
This commit is contained in:
balibabu
2024-02-19 19:16:23 +08:00
committed by GitHub
parent f3d0ebd293
commit 452020d33a
19 changed files with 890 additions and 10 deletions

View File

@ -0,0 +1,35 @@
import { Form, Input } from 'antd';
import classNames from 'classnames';
import { ISegmentedContentProps } from './interface';
import styles from './index.less';
const AssistantSetting = ({ show }: ISegmentedContentProps) => {
return (
<section
className={classNames({
[styles.segmentedHidden]: !show,
})}
>
<Form.Item
name={'name'}
label="Assistant name"
rules={[{ required: true }]}
>
<Input placeholder="e.g. Resume Jarvis" />
</Form.Item>
<Form.Item name={'avatar'} label="Assistant avatar">
<Input />
</Form.Item>
<Form.Item name={'keywords'} label="Keywords">
<Input.TextArea autoSize={{ minRows: 3 }} />
</Form.Item>
<Form.Item name={'opener'} label="Set an opener">
<Input.TextArea autoSize={{ minRows: 5 }} />
</Form.Item>
</section>
);
};
export default AssistantSetting;