feat: chatgpt prompts

This commit is contained in:
lencx
2022-12-16 20:16:34 +08:00
parent 20105d54be
commit 3318bfb23f
3 changed files with 17 additions and 1 deletions

View File

@@ -32,6 +32,13 @@ const LanguageModel: ForwardRefRenderFunction<FormProps, LanguageModelProps> = (
labelCol={{ span: 4 }}
initialValues={initFormValue}
>
<Form.Item
label="/{cmd}"
name="cmd"
rules={[{ required: true, message: 'Please input {cmd}!' }]}
>
<Input placeholder="Please input {cmd}" {...DISABLE_AUTO_COMPLETE} />
</Form.Item>
<Form.Item
label="Act"
name="act"

View File

@@ -1,6 +1,14 @@
import { Tag, Switch, Tooltip, Space } from 'antd';
export const modelColumns = () => [
{
title: '/{cmd}',
dataIndex: 'cmd',
fixed: 'left',
width: 40,
key: 'cmd',
render: (v: string) => <Tag color="#2a2a2a">/{v}</Tag>
},
{
title: 'Act',
dataIndex: 'act',

View File

@@ -52,7 +52,8 @@ export default function LanguageModel() {
<div>
<Button className="add-btn" type="primary" onClick={opInfo.opNew}>Add Model</Button>
<Table
rowKey="act"
key={opInfo.opTime}
rowKey="cmd"
columns={columns}
dataSource={opData}
pagination={{