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