mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-18 17:51:24 +00:00
fastgpt char
This commit is contained in:
@@ -91,10 +91,10 @@ FastGPT 是一个基于 LLM 大语言模型的知识库问答系统,提供开
|
|||||||
|
|
||||||
## 👀 其他
|
## 👀 其他
|
||||||
|
|
||||||
- [FastGpt 常见问题](https://kjqvjse66l.feishu.cn/docx/HtrgdT0pkonP4kxGx8qcu6XDnGh)
|
- [FastGPT 常见问题](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/)
|
||||||
- [FastGpt 知识库演示](https://www.bilibili.com/video/BV1Wo4y1p7i1/)
|
- [FastGPT 知识库演示](https://www.bilibili.com/video/BV1Wo4y1p7i1/)
|
||||||
|
|
||||||
## 💪 相关项目
|
## 💪 相关项目
|
||||||
|
|
||||||
|
@@ -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
|
||||||
- [FastGpt RoadMap](https://kjqvjse66l.feishu.cn/docx/RVUxdqE2WolDYyxEKATcM0XXnte) -->
|
- [FastGPT RoadMap](https://kjqvjse66l.feishu.cn/docx/RVUxdqE2WolDYyxEKATcM0XXnte) -->
|
||||||
|
|
||||||
<!-- ## 🏘️ Community
|
<!-- ## 🏘️ Community
|
||||||
|
|
||||||
@@ -94,10 +94,10 @@ Project tech stack: NextJs + TS + ChakraUI + Mongo + Postgres (Vector plugin)
|
|||||||
|
|
||||||
## 👀 Others
|
## 👀 Others
|
||||||
|
|
||||||
- [FastGpt FAQ](https://kjqvjse66l.feishu.cn/docx/HtrgdT0pkonP4kxGx8qcu6XDnGh)
|
- [FastGPT 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/)
|
||||||
- [FastGpt Knowledge Base Demo](https://www.bilibili.com/video/BV1Wo4y1p7i1/)
|
- [FastGPT Knowledge Base Demo](https://www.bilibili.com/video/BV1Wo4y1p7i1/)
|
||||||
|
|
||||||
## 💪 Related Projects
|
## 💪 Related Projects
|
||||||
|
|
||||||
|
@@ -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 = 'FastGpt Chat Window';
|
iframe.title = 'FastGPT Chat Window';
|
||||||
iframe.id = chatWindowId;
|
iframe.id = chatWindowId;
|
||||||
iframe.src = botSrc;
|
iframe.src = botSrc;
|
||||||
|
|
||||||
|
@@ -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>FastGpt</title>
|
<title>FastGPT</title>
|
||||||
</head>
|
</head>
|
||||||
<style>
|
<style>
|
||||||
.markdown > :first-child {
|
.markdown > :first-child {
|
||||||
|
@@ -10,7 +10,7 @@ export enum PageTypeEnum {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export const BillSourceMap: Record<`${BillSourceEnum}`, string> = {
|
export const BillSourceMap: Record<`${BillSourceEnum}`, string> = {
|
||||||
[BillSourceEnum.fastgpt]: 'FastGpt 平台',
|
[BillSourceEnum.fastgpt]: 'FastGPT 平台',
|
||||||
[BillSourceEnum.api]: 'Api',
|
[BillSourceEnum.api]: 'Api',
|
||||||
[BillSourceEnum.shareLink]: '免登录链接'
|
[BillSourceEnum.shareLink]: '免登录链接'
|
||||||
};
|
};
|
||||||
|
@@ -214,7 +214,7 @@ export const KbParamsModal = ({
|
|||||||
rows={5}
|
rows={5}
|
||||||
maxLength={500}
|
maxLength={500}
|
||||||
placeholder={
|
placeholder={
|
||||||
'若填写该内容,没有搜索到对应内容时,将直接回复填写的内容。\n为了连贯上下文,FastGpt 会取部分上一个聊天的搜索记录作为补充,因此在连续对话时,该功能可能会失效。'
|
'若填写该内容,没有搜索到对应内容时,将直接回复填写的内容。\n为了连贯上下文,FastGPT 会取部分上一个聊天的搜索记录作为补充,因此在连续对话时,该功能可能会失效。'
|
||||||
}
|
}
|
||||||
{...register('searchEmptyText')}
|
{...register('searchEmptyText')}
|
||||||
></Textarea>
|
></Textarea>
|
||||||
|
@@ -98,7 +98,7 @@ export const dispatchChatCompletion = async (props: Record<string, any>): Promis
|
|||||||
});
|
});
|
||||||
// console.log(messages);
|
// console.log(messages);
|
||||||
|
|
||||||
// FastGpt temperature range: 1~10
|
// FastGPT 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);
|
||||||
|
Reference in New Issue
Block a user