ModelPlaza.tsx
1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
import { Tabs } from 'antd';
import { MessageOutlined, ToolOutlined } from '@ant-design/icons';
import SimpleCall from './SimpleCall';
import DebugConsole from './DebugConsole';
export default function ModelPlaza() {
return (
<div className="debug-console-page">
<div className="page-header">
<div className="page-header-left">
<div className="page-header-title">模型广场</div>
<div className="page-header-desc">快速体验和调试 LLM 模型</div>
</div>
</div>
<Tabs
defaultActiveKey="simple"
size="large"
destroyInactiveTabPane={false}
items={[
{
key: 'simple',
label: (
<span>
<MessageOutlined style={{ marginRight: 6 }} />
简单调用
</span>
),
children: <SimpleCall />,
},
{
key: 'debug',
label: (
<span>
<ToolOutlined style={{ marginRight: 6 }} />
调试台
</span>
),
children: <DebugConsole />,
},
]}
/>
</div>
);
}