|
|
@ -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:
|
|
|
|