mirror of
https://github.com/QwenLM/Qwen.git
synced 2026-05-21 00:45:48 +08:00
Merge pull request #333 from jxst539246/main
update requirements for openai_api
This commit is contained in:
@@ -387,7 +387,7 @@ python cli_demo.py
|
||||
我们提供了OpenAI API格式的本地API部署方法(感谢@hanpenggit)。在开始之前先安装必要的代码库:
|
||||
|
||||
```bash
|
||||
pip install fastapi uvicorn openai pydantic sse_starlette
|
||||
pip install fastapi uvicorn openai pydantic>=2.3.0 sse_starlette
|
||||
```
|
||||
|
||||
随后即可运行以下命令部署你的本地API:
|
||||
|
||||
@@ -395,7 +395,7 @@ python cli_demo.py
|
||||
OpenAI API をベースにローカルAPIをデプロイする方法を提供する(@hanpenggit に感謝)。始める前に、必要なパッケージをインストールしてください:
|
||||
|
||||
```bash
|
||||
pip install fastapi uvicorn openai pydantic sse_starlette
|
||||
pip install fastapi uvicorn openai pydantic>=2.3.0 sse_starlette
|
||||
```
|
||||
|
||||
それから、API をデプロイするコマンドを実行します:
|
||||
|
||||
Reference in New Issue
Block a user