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
1fe2c492
authored
Sep 02, 2023
by
archer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fastgpt char
parent
b9b50a0f
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
10 deletions
+10
-10
README.md
+2
-2
README_en.md
+3
-3
client/public/js/iframe.js
+1
-1
client/src/constants/common.ts
+1
-1
client/src/constants/user.ts
+1
-1
client/src/pages/app/detail/components/KBSelectModal.tsx
+1
-1
client/src/service/moduleDispatch/chat/oneapi.ts
+1
-1
No files found.
README.md
View file @
1fe2c492
...
@@ -91,10 +91,10 @@ FastGPT 是一个基于 LLM 大语言模型的知识库问答系统,提供开
...
@@ -91,10 +91,10 @@ FastGPT 是一个基于 LLM 大语言模型的知识库问答系统,提供开
## 👀 其他
## 👀 其他
-
[
FastG
pt
常见问题
](
https://kjqvjse66l.feishu.cn/docx/HtrgdT0pkonP4kxGx8qcu6XDnGh
)
-
[
FastG
PT
常见问题
](
https://kjqvjse66l.feishu.cn/docx/HtrgdT0pkonP4kxGx8qcu6XDnGh
)
-
[
docker 部署教程视频
](
https://www.bilibili.com/video/BV1jo4y147fT/
)
-
[
docker 部署教程视频
](
https://www.bilibili.com/video/BV1jo4y147fT/
)
-
[
公众号接入视频教程
](
https://www.bilibili.com/video/BV1xh4y1t7fy/
)
-
[
公众号接入视频教程
](
https://www.bilibili.com/video/BV1xh4y1t7fy/
)
-
[
FastG
pt
知识库演示
](
https://www.bilibili.com/video/BV1Wo4y1p7i1/
)
-
[
FastG
PT
知识库演示
](
https://www.bilibili.com/video/BV1Wo4y1p7i1/
)
## 💪 相关项目
## 💪 相关项目
...
...
README_en.md
View file @
1fe2c492
...
@@ -84,7 +84,7 @@ Project tech stack: NextJs + TS + ChakraUI + Mongo + Postgres (Vector plugin)
...
@@ -84,7 +84,7 @@ Project tech stack: NextJs + TS + ChakraUI + Mongo + Postgres (Vector plugin)
-
[
V3 Upgrade V4 Initialization
](
https://doc.fastgpt.run/docs/installation/upgrading
)
-
[
V3 Upgrade V4 Initialization
](
https://doc.fastgpt.run/docs/installation/upgrading
)
<!-- ## :point_right: RoadMap
<!-- ## :point_right: RoadMap
-
[
FastG
pt
RoadMap
](
https://kjqvjse66l.feishu.cn/docx/RVUxdqE2WolDYyxEKATcM0XXnte
)
-->
-
[
FastG
PT
RoadMap
](
https://kjqvjse66l.feishu.cn/docx/RVUxdqE2WolDYyxEKATcM0XXnte
)
-->
<!-- ## 🏘️ Community
<!-- ## 🏘️ Community
...
@@ -94,10 +94,10 @@ Project tech stack: NextJs + TS + ChakraUI + Mongo + Postgres (Vector plugin)
...
@@ -94,10 +94,10 @@ Project tech stack: NextJs + TS + ChakraUI + Mongo + Postgres (Vector plugin)
## 👀 Others
## 👀 Others
-
[
FastG
pt
FAQ
](
https://kjqvjse66l.feishu.cn/docx/HtrgdT0pkonP4kxGx8qcu6XDnGh
)
-
[
FastG
PT
FAQ
](
https://kjqvjse66l.feishu.cn/docx/HtrgdT0pkonP4kxGx8qcu6XDnGh
)
-
[
Docker Deployment Tutorial Video
](
https://www.bilibili.com/video/BV1jo4y147fT/
)
-
[
Docker Deployment Tutorial Video
](
https://www.bilibili.com/video/BV1jo4y147fT/
)
-
[
Official Account Integration Video Tutorial
](
https://www.bilibili.com/video/BV1xh4y1t7fy/
)
-
[
Official Account Integration Video Tutorial
](
https://www.bilibili.com/video/BV1xh4y1t7fy/
)
-
[
FastG
pt
Knowledge Base Demo
](
https://www.bilibili.com/video/BV1Wo4y1p7i1/
)
-
[
FastG
PT
Knowledge Base Demo
](
https://www.bilibili.com/video/BV1Wo4y1p7i1/
)
## 💪 Related Projects
## 💪 Related Projects
...
...
client/public/js/iframe.js
View file @
1fe2c492
...
@@ -27,7 +27,7 @@ async function embedChatbot() {
...
@@ -27,7 +27,7 @@ async function embedChatbot() {
const
iframe
=
document
.
createElement
(
'iframe'
);
const
iframe
=
document
.
createElement
(
'iframe'
);
iframe
.
allow
=
'fullscreen;microphone'
;
iframe
.
allow
=
'fullscreen;microphone'
;
iframe
.
title
=
'FastG
pt
Chat Window'
;
iframe
.
title
=
'FastG
PT
Chat Window'
;
iframe
.
id
=
chatWindowId
;
iframe
.
id
=
chatWindowId
;
iframe
.
src
=
botSrc
;
iframe
.
src
=
botSrc
;
...
...
client/src/constants/common.ts
View file @
1fe2c492
...
@@ -19,7 +19,7 @@ export const htmlTemplate = `<!DOCTYPE html>
...
@@ -19,7 +19,7 @@ export const htmlTemplate = `<!DOCTYPE html>
<meta charset="UTF-8" />
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width initial-scale=1.0" />
<meta name="viewport" content="width=device-width initial-scale=1.0" />
<title>FastG
pt
</title>
<title>FastG
PT
</title>
</head>
</head>
<style>
<style>
.markdown > :first-child {
.markdown > :first-child {
...
...
client/src/constants/user.ts
View file @
1fe2c492
...
@@ -10,7 +10,7 @@ export enum PageTypeEnum {
...
@@ -10,7 +10,7 @@ export enum PageTypeEnum {
}
}
export
const
BillSourceMap
:
Record
<
`
${
BillSourceEnum
}
`
,
string
>
=
{
export
const
BillSourceMap
:
Record
<
`
${
BillSourceEnum
}
`
,
string
>
=
{
[
BillSourceEnum
.
fastgpt
]:
'FastG
pt
平台'
,
[
BillSourceEnum
.
fastgpt
]:
'FastG
PT
平台'
,
[
BillSourceEnum
.
api
]:
'Api'
,
[
BillSourceEnum
.
api
]:
'Api'
,
[
BillSourceEnum
.
shareLink
]:
'免登录链接'
[
BillSourceEnum
.
shareLink
]:
'免登录链接'
};
};
...
...
client/src/pages/app/detail/components/KBSelectModal.tsx
View file @
1fe2c492
...
@@ -214,7 +214,7 @@ export const KbParamsModal = ({
...
@@ -214,7 +214,7 @@ export const KbParamsModal = ({
rows=
{
5
}
rows=
{
5
}
maxLength=
{
500
}
maxLength=
{
500
}
placeholder=
{
placeholder=
{
'若填写该内容,没有搜索到对应内容时,将直接回复填写的内容。\n为了连贯上下文,FastG
pt
会取部分上一个聊天的搜索记录作为补充,因此在连续对话时,该功能可能会失效。'
'若填写该内容,没有搜索到对应内容时,将直接回复填写的内容。\n为了连贯上下文,FastG
PT
会取部分上一个聊天的搜索记录作为补充,因此在连续对话时,该功能可能会失效。'
}
}
{
...
register
('
searchEmptyText
')}
{
...
register
('
searchEmptyText
')}
></
Textarea
>
></
Textarea
>
...
...
client/src/service/moduleDispatch/chat/oneapi.ts
View file @
1fe2c492
...
@@ -98,7 +98,7 @@ export const dispatchChatCompletion = async (props: Record<string, any>): Promis
...
@@ -98,7 +98,7 @@ export const dispatchChatCompletion = async (props: Record<string, any>): Promis
});
});
// console.log(messages);
// console.log(messages);
// FastG
pt
temperature range: 1~10
// FastG
PT
temperature range: 1~10
temperature
=
+
(
modelConstantsData
.
maxTemperature
*
(
temperature
/
10
)).
toFixed
(
2
);
temperature
=
+
(
modelConstantsData
.
maxTemperature
*
(
temperature
/
10
)).
toFixed
(
2
);
temperature
=
Math
.
max
(
temperature
,
0.01
);
temperature
=
Math
.
max
(
temperature
,
0.01
);
const
chatAPI
=
getAIChatApi
(
userOpenaiAccount
);
const
chatAPI
=
getAIChatApi
(
userOpenaiAccount
);
...
...
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