Skip to content

Commit a11e0bd

Browse files
authored
Update chatglm2.md (#354)
1 parent f6552d0 commit a11e0bd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ ChatGLM2-6B 是开源中英双语对话模型 ChatGLM-6B 的第二代版本,
4848
1. 根据上面的环境配置配置好环境,具体教程自行 GPT;
4949
2. 下载 [python 文件](https://github.com/labring/FastGPT/blob/main/files/models/ChatGLM2/openai_api.py)
5050
3. 在命令行输入命令 `pip install -r requirments.txt`
51-
4. 打开你需要启动的 py 文件,在代码的第 76 行配置 token,这里的 token 只是加一层验证,防止接口被人盗用;
52-
5. 执行命令 `python openai_api.py 16`。这里的数字根据上面的配置进行选择。
51+
4. 打开你需要启动的 py 文件,在代码的 `verify_token` 方法中配置 token,这里的 token 只是加一层验证,防止接口被人盗用;
52+
5. 执行命令 `python openai_api.py --model_name 16`。这里的数字根据上面的配置进行选择。
5353

5454
然后等待模型下载,直到模型加载完毕为止。如果出现报错先问 GPT。
5555

0 commit comments

Comments
 (0)