Skip to content

promplate/openai-compatible-spark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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