Skip to content

Commit 2991c07

Browse files
Fix share page whisper auth (#1161)
Co-authored-by: heheer <[email protected]>
1 parent adfad8f commit 2991c07

File tree

55 files changed

+465
-250
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+465
-250
lines changed

docSite/content/docs/development/configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ llm模型全部合并
2020
```json
2121
{
2222
"feConfigs": {
23-
"lafEnv": "https://laf.dev" // laf环境
23+
"lafEnv": "https://laf.dev" // laf环境。 https://laf.run (杭州阿里云) ,或者私有化的laf环境。如果使用 Laf openapi 功能,需要最新版的 laf 。
2424
},
2525
"systemEnv": {
2626
"vectorMaxProcess": 15,

docSite/content/docs/development/custom-models/bge-rerank.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ docker run -d --name reranker -p 6006:6006 -e ACCESS_TOKEN=mytoken --gpus all re
100100
version: "3"
101101
services:
102102
reranker:
103-
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/rerank:v0.2
103+
image: registry.cn-hangzhou.aliyuncs.com/fastgpt/bge-rerank-base:v0.1
104104
container_name: reranker
105105
# GPU运行环境,如果宿主机未安装,将deploy配置隐藏即可
106106
deploy:

docSite/content/docs/development/upgrading/471.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,16 @@ curl --location --request POST 'https://{{host}}/api/admin/clearInvalidData' \
1919

2020
该请求会执行脏数据清理(清理无效的文件、清理无效的图片、清理无效的知识库集合、清理无效的向量)
2121

22+
23+
## 修改配置文件
24+
25+
增加了Laf环境配置:[点击查看最新的配置文件](/docs/development/configuration/)
26+
27+
2228
## V4.7.1 更新说明
2329

2430
1. 新增 - 语音输入完整配置。支持选择是否打开语音输入(包括分享页面),支持语音输入后自动发送,支持语音输入后自动语音播放(流式)。
25-
2. 新增 - Pptx 和 xlsx 文件读取。但所有文件读取都放服务端,会消耗更多的服务器资源,以及无法在上传时预览更多内容。
31+
2. 新增 - pptx 和 xlsx 文件读取。但所有文件读取都放服务端,会消耗更多的服务器资源,以及无法在上传时预览更多内容。
2632
3. 新增 - 集成 Laf 云函数,可以读取 Laf 账号中的云函数作为 HTTP 模块。
2733
4. 新增 - 定时器,清理垃圾数据。(采用小范围清理,会清理最近n个小时的,所以请保证服务持续运行,长时间不允许,可以继续执行 clearInvalidData 的接口进行全量清理。)
2834
5. 商业版新增 - 后台配置系统通知。

docSite/content/docs/workflow/examples/dalle3.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Response:
8888
[
8989
{
9090
"moduleId": "userGuide",
91-
"name": "core.module.template.User guide",
91+
"name": "core.module.template.App system setting",
9292
"flowType": "userGuide",
9393
"position": {
9494
"x": 454.98510354678695,

docSite/content/docs/workflow/examples/feishu_webhook.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ weight: 404
2727
[
2828
{
2929
"moduleId": "userGuide",
30-
"name": "core.module.template.User guide",
30+
"name": "core.module.template.App system setting",
3131
"intro": "core.app.tip.userGuideTip",
3232
"avatar": "/imgs/module/userGuide.png",
3333
"flowType": "userGuide",

docSite/content/docs/workflow/examples/google_search.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export default async function (ctx: FunctionContext) {
8484
[
8585
{
8686
"moduleId": "userGuide",
87-
"name": "core.module.template.User guide",
87+
"name": "core.module.template.App system setting",
8888
"intro": "core.app.tip.userGuideTip",
8989
"avatar": "/imgs/module/userGuide.png",
9090
"flowType": "userGuide",

docSite/content/docs/workflow/modules/laf.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ Laf 提供了 PAT(访问凭证) 来实现 Laf 平台外的快捷登录,可以
2727

2828
填入 PAT 验证后,选择需要绑定的应用(应用需要是 Running 状态),即可调用该应用下的云函数。
2929

30-
> 如果需要解绑则取消绑定后,点击“更新”即可
31-
3230
![](/imgs/laf2.webp)
3331

3432
## 编写云函数

packages/global/common/string/textSplitter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { getErrText } from '../error/utils';
2-
import { countPromptTokens } from './tiktoken';
2+
import { replaceRegChars } from './tools';
33

44
/**
55
* text split into chunks
@@ -31,7 +31,7 @@ export const splitText2Chunks = (props: {
3131
// The larger maxLen is, the next sentence is less likely to trigger splitting
3232
const stepReges: { reg: RegExp; maxLen: number }[] = [
3333
...customReg.map((text) => ({
34-
reg: new RegExp(`(${text.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')})`, 'g'),
34+
reg: new RegExp(`(${replaceRegChars(text)})`, 'g'),
3535
maxLen: chunkLen * 1.4
3636
})),
3737
{ reg: /^(#\s[^\n]+)\n/gm, maxLen: chunkLen * 1.2 },

packages/global/common/string/tools.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,5 @@ export const replaceSensitiveText = (text: string) => {
5151
export const getNanoid = (size = 12) => {
5252
return customAlphabet('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890', size)();
5353
};
54+
55+
export const replaceRegChars = (text: string) => text.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');

packages/global/core/module/template/system/userGuide.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { FlowNodeInputTypeEnum, FlowNodeTypeEnum } from '../../node/constant';
22
import { FlowNodeTemplateType } from '../../type.d';
3-
import { userGuideTip } from '../tip';
43
import {
54
ModuleIOValueTypeEnum,
65
ModuleInputKeyEnum,
@@ -12,8 +11,8 @@ export const UserGuideModule: FlowNodeTemplateType = {
1211
templateType: FlowNodeTemplateTypeEnum.userGuide,
1312
flowType: FlowNodeTypeEnum.userGuide,
1413
avatar: '/imgs/module/userGuide.png',
15-
name: '全局配置',
16-
intro: userGuideTip,
14+
name: '系统配置',
15+
intro: '可以配置应用的系统参数。',
1716
inputs: [
1817
{
1918
key: ModuleInputKeyEnum.welcomeText,

0 commit comments

Comments
 (0)