feat(web): 优化界面,移除思考开关
This commit is contained in:
@@ -2,7 +2,7 @@ import {ClearOutlined, FileOutlined, UserOutlined} from '@ant-design/icons'
|
|||||||
import {Bubble, Sender, useXAgent, useXChat, Welcome} from '@ant-design/x'
|
import {Bubble, Sender, useXAgent, useXChat, Welcome} from '@ant-design/x'
|
||||||
import {fetchEventSource} from '@echofly/fetch-event-source'
|
import {fetchEventSource} from '@echofly/fetch-event-source'
|
||||||
import {useMount} from 'ahooks'
|
import {useMount} from 'ahooks'
|
||||||
import {Button, Collapse, Divider, Flex, Popover, Radio, Switch, Tooltip, Typography} from 'antd'
|
import {Button, Collapse, Flex, Popover, Radio, Typography} from 'antd'
|
||||||
import {isEqual, isStrBlank, trim} from 'licia'
|
import {isEqual, isStrBlank, trim} from 'licia'
|
||||||
import markdownIt from 'markdown-it'
|
import markdownIt from 'markdown-it'
|
||||||
import {useRef, useState} from 'react'
|
import {useRef, useState} from 'react'
|
||||||
@@ -202,14 +202,6 @@ function Conversation() {
|
|||||||
return (
|
return (
|
||||||
<Flex justify="space-between" align="center">
|
<Flex justify="space-between" align="center">
|
||||||
<Flex gap="small" align="center">
|
<Flex gap="small" align="center">
|
||||||
深度思考
|
|
||||||
<Switch
|
|
||||||
size="small"
|
|
||||||
value={think}
|
|
||||||
onChange={setThink}
|
|
||||||
disabled={messages.length > 0}
|
|
||||||
/>
|
|
||||||
<Divider type="vertical"/>
|
|
||||||
<Popover
|
<Popover
|
||||||
title="选择知识库"
|
title="选择知识库"
|
||||||
trigger="hover"
|
trigger="hover"
|
||||||
@@ -232,17 +224,18 @@ function Conversation() {
|
|||||||
icon={<FileOutlined/>}
|
icon={<FileOutlined/>}
|
||||||
type="text"
|
type="text"
|
||||||
size="small"
|
size="small"
|
||||||
/>
|
>
|
||||||
|
知识库
|
||||||
|
</Button>
|
||||||
</Popover>
|
</Popover>
|
||||||
<Tooltip title="清空对话">
|
<Button
|
||||||
<Button
|
icon={<ClearOutlined/>}
|
||||||
icon={<ClearOutlined/>}
|
type="text"
|
||||||
type="text"
|
size="small"
|
||||||
size="small"
|
onClick={() => setMessages([])}
|
||||||
onClick={() => setMessages([])}
|
>
|
||||||
/>
|
清空对话
|
||||||
</Tooltip>
|
</Button>
|
||||||
<Divider type="vertical"/>
|
|
||||||
</Flex>
|
</Flex>
|
||||||
<Flex align="center">
|
<Flex align="center">
|
||||||
{agent.isRequesting() ? (
|
{agent.isRequesting() ? (
|
||||||
|
|||||||
Reference in New Issue
Block a user