Skip to content

Commit 7a87f13

Browse files
authored
docs:Update chatglm2.md and reranker.md the 'requirements' the word error (FlowiseAI#866)
* Update chatglm2.md docs:chatglm2.md the 'requirements' the word error * docs reranker.md the 'requirements' the word error
1 parent d4aa19d commit 7a87f13

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docSite/content/docs/development/custom-models/chatglm2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ ChatGLM2-6B 是开源中英双语对话模型 ChatGLM-6B 的第二代版本,
4747

4848
1. 根据上面的环境配置配置好环境,具体教程自行 GPT;
4949
2. 下载 [python 文件](https://github.com/labring/FastGPT/blob/main/files/models/ChatGLM2/openai_api.py)
50-
3. 在命令行输入命令 `pip install -r requirments.txt`
50+
3. 在命令行输入命令 `pip install -r requirements.txt`
5151
4. 打开你需要启动的 py 文件,在代码的 `verify_token` 方法中配置 token,这里的 token 只是加一层验证,防止接口被人盗用;
5252
5. 执行命令 `python openai_api.py --model_name 16`。这里的数字根据上面的配置进行选择。
5353

docSite/content/docs/development/custom-models/reranker.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ weight: 910
2929

3030
1. 根据上面的环境配置配置好环境,具体教程自行 GPT;
3131
2. 下载 [python 文件](https://github.com/labring/FastGPT/tree/main/python/reranker/bge-reranker-base)
32-
3. 在命令行输入命令 `pip install -r requirments.txt`
32+
3. 在命令行输入命令 `pip install -r requirements.txt`
3333
4. 按照[https://huggingface.co/BAAI/bge-reranker-base](https://huggingface.co/BAAI/bge-reranker-base)下载模型仓库到app.py同级目录
3434
5. 添加环境变量 `export ACCESS_TOKEN=XXXXXX` 配置 token,这里的 token 只是加一层验证,防止接口被人盗用,默认值为 `ACCESS_TOKEN`
3535
6. 执行命令 `python app.py`
@@ -61,4 +61,4 @@ docker run -d --name reranker -p 6006:6006 -e ACCESS_TOKEN=mytoken luanshaotong/
6161

6262
## 接入 FastGPT
6363

64-
参考 [ReRank模型接入](/docs/development/configuration/#rerank-接入),host 变量为部署的域名。
64+
参考 [ReRank模型接入](/docs/development/configuration/#rerank-接入),host 变量为部署的域名。

0 commit comments

Comments
 (0)