mirror of
https://github.com/labring/FastGPT.git
synced 2025-10-17 08:37:59 +00:00

* add new doc (#5175) Co-authored-by: dreamer6680 <146868355@qq.com> * Test docs (#5235) * fix: change the page of doc * chore: add new dependencies, update global styles/layout, optimize docs, add Feishu & GitHub icons, update API examples * fix: docs/index 404 not found * Update environment variable names, optimize styles, add new API routes, fix component styles, adjust documentation, and update GitHub and Feishu icons * update readme * feat: add a linkfastgpt compontent * feat: update new doc * fix:remove unuse page and redirect homepage to docs (#5288) * fix:remove some unuse doc * fix: redirect homepage to doc * git ignore * fix:navbar to index (#5295) * sidbar * fix: navtab unlight (#5298) * doc --------- Co-authored-by: dreamer6680 <1468683855@qq.com> Co-authored-by: dreamer6680 <146868355@qq.com>
27 lines
681 B
Plaintext
27 lines
681 B
Plaintext
---
|
||
title: 升级到 V4.3(包含升级脚本)
|
||
description: FastGPT 从旧版本升级到 V4.3 操作指南
|
||
---
|
||
|
||
## 执行初始化 API
|
||
|
||
发起 1 个 HTTP 请求 (记得携带 `headers.rootkey`,这个值是环境变量里的)
|
||
|
||
1. https://xxxxx/api/admin/initv43
|
||
|
||
```bash
|
||
curl --location --request POST 'https://{{host}}/api/admin/initv43' \
|
||
--header 'rootkey: {{rootkey}}' \
|
||
--header 'Content-Type: application/json'
|
||
```
|
||
|
||
会给 PG 数据库的 modeldata 表插入一个新列 file_id,用于存储文件 ID。
|
||
|
||
## 增加环境变量
|
||
|
||
增加一个 `FILE_TOKEN_KEY` 环境变量,用于生成文件预览链接,过期时间为 30 分钟。
|
||
|
||
```
|
||
FILE_TOKEN_KEY=filetokenkey
|
||
```
|