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
007fce2d
authored
Nov 29, 2023
by
Archer
Committed by
GitHub
Nov 29, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
system title (#526)
parent
abc1e576
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
24 additions
and
11 deletions
+24
-11
packages/global/core/module/template/system/classifyQuestion.ts
+2
-1
projects/app/src/components/ChatBox/MessageInput.tsx
+2
-0
projects/app/src/components/common/MyRadio/index.tsx
+2
-1
projects/app/src/components/core/module/DatasetParamsModal.tsx
+1
-1
projects/app/src/components/core/module/Flow/components/modules/VariableEdit.tsx
+1
-0
projects/app/src/components/support/permission/Radio/index.tsx
+1
-1
projects/app/src/pages/_app.tsx
+5
-5
projects/app/src/pages/api/common/file/uploadImage.ts
+8
-0
projects/app/src/pages/app/detail/components/OutLink/index.tsx
+1
-1
projects/app/src/pages/dataset/detail/components/Import/ImportModal.tsx
+1
-1
No files found.
packages/global/core/module/template/system/classifyQuestion.ts
View file @
007fce2d
...
@@ -42,7 +42,8 @@ export const ClassifyQuestionModule: FlowModuleTemplateType = {
...
@@ -42,7 +42,8 @@ export const ClassifyQuestionModule: FlowModuleTemplateType = {
label
:
'背景知识'
,
label
:
'背景知识'
,
description
:
description
:
'你可以添加一些特定内容的介绍,从而更好的识别用户的问题类型。这个内容通常是给模型介绍一个它不知道的内容。'
,
'你可以添加一些特定内容的介绍,从而更好的识别用户的问题类型。这个内容通常是给模型介绍一个它不知道的内容。'
,
placeholder
:
'例如: \n1. Laf 是一个云函数开发平台……\n2. Sealos 是一个集群操作系统'
,
placeholder
:
'例如: \n1. AIGC(人工智能生成内容)是指使用人工智能技术自动或半自动地生成数字内容,如文本、图像、音乐、视频等。\n2. AIGC技术包括但不限于自然语言处理、计算机视觉、机器学习和深度学习。这些技术可以创建新内容或修改现有内容,以满足特定的创意、教育、娱乐或信息需求。'
,
showTargetInApp
:
true
,
showTargetInApp
:
true
,
showTargetInPlugin
:
true
showTargetInPlugin
:
true
},
},
...
...
projects/app/src/components/ChatBox/MessageInput.tsx
View file @
007fce2d
...
@@ -92,6 +92,8 @@ const MessageInput = ({
...
@@ -92,6 +92,8 @@ const MessageInput = ({
);
);
}
catch
(
error
)
{
}
catch
(
error
)
{
setFileList
((
state
)
=>
state
.
filter
((
item
)
=>
item
.
id
!==
file
.
id
));
setFileList
((
state
)
=>
state
.
filter
((
item
)
=>
item
.
id
!==
file
.
id
));
console
.
log
(
error
);
toast
({
toast
({
status
:
'error'
,
status
:
'error'
,
title
:
t
(
'common.Upload File Failed'
)
title
:
t
(
'common.Upload File Failed'
)
...
...
projects/app/src/components/Radio/index.tsx
→
projects/app/src/components/
common/My
Radio/index.tsx
View file @
007fce2d
...
@@ -44,7 +44,8 @@ const MyRadio = ({
...
@@ -44,7 +44,8 @@ const MyRadio = ({
}
}
:
{
:
{
_hover
:
{
_hover
:
{
bg
:
'
white
'
bg
:
'
myBlue
.
100',
borderColor
:
'
myBlue
.
600'
}
}
})}
})}
_after=
{
{
_after=
{
{
...
...
projects/app/src/components/core/module/DatasetParamsModal.tsx
View file @
007fce2d
...
@@ -11,7 +11,7 @@ import { reRankModelList } from '@/web/common/system/staticData';
...
@@ -11,7 +11,7 @@ import { reRankModelList } from '@/web/common/system/staticData';
import
{
ModuleInputKeyEnum
}
from
'@fastgpt/global/core/module/constants'
;
import
{
ModuleInputKeyEnum
}
from
'@fastgpt/global/core/module/constants'
;
import
{
DatasetSearchModeMap
}
from
'@fastgpt/global/core/dataset/constant'
;
import
{
DatasetSearchModeMap
}
from
'@fastgpt/global/core/dataset/constant'
;
import
MyRadio
from
'@/components/Radio'
;
import
MyRadio
from
'@/components/
common/My
Radio'
;
type
DatasetParamsProps
=
{
type
DatasetParamsProps
=
{
similarity
?:
number
;
similarity
?:
number
;
...
...
projects/app/src/components/core/module/Flow/components/modules/VariableEdit.tsx
View file @
007fce2d
...
@@ -223,6 +223,7 @@ const VariableEdit = ({
...
@@ -223,6 +223,7 @@ const VariableEdit = ({
fontWeight
:
'
bold
'
fontWeight
:
'
bold
'
}
}
:
{
:
{
color
:
'
myGray
.
600',
_hover
:
{
_hover
:
{
boxShadow
:
'
md
'
boxShadow
:
'
md
'
},
},
...
...
projects/app/src/components/support/permission/Radio/index.tsx
View file @
007fce2d
import
React
from
'react'
;
import
React
from
'react'
;
import
MyRadio
from
'@/components/Radio'
;
import
MyRadio
from
'@/components/
common/My
Radio'
;
import
{
PermissionTypeEnum
}
from
'@fastgpt/global/support/permission/constant'
;
import
{
PermissionTypeEnum
}
from
'@fastgpt/global/support/permission/constant'
;
import
{
useTranslation
}
from
'next-i18next'
;
import
{
useTranslation
}
from
'next-i18next'
;
...
...
projects/app/src/pages/_app.tsx
View file @
007fce2d
import
{
useEffect
,
useState
}
from
'react'
;
import
{
useEffect
,
use
Ref
,
use
State
}
from
'react'
;
import
type
{
AppProps
}
from
'next/app'
;
import
type
{
AppProps
}
from
'next/app'
;
import
Script
from
'next/script'
;
import
Script
from
'next/script'
;
import
Head
from
'next/head'
;
import
Head
from
'next/head'
;
...
@@ -39,16 +39,18 @@ function App({ Component, pageProps }: AppProps) {
...
@@ -39,16 +39,18 @@ function App({ Component, pageProps }: AppProps) {
const
router
=
useRouter
();
const
router
=
useRouter
();
const
{
hiId
}
=
router
.
query
as
{
hiId
?:
string
};
const
{
hiId
}
=
router
.
query
as
{
hiId
?:
string
};
const
{
i18n
}
=
useTranslation
();
const
{
i18n
}
=
useTranslation
();
const
{
setLastRoute
}
=
useSystemStore
();
const
[
scripts
,
setScripts
]
=
useState
<
FeConfigsType
[
'scripts'
]
>
([]);
const
[
scripts
,
setScripts
]
=
useState
<
FeConfigsType
[
'scripts'
]
>
([]);
const
[
title
,
setTitle
]
=
useState
(
process
.
env
.
SYSTEM_NAME
||
'AI'
);
useEffect
(()
=>
{
useEffect
(()
=>
{
// get init data
// get init data
(
async
()
=>
{
(
async
()
=>
{
const
{
const
{
feConfigs
:
{
scripts
,
isPlus
}
feConfigs
:
{
scripts
,
isPlus
,
systemTitle
}
}
=
await
clientInitData
();
}
=
await
clientInitData
();
setTitle
(
systemTitle
||
'FastGPT'
);
// log fastgpt
// log fastgpt
!
isPlus
&&
!
isPlus
&&
console
.
log
(
console
.
log
(
...
@@ -90,8 +92,6 @@ function App({ Component, pageProps }: AppProps) {
...
@@ -90,8 +92,6 @@ function App({ Component, pageProps }: AppProps) {
hiId
&&
localStorage
.
setItem
(
'inviterId'
,
hiId
);
hiId
&&
localStorage
.
setItem
(
'inviterId'
,
hiId
);
},
[
hiId
]);
},
[
hiId
]);
const
title
=
feConfigs
?.
systemTitle
||
process
.
env
.
SYSTEM_NAME
||
''
;
return
(
return
(
<>
<>
<
Head
>
<
Head
>
...
...
projects/app/src/pages/api/common/file/uploadImage.ts
View file @
007fce2d
...
@@ -26,3 +26,11 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
...
@@ -26,3 +26,11 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
});
});
}
}
}
}
export
const
config
=
{
api
:
{
bodyParser
:
{
sizeLimit
:
'16mb'
}
}
};
projects/app/src/pages/app/detail/components/OutLink/index.tsx
View file @
007fce2d
...
@@ -4,7 +4,7 @@ import { Box, useTheme } from '@chakra-ui/react';
...
@@ -4,7 +4,7 @@ import { Box, useTheme } from '@chakra-ui/react';
import
{
OutLinkTypeEnum
}
from
'@fastgpt/global/support/outLink/constant'
;
import
{
OutLinkTypeEnum
}
from
'@fastgpt/global/support/outLink/constant'
;
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
import
MyRadio
from
'@/components/Radio'
;
import
MyRadio
from
'@/components/
common/My
Radio'
;
import
Share
from
'./Share'
;
import
Share
from
'./Share'
;
const
API
=
dynamic
(()
=>
import
(
'./API'
));
const
API
=
dynamic
(()
=>
import
(
'./API'
));
...
...
projects/app/src/pages/dataset/detail/components/Import/ImportModal.tsx
View file @
007fce2d
import
React
,
{
useMemo
,
useState
}
from
'react'
;
import
React
,
{
useMemo
,
useState
}
from
'react'
;
import
{
Box
,
type
BoxProps
,
Flex
,
useTheme
,
ModalCloseButton
}
from
'@chakra-ui/react'
;
import
{
Box
,
type
BoxProps
,
Flex
,
useTheme
,
ModalCloseButton
}
from
'@chakra-ui/react'
;
import
MyRadio
from
'@/components/Radio/index'
;
import
MyRadio
from
'@/components/
common/My
Radio/index'
;
import
dynamic
from
'next/dynamic'
;
import
dynamic
from
'next/dynamic'
;
import
ChunkImport
from
'./Chunk'
;
import
ChunkImport
from
'./Chunk'
;
import
{
useTranslation
}
from
'next-i18next'
;
import
{
useTranslation
}
from
'next-i18next'
;
...
...
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