mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-23 13:03:50 +00:00
调整更新文档,不要挂载持久化 (#1075)
* fix: plugin update * feat: get current time plugin * fix: ts * perf: select app ux * fix: ts * perf: max w * perf: inform tip * fix: inform * remove deploy doc
This commit is contained in:
@@ -11,39 +11,7 @@ weight: 826
|
|||||||
|
|
||||||
增加一些 Boolean 值,用于决定不同功能块可以使用哪些模型,同时增加了模型的 logo:[点击查看最新的配置文件](/docs/development/configuration/)
|
增加一些 Boolean 值,用于决定不同功能块可以使用哪些模型,同时增加了模型的 logo:[点击查看最新的配置文件](/docs/development/configuration/)
|
||||||
|
|
||||||
## 2. Docker 部署的用户, 修改 docker-compose.yml 文件
|
## 2. 初始化脚本
|
||||||
|
|
||||||
在 fastgpt 容器中,挂在一个目录,用于存储临时文件(文件上传时候)。可以参考最新的 [docker-compose.yml](https://raw.githubusercontent.com/labring/FastGPT/main/files/deploy/fastgpt/docker-compose.yml)
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
......
|
|
||||||
fastgpt:
|
|
||||||
......
|
|
||||||
volumes:
|
|
||||||
- ./config.json:/app/data/config.json
|
|
||||||
- ./fastgpt/tmp:/app/tmp
|
|
||||||
......
|
|
||||||
```
|
|
||||||
|
|
||||||
## 2. Sealos 部署的用户,挂载存储券
|
|
||||||
|
|
||||||
| Step1 | Step 2 | Step3 |
|
|
||||||
| --- | --- | --- |
|
|
||||||
|  |  |  |
|
|
||||||
| Step4 | Step 5 | |
|
|
||||||
|  |  | 完工,检查下应用状态 |
|
|
||||||
|
|
||||||
命令如下:
|
|
||||||
|
|
||||||
```bash
|
|
||||||
kubectl patch statefulset {{这里改成第一步的应用名}} -p '{"spec":{"template":{"spec":{"securityContext":{"fsGroup": 1001, "fsGroupChangePolicy": "Always"}}}}}'
|
|
||||||
|
|
||||||
# 例如下面的
|
|
||||||
# kubectl patch statefulset fastgpt-test -p '{"spec":{"template":{"spec":{"securityContext":{"fsGroup": 1001, "fsGroupChangePolicy": "Always"}}}}}'
|
|
||||||
```
|
|
||||||
|
|
||||||
|
|
||||||
## 3. 初始化脚本
|
|
||||||
|
|
||||||
升级完镜像后。从任意终端,发起 1 个 HTTP 请求。其中 {{rootkey}} 替换成环境变量里的 `rootkey`;{{host}} 替换成自己域名
|
升级完镜像后。从任意终端,发起 1 个 HTTP 请求。其中 {{rootkey}} 替换成环境变量里的 `rootkey`;{{host}} 替换成自己域名
|
||||||
|
|
||||||
@@ -56,7 +24,7 @@ curl --location --request POST 'https://{{host}}/api/admin/initv47' \
|
|||||||
脚本功能:
|
脚本功能:
|
||||||
1. 初始化插件的 parentId
|
1. 初始化插件的 parentId
|
||||||
|
|
||||||
## 4. 升级 ReRank 模型
|
## 3. 升级 ReRank 模型
|
||||||
|
|
||||||
4.7对ReRank模型进行了格式变动,兼容 cohere 的格式,可以直接使用 cohere 提供的 API。如果是本地的 ReRank 模型,需要修改镜像为:`luanshaotong/reranker:v0.2` 。
|
4.7对ReRank模型进行了格式变动,兼容 cohere 的格式,可以直接使用 cohere 提供的 API。如果是本地的 ReRank 模型,需要修改镜像为:`luanshaotong/reranker:v0.2` 。
|
||||||
|
|
||||||
|
@@ -24,9 +24,9 @@ export const getUploadModel = ({ maxSize = 500 }: { maxSize?: number }) => {
|
|||||||
},
|
},
|
||||||
preservePath: true,
|
preservePath: true,
|
||||||
storage: multer.diskStorage({
|
storage: multer.diskStorage({
|
||||||
destination: (_req, _file, cb) => {
|
// destination: (_req, _file, cb) => {
|
||||||
cb(null, tmpFileDirPath);
|
// cb(null, tmpFileDirPath);
|
||||||
},
|
// },
|
||||||
filename: async (req, file, cb) => {
|
filename: async (req, file, cb) => {
|
||||||
const { ext } = path.parse(decodeURIComponent(file.originalname));
|
const { ext } = path.parse(decodeURIComponent(file.originalname));
|
||||||
cb(null, `${getNanoid()}${ext}`);
|
cb(null, `${getNanoid()}${ext}`);
|
||||||
|
Reference in New Issue
Block a user