Skip to content

Commit 11848b8

Browse files
authored
v4.4.5-3 (#357)
1 parent a11e0bd commit 11848b8

File tree

34 files changed

+395
-62
lines changed

34 files changed

+395
-62
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ ARG name
2626

2727
# copy common node_modules and one project node_modules
2828
COPY --from=deps /app/node_modules ./node_modules
29+
COPY --from=deps /app/packages ./packages
2930
COPY ./projects/$name ./projects/$name
3031
COPY --from=deps /app/projects/$name/node_modules ./projects/$name/node_modules
3132
COPY pnpm-lock.yaml pnpm-workspace.yaml ./

docSite/content/docs/installation/upgrading/445.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
title: '升级到 V4.4.5'
3-
description: 'FastGPT 从旧版本升级到 V4.4.5 操作指南'
2+
title: 'V4.4.5'
3+
description: 'FastGPT V4.4.5 更新(需执行升级脚本)'
44
icon: 'upgrade'
55
draft: false
66
toc: true
@@ -21,3 +21,11 @@ curl --location --request POST 'https://{{host}}/api/admin/initv445' \
2121

2222
初始化了 variable 模块,将其合并到用户引导模块中。
2323

24+
## 功能介绍
25+
26+
### Fast GPT V4.4.5
27+
28+
1. 新增 - 下一步指引选项,可以通过模型生成 3 个预测问题。
29+
2. 新增 - 分享链接 hook 身份校验。
30+
3. 新增 - Api Key 使用。增加别名、额度限制和过期时间。自带 appId,无需额外连接。
31+
4. 优化 - 全局变量与开场白合并成同一模块。

docSite/content/docs/installation/upgrading/_index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
weight: 760
3-
title: "版本升级"
4-
description: "FastGPT 升级指南"
3+
title: "版本更新/升级操作"
4+
description: "FastGPT 版本更新介绍及升级操作"
55
icon: upgrade
66
draft: false
77
images: []

projects/app/data/config.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,5 +75,13 @@
7575
"maxToken": 16000,
7676
"price": 0,
7777
"prompt": ""
78+
},
79+
"QGModel": {
80+
"model": "gpt-3.5-turbo",
81+
"name": "GPT35-4k",
82+
"maxToken": 4000,
83+
"price": 0,
84+
"prompt": "",
85+
"functionCall": false
7886
}
7987
}
Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
### Fast GPT V4.4.5
22

3-
1. 优化 - Api Key 使用。增加别名、额度限制和过期时间。自带 appId,无需额外连接。
4-
2. 去除 - 限定词。目前旧应用仍生效,9/25 后全面去除,请及时替换。
5-
3. 新增 - 引用模板/引用提示词设置,可以 DIY 引用内容的格式,从而更好的适配场景。[参考文档](https://doc.fastgpt.run/docs/use-cases/prompt/)
6-
4. [使用文档](https://doc.fastgpt.run/docs/intro/)
7-
5. [点击查看高级编排介绍文档](https://doc.fastgpt.run/docs/workflow)
8-
6. [点击查看商业版](https://doc.fastgpt.run/docs/commercial/)
3+
1. 新增 - 下一步指引选项,可以通过模型生成 3 个预测问题。
4+
2. 新增 - 分享链接 hook 身份校验。
5+
3. 新增 - Api Key 使用。增加别名、额度限制和过期时间。自带 appId,无需额外连接。
6+
4. 去除 - 限定词。目前旧应用仍生效,9/25 后全面去除,请及时替换。
7+
5. 新增 - 引用模板/引用提示词设置,可以 DIY 引用内容的格式,从而更好的适配场景。[参考文档](https://doc.fastgpt.run/docs/use-cases/prompt/)
8+
6. [使用文档](https://doc.fastgpt.run/docs/intro/)
9+
7. [点击查看高级编排介绍文档](https://doc.fastgpt.run/docs/workflow)
10+
8. [点击查看商业版](https://doc.fastgpt.run/docs/commercial/)

projects/app/public/locales/en/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"Mark Description": "The annotation feature is currently in beta. \n\n After clicking Add annotation, you need to select a knowledge base in order to store annotation data. You can use this feature to quickly annotate questions and expected answers to guide the model to the next answer. At present, the annotation function, like other data in the knowledge base, is affected by the model, which does not mean that the annotation meets 100% expectations. The \n\n annotation data is only unidirectional synchronization with the knowledge base. If the knowledge base modifies the annotation data, the annotation data displayed in the log cannot be synchronized",
6868
"Mark Description Title": "Mark Description",
6969
"New Chat": "New Chat",
70+
"Question Guide Tips": "I guess what you're asking is",
7071
"Read Mark Description": "Read mark description",
7172
"Read User Feedback": "Read user feedback",
7273
"Select Mark Kb": "Select Dataset",

projects/app/public/locales/zh/common.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"Mark Description": "当前标注功能为测试版。\n\n点击添加标注后,需要选择一个知识库,以便存储标注数据。你可以通过该功能快速的标注问题和预期回答,以便引导模型下次的回答。\n\n目前,标注功能同知识库其他数据一样,受模型的影响,不代表标注后 100% 符合预期。\n\n标注数据仅单向与知识库同步,如果知识库修改了该标注数据,日志展示的标注数据无法同步",
6868
"Mark Description Title": "标注功能介绍",
6969
"New Chat": "新对话",
70+
"Question Guide Tips": "猜你想问",
7071
"Read Mark Description": "查看标注功能介绍",
7172
"Read User Feedback": "查看用户反馈",
7273
"Select Mark Kb": "选择知识库",
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { GET, POST, PUT, DELETE } from '@/api/request';
2+
import { CreateQuestionGuideProps } from './type';
3+
4+
export const postQuestionGuide = (data: CreateQuestionGuideProps, cancelToken: AbortController) =>
5+
POST<string[]>('/core/ai/agent/createQuestionGuide', data, { cancelToken });
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { ChatCompletionRequestMessage } from '@fastgpt/core/aiApi/type';
2+
3+
export type CreateQuestionGuideProps = {
4+
messages: ChatCompletionRequestMessage[];
5+
};

projects/app/src/api/request.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ interface ConfigType {
1212
hold?: boolean;
1313
timeout?: number;
1414
onUploadProgress?: (progressEvent: AxiosProgressEvent) => void;
15+
cancelToken?: AbortController;
1516
}
1617
interface ResponseDataType {
1718
code: number;
@@ -88,7 +89,12 @@ instance.interceptors.request.use(requestStart, (err) => Promise.reject(err));
8889
/* 响应拦截 */
8990
instance.interceptors.response.use(responseSuccess, (err) => Promise.reject(err));
9091

91-
function request(url: string, data: any, config: ConfigType, method: Method): any {
92+
function request(
93+
url: string,
94+
data: any,
95+
{ cancelToken, ...config }: ConfigType,
96+
method: Method
97+
): any {
9298
/* 去空 */
9399
for (const key in data) {
94100
if (data[key] === null || data[key] === undefined) {
@@ -103,6 +109,7 @@ function request(url: string, data: any, config: ConfigType, method: Method): an
103109
method,
104110
data: ['POST', 'PUT'].includes(method) ? data : null,
105111
params: !['POST', 'PUT'].includes(method) ? data : null,
112+
signal: cancelToken?.signal,
106113
...config // 用户自定义配置,可以覆盖前面的配置
107114
})
108115
.then((res) => checkRes(res.data))

0 commit comments

Comments
 (0)