Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 479 Bytes

File metadata and controls

35 lines (24 loc) · 479 Bytes

Spark -> OpenAI API wrapper

This server wraps Spark's API as OpenAI's

Install

Install pdm and then install dependencies

pip install pdm
pdm install

Deploy

You need to set 3 environment variables:

APPID=
APISecret=
APIKEY=

Start the development server:

pdm dev

You can use Docker to deploy too. After setuping the environment variables, run:

docker build -t spark2o .
docker run -p 9040:9040 spark2o