mirror of
https://github.com/FranP-code/ChatGPT.git
synced 2025-10-13 00:13:25 +00:00
feat: chatgpt prompts
This commit is contained in:
7
src/view/LanguageModel/Form.tsx
vendored
7
src/view/LanguageModel/Form.tsx
vendored
@@ -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"
|
||||
|
||||
8
src/view/LanguageModel/config.tsx
vendored
8
src/view/LanguageModel/config.tsx
vendored
@@ -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',
|
||||
|
||||
3
src/view/LanguageModel/index.tsx
vendored
3
src/view/LanguageModel/index.tsx
vendored
@@ -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={{
|
||||
|
||||
Reference in New Issue
Block a user