diff --git a/deploy/docker/docker-compose-milvus.yml b/deploy/docker/docker-compose-milvus.yml index 066b03a60..3ccbc97dd 100644 --- a/deploy/docker/docker-compose-milvus.yml +++ b/deploy/docker/docker-compose-milvus.yml @@ -114,15 +114,15 @@ services: # fastgpt sandbox: container_name: sandbox - image: ghcr.io/labring/fastgpt-sandbox:v4.8.22 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.8.22 # 阿里云 + image: ghcr.io/labring/fastgpt-sandbox:v4.8.23-fix # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.8.23-fix # 阿里云 networks: - fastgpt restart: always fastgpt: container_name: fastgpt - image: ghcr.io/labring/fastgpt:v4.8.22 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.22 # 阿里云 + image: ghcr.io/labring/fastgpt:v4.8.23-fix # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.23-fix # 阿里云 ports: - 3000:3000 networks: diff --git a/deploy/docker/docker-compose-pgvector.yml b/deploy/docker/docker-compose-pgvector.yml index 3280b4019..ec4f35817 100644 --- a/deploy/docker/docker-compose-pgvector.yml +++ b/deploy/docker/docker-compose-pgvector.yml @@ -72,15 +72,15 @@ services: # fastgpt sandbox: container_name: sandbox - image: ghcr.io/labring/fastgpt-sandbox:v4.8.22 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.8.22 # 阿里云 + image: ghcr.io/labring/fastgpt-sandbox:v4.8.23-fix # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.8.23-fix # 阿里云 networks: - fastgpt restart: always fastgpt: container_name: fastgpt - image: ghcr.io/labring/fastgpt:v4.8.22 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.22 # 阿里云 + image: ghcr.io/labring/fastgpt:v4.8.23-fix # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.23-fix # 阿里云 ports: - 3000:3000 networks: diff --git a/deploy/docker/docker-compose-zilliz.yml b/deploy/docker/docker-compose-zilliz.yml index 5f313cee1..508ec189b 100644 --- a/deploy/docker/docker-compose-zilliz.yml +++ b/deploy/docker/docker-compose-zilliz.yml @@ -53,15 +53,15 @@ services: wait $$! sandbox: container_name: sandbox - image: ghcr.io/labring/fastgpt-sandbox:v4.8.22 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.8.22 # 阿里云 + image: ghcr.io/labring/fastgpt-sandbox:v4.8.23-fix # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt-sandbox:v4.8.23-fix # 阿里云 networks: - fastgpt restart: always fastgpt: container_name: fastgpt - image: ghcr.io/labring/fastgpt:v4.8.22 # git - # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.22 # 阿里云 + image: ghcr.io/labring/fastgpt:v4.8.23-fix # git + # image: registry.cn-hangzhou.aliyuncs.com/fastgpt/fastgpt:v4.8.23-fix # 阿里云 ports: - 3000:3000 networks: diff --git a/docSite/content/zh-cn/docs/development/upgrading/4823.md b/docSite/content/zh-cn/docs/development/upgrading/4823.md index 4faf0e140..14c72f345 100644 --- a/docSite/content/zh-cn/docs/development/upgrading/4823.md +++ b/docSite/content/zh-cn/docs/development/upgrading/4823.md @@ -1,5 +1,5 @@ --- -title: 'V4.8.23(进行中)' +title: 'V4.8.23' description: 'FastGPT V4.8.23 更新说明' icon: 'upgrade' draft: false @@ -7,6 +7,28 @@ toc: true weight: 802 --- +## 更新指南 + +### 1. 做好数据库备份 + +### 2. 更新镜像: + +- 更新 fastgpt 镜像 tag: v4.8.23-fix +- 更新 fastgpt-pro 商业版镜像 tag: v4.8.23-fix +- Sandbox 镜像无需更新 + +### 3. 运行升级脚本 + +从任意终端,发起 1 个 HTTP 请求。其中 {{rootkey}} 替换成环境变量里的 `rootkey`;{{host}} 替换成**FastGPT 域名**。 + +```bash +curl --location --request POST 'https://{{host}}/api/admin/initv4823' \ +--header 'rootkey: {{rootkey}}' \ +--header 'Content-Type: application/json' +``` + +脚本会清理一些知识库脏数据,主要是多余的全文索引。 + ## 🚀 新增内容 1. 增加默认“知识库文本理解模型”配置 diff --git a/packages/web/hooks/useScrollPagination.tsx b/packages/web/hooks/useScrollPagination.tsx index c0ce453c6..a326a20b7 100644 --- a/packages/web/hooks/useScrollPagination.tsx +++ b/packages/web/hooks/useScrollPagination.tsx @@ -217,7 +217,7 @@ export function useScrollPagination< const offset = init ? 0 : data.length; setTrue(); - console.log(offset); + try { const res = await api({ offset, diff --git a/projects/app/src/pageComponents/account/model/Log/index.tsx b/projects/app/src/pageComponents/account/model/Log/index.tsx index dacb90d9e..eb29bf877 100644 --- a/projects/app/src/pageComponents/account/model/Log/index.tsx +++ b/projects/app/src/pageComponents/account/model/Log/index.tsx @@ -162,7 +162,7 @@ const ChannelLog = ({ Tab }: { Tab: React.ReactNode }) => { content: item.content }; }); - }, [data]); + }, [channelList, data, systemModelList]); const [logDetail, setLogDetail] = useState(); diff --git a/projects/app/src/pages/api/admin/initv4823.ts b/projects/app/src/pages/api/admin/initv4823.ts index 0b163406e..45ab2c449 100644 --- a/projects/app/src/pages/api/admin/initv4823.ts +++ b/projects/app/src/pages/api/admin/initv4823.ts @@ -143,7 +143,7 @@ const checkInvalidData = async () => { console.log(`检测集合完成`); } catch (error) { - console.log(error); + console.log('checkInvalidData error', error); } }; @@ -166,7 +166,9 @@ const checkInvalidDataText = async () => { await MongoDatasetDataText.deleteMany({ dataId: { $in: unExistsSet } }); - } catch (error) {} + } catch (error) { + console.log('checkInvalidDataText error', error); + } }; /* pg 中的数据搬到 mongo dataset.datas 中,并做映射 */