Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
ca99837d
authored
May 14, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: ui;perf: docs
parent
d31bdf0e
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
14 deletions
+20
-14
README.md
+1
-1
public/docs/versionIntro.md
+3
-7
src/components/Loading/index.tsx
+1
-1
src/pages/api/model/del.ts
+6
-1
src/pages/chat/components/History.tsx
+2
-2
src/pages/chat/index.tsx
+7
-2
No files found.
README.md
View file @
ca99837d
...
...
@@ -35,7 +35,7 @@ wx: fastgpt123
## 👀 其他
-
[
FastGpt 常见问题
](
https://kjqvjse66l.feishu.cn/docx/HtrgdT0pkonP4kxGx8qcu6XDnGh
)
-
[
FastGpt + Laf 最佳实践,将知识库装入公众号,点击去 Laf 公众号体验效果
](
https://
hnvacz-laf-upload-ai.oss.laf.run/3ffd528ee2f9ae1dcd3508fe9994dd9
.png
)
-
[
FastGpt + Laf 最佳实践,将知识库装入公众号,点击去 Laf 公众号体验效果
](
https://
b4jky7-fastgpt.oss.laf.run/lafercode
.png
)
-
[
FastGpt V3.4 更新集合
](
https://www.bilibili.com/video/BV1Lo4y147Qh/?vd_source=92041a1a395f852f9d89158eaa3f61b4
)
-
[
FastGpt 知识库演示
](
https://www.bilibili.com/video/BV1Wo4y1p7i1/
)
...
...
public/docs/versionIntro.md
View file @
ca99837d
### Fast GPT V3.
4
### Fast GPT V3.
6
-
新增 - 全新的交互 UI
-
新增 - 用户自定义头像
-
优化 - 知识库搜索,会将上一个问题并入搜索范围。
-
优化 - 模型结构设计,不再区分知识库和对话模型,而是通过开关的形式,手动选择手否需要进行知识库搜索。
-
新增 - 模型共享市场,可以使用其他用户分享的模型。
-
新增 - 邀请好友注册功能。
-
新增 - 分享免登录聊天框。可以直接为模型生成一个分享链接,其他人可以通过这个链接直接使用对话。
-
优化 - UI 细节。
src/components/Loading/index.tsx
View file @
ca99837d
...
...
@@ -5,7 +5,7 @@ const Loading = ({ fixed = true }: { fixed?: boolean }) => {
return
(
<
Flex
position=
{
fixed
?
'fixed'
:
'absolute'
}
zIndex=
{
1000
0
}
zIndex=
{
1000
}
backgroundColor=
{
'rgba(255,255,255,0.5)'
}
top=
{
0
}
left=
{
0
}
...
...
src/pages/api/model/del.ts
View file @
ca99837d
import
type
{
NextApiRequest
,
NextApiResponse
}
from
'next'
;
import
{
jsonRes
}
from
'@/service/response'
;
import
{
Chat
,
Model
,
connectToDatabase
,
Collection
}
from
'@/service/mongo'
;
import
{
Chat
,
Model
,
connectToDatabase
,
Collection
,
ShareChat
}
from
'@/service/mongo'
;
import
{
authToken
}
from
'@/service/utils/auth'
;
import
{
PgClient
}
from
'@/service/pg'
;
import
{
authModel
}
from
'@/service/utils/auth'
;
...
...
@@ -40,6 +40,11 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse<
modelId
});
// 删除分享链接
await
ShareChat
.
deleteMany
({
modelId
});
// 删除模型
await
Model
.
deleteOne
({
_id
:
modelId
,
...
...
src/pages/chat/components/History.tsx
View file @
ca99837d
...
...
@@ -97,7 +97,7 @@ const PcSliderBar = ({
{
isPc
&&
(
<
Box
className=
{
styles
.
newChat
}
zIndex=
{
100
0
}
zIndex=
{
100
1
}
w=
{
'90%'
}
h=
{
'40px'
}
my=
{
5
}
...
...
@@ -117,7 +117,7 @@ const PcSliderBar = ({
<
Box
className=
{
styles
.
modelListContainer
}
position=
{
'absolute'
}
w=
{
'11
0
%'
}
w=
{
'11
5
%'
}
left=
{
0
}
top=
{
'40px'
}
transition=
{
'0.15s ease-out'
}
...
...
src/pages/chat/index.tsx
View file @
ca99837d
...
...
@@ -681,7 +681,12 @@ const Chat = ({
color={'white'}
/>
</Flex>
<Box position={'relative'} h={'100%'} bg={'white'} overflow={'hidden'}>
<Box
position={'relative'}
h={'100%'}
bg={'white'}
overflow={foldSliderBar ? 'hidden' : 'visible'}
>
<History
onclickDelHistory={onclickDelHistory}
onclickExportChat={onclickExportChat}
...
...
@@ -967,7 +972,7 @@ const Chat = ({
{
<
Modal
isOpen=
{
!!
showSystemPrompt
}
onClose=
{
()
=>
setShowSystemPrompt
(
''
)
}
>
<
ModalOverlay
/>
<
ModalContent
maxW=
{
'min(90vw, 600px)'
}
pr=
{
2
}
maxH=
{
'80vh'
}
overflowY=
{
'auto
'
}
>
<
ModalContent
pt=
{
5
}
maxW=
{
'min(90vw, 600px)'
}
h=
{
'80vh'
}
overflow=
{
'overlay
'
}
>
<
ModalCloseButton
/>
<
ModalBody
pt=
{
5
}
whiteSpace=
{
'pre-wrap'
}
textAlign=
{
'justify'
}
>
{
showSystemPrompt
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment