mirror of https://github.com/THUDM/ChatGLM-6B
Fix README typo
parent
03b38d2248
commit
a41456a831
|
@ -114,7 +114,7 @@ curl -X POST "http://127.0.0.1:8000" \
|
|||
|
||||
### 支持流式返回的 Websocket API
|
||||
|
||||
由于上述 API 部署提供不支持流式返回,故在 FastAPI 的基础上增加了对 Websocket 的支持。
|
||||
由于上述 API 不支持流式返回,故在 fastapi 的基础上增加了对 websocket 的支持。
|
||||
|
||||
首先安装额外的依赖 `pip install 'fastapi~=0.95.0' 'websockets~=10.4'`,然后运行 [websocket_api.py](./websocket_api.py) 即可。
|
||||
|
||||
|
|
|
@ -89,10 +89,7 @@ python cli_demo.py
|
|||
The command runs an interactive program in the shell. Type your instruction in the shell and hit enter to generate the response. Type `clear` to clear the dialogue history and `stop` to terminate the program.
|
||||
|
||||
## API Deployment
|
||||
|
||||
### Sync API
|
||||
|
||||
First install the additional dependency `pip install fastapi uvicorn`. The run [api.py](api.py) in the repo.
|
||||
First install the additional dependency `pip install fastapi uvicorn`. Then run [api.py](api.py) in the repo.
|
||||
```shell
|
||||
python api.py
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue