Skip to content

Commit

Permalink
4.8.8 test fix (#2143)
Browse files Browse the repository at this point in the history
* perf: transcriptions api

* perf: variable picker tip

* perf: variable picker tip

* perf: chat select app

* feat: router to app detail

* perf: variable avoid space

* perf: variable picker

* perf: doc2x icon and params

* perf: sandbox support countToken

* feat: sandbox support delay and countToken
  • Loading branch information
c121914yu authored Jul 24, 2024
1 parent a478621 commit 45b8d7e
Show file tree
Hide file tree
Showing 49 changed files with 520 additions and 526 deletions.
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ dist
**/.DS_Store
node_modules
docSite/
*.md
*.md

cl100l_base.ts
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@
"i18n-ally.displayLanguage": "zh", // 显示语言
"i18n-ally.namespace": true,
"i18n-ally.pathMatcher": "{locale}/{namespaces}.json",
"i18n-ally.extract.targetPickingStrategy": "most-similar-by-key"
"i18n-ally.extract.targetPickingStrategy": "most-similar-by-key",
"[typescript]": {
"editor.defaultFormatter": "rvest.vs-code-prettier-eslint"
}
}
18 changes: 11 additions & 7 deletions docSite/content/zh-cn/docs/development/upgrading/488.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,17 @@ weight: 816

-------

## V4.8. 8 更新说明
## V4.8.8 更新说明

1. 新增 - 重构系统插件的结构。允许向开源社区 PR 系统插件,具体可见: [如何向 FastGPT 社区提交系统插件](https://fael3z0zfze.feishu.cn/wiki/ERZnw9R26iRRG0kXZRec6WL9nwh)
2. 新增 - DuckDuckGo 系统插件。
3. 优化 - 节点图标。
4. 优化 - 对话框引用增加额外复制案件,便于复制。增加引用内容折叠。
5. 修复 - Permission 表声明问题。
6. 修复 - 并行执行节点,运行时间未正确记录。
7. 修复 - 简易模式,首次进入,无法正确获取知识库配置。
8. 修复 - Log level 配置
3. 新增 - 修改变量填写方式。提示词输入框以以及工作流中所有 Textarea 输入框,支持输入 / 唤起变量选择,可直接选择所有上游输出值,无需动态引入。
4. 优化 - 移动端快速切换应用交互。
5. 优化 - 节点图标。
6. 优化 - 对话框引用增加额外复制案件,便于复制。增加引用内容折叠。
7. 优化 - 对话框底部增加复制,简便复制交互,无需滚动到消息开头。
8. 优化 - OpenAI sdk 升级,并自定义了 whisper 模型接口(未仔细查看 sdk 实现,但 sdk 中 whisper 接口,似乎无法适配一般 fastapi 接口)
9. 修复 - Permission 表声明问题。
10. 修复 - 并行执行节点,运行时间未正确记录。
11. 修复 - 简易模式,首次进入,无法正确获取知识库配置。
12. 修复 - Log debug level 配置无效。
2 changes: 1 addition & 1 deletion packages/global/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"jschardet": "3.1.1",
"nanoid": "^4.0.1",
"next": "14.2.5",
"openai": "4.28.0",
"openai": "4.53.0",
"openapi-types": "^12.1.3",
"timezones-list": "^3.0.2"
},
Expand Down
7 changes: 2 additions & 5 deletions packages/plugins/register.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,15 @@ import { cloneDeep } from 'lodash';
import { WorkerNameEnum, runWorker } from '@fastgpt/service/worker/utils';

// Run in main thread
const staticPluginList = ['getTime', 'fetchUrl'];
const staticPluginList = ['getTime', 'fetchUrl', 'Doc2X', 'Doc2X/URLPDF2text', 'Doc2X/URLImg2text'];
// Run in worker thread (Have npm packages)
const packagePluginList = [
'mathExprVal',
'duckduckgo',
'duckduckgo/search',
'duckduckgo/searchImg',
'duckduckgo/searchNews',
'duckduckgo/searchVideo',
'Doc2X',
'Doc2X/URLPDF2text',
'Doc2X/URLImg2text'
'duckduckgo/searchVideo'
];

const list = [...staticPluginList, ...packagePluginList];
Expand Down
104 changes: 27 additions & 77 deletions packages/plugins/src/Doc2X/URLImg2text/template.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"author": "",
"version": "486",
"version": "488",
"name": "Doc2X 图像(URL)识别",
"avatar": "/imgs/workflow/textEditor.svg",
"avatar": "plugins/doc2x",
"intro": "将传入的图片(URL)发送至Doc2X进行解析,返回带LaTeX公式的markdown格式的文本",
"showStatus": true,
"weight": 10,
Expand All @@ -26,23 +26,19 @@
"version": "481",
"inputs": [
{
"renderTypeList": [
"input"
],
"renderTypeList": ["input"],
"selectedTypeIndex": 0,
"valueType": "string",
"canEdit": true,
"key": "apikey",
"label": "apikey",
"description": "Doc2X的验证密匙,对于个人用户可以从Doc2X官网 - 个人信息 - 身份令牌获得",
"required": true,
"toolDescription": "Doc2X的验证密匙,对于个人用户可以从Doc2X官网 - 个人信息 - 身份令牌获得",
"toolDescription": "",
"defaultValue": ""
},
{
"renderTypeList": [
"reference"
],
"renderTypeList": ["reference"],
"selectedTypeIndex": 0,
"valueType": "string",
"canEdit": true,
Expand All @@ -53,31 +49,27 @@
"toolDescription": "待处理图片的URL"
},
{
"renderTypeList": [
"switch"
],
"renderTypeList": ["switch"],
"selectedTypeIndex": 0,
"valueType": "boolean",
"canEdit": true,
"key": "img_correction",
"label": "img_correction",
"description": "是否启用图形矫正功能",
"required": true,
"toolDescription": "是否启用图形矫正功能",
"toolDescription": "",
"defaultValue": false
},
{
"renderTypeList": [
"switch"
],
"renderTypeList": ["switch"],
"selectedTypeIndex": 0,
"valueType": "boolean",
"canEdit": true,
"key": "formula",
"label": "formula",
"description": "是否开启纯公式识别(仅适用于图片内容仅有公式时)",
"required": true,
"toolDescription": "是否开启纯公式识别(仅适用于图片内容仅有公式时)",
"toolDescription": "",
"defaultValue": false
}
],
Expand Down Expand Up @@ -126,32 +118,22 @@
"version": "481",
"inputs": [
{
"renderTypeList": [
"reference"
],
"renderTypeList": ["reference"],
"valueType": "string",
"canEdit": true,
"key": "result",
"label": "result",
"description": "处理结果(或者是报错信息)",
"value": [
"zHG5jJBkXmjB",
"xWQuEf50F3mr"
]
"value": ["zHG5jJBkXmjB", "xWQuEf50F3mr"]
},
{
"renderTypeList": [
"reference"
],
"renderTypeList": ["reference"],
"valueType": "boolean",
"canEdit": true,
"key": "success",
"label": "success",
"description": "是否处理成功",
"value": [
"zHG5jJBkXmjB",
"m6CJJj7GFud5"
]
"value": ["zHG5jJBkXmjB", "m6CJJj7GFud5"]
}
],
"outputs": []
Expand All @@ -171,9 +153,7 @@
"inputs": [
{
"key": "system_addInputParam",
"renderTypeList": [
"addInputParam"
],
"renderTypeList": ["addInputParam"],
"valueType": "dynamic",
"label": "",
"required": false,
Expand Down Expand Up @@ -201,19 +181,15 @@
},
{
"key": "system_httpMethod",
"renderTypeList": [
"custom"
],
"renderTypeList": ["custom"],
"valueType": "string",
"label": "",
"value": "POST",
"required": true
},
{
"key": "system_httpReqUrl",
"renderTypeList": [
"hidden"
],
"renderTypeList": ["hidden"],
"valueType": "string",
"label": "",
"description": "core.module.input.description.Http Request Url",
Expand All @@ -223,9 +199,7 @@
},
{
"key": "system_httpHeader",
"renderTypeList": [
"custom"
],
"renderTypeList": ["custom"],
"valueType": "any",
"value": [],
"label": "",
Expand All @@ -235,28 +209,22 @@
},
{
"key": "system_httpParams",
"renderTypeList": [
"hidden"
],
"renderTypeList": ["hidden"],
"valueType": "any",
"value": [],
"label": "",
"required": false
},
{
"key": "system_httpJsonBody",
"renderTypeList": [
"hidden"
],
"renderTypeList": ["hidden"],
"valueType": "any",
"value": "{\n \"apikey\": \"{{apikey}}\",\n \"url\": \"{{url}}\",\n \"img_correction\": \"{{img_correction}}\",\n \"formula\": \"{{img_correction}}\"\n}",
"label": "",
"required": false
},
{
"renderTypeList": [
"reference"
],
"renderTypeList": ["reference"],
"valueType": "string",
"canEdit": true,
"key": "apikey",
Expand All @@ -282,15 +250,10 @@
"showDefaultValue": true
},
"required": true,
"value": [
"pluginInput",
"apikey"
]
"value": ["pluginInput", "apikey"]
},
{
"renderTypeList": [
"reference"
],
"renderTypeList": ["reference"],
"valueType": "string",
"canEdit": true,
"key": "url",
Expand All @@ -316,15 +279,10 @@
"showDefaultValue": true
},
"required": true,
"value": [
"pluginInput",
"url"
]
"value": ["pluginInput", "url"]
},
{
"renderTypeList": [
"reference"
],
"renderTypeList": ["reference"],
"valueType": "boolean",
"canEdit": true,
"key": "img_correction",
Expand All @@ -350,15 +308,10 @@
"showDefaultValue": true
},
"required": true,
"value": [
"pluginInput",
"img_correction"
]
"value": ["pluginInput", "img_correction"]
},
{
"renderTypeList": [
"reference"
],
"renderTypeList": ["reference"],
"valueType": "boolean",
"canEdit": true,
"key": "formula",
Expand All @@ -384,10 +337,7 @@
"showDefaultValue": true
},
"required": true,
"value": [
"pluginInput",
"formula"
]
"value": ["pluginInput", "formula"]
}
],
"outputs": [
Expand Down
Loading

0 comments on commit 45b8d7e

Please sign in to comment.