This server wraps Spark's API as OpenAI's
Install pdm and then install dependencies
pip install pdm
pdm installYou need to set 3 environment variables:
APPID=
APISecret=
APIKEY=Start the development server:
pdm devYou can use Docker to deploy too. After setuping the environment variables, run:
docker build -t spark2o .
docker run -p 9040:9040 spark2o