EllmO is a drop-in replacement for OpenAI's API chat completion endpoint.
-
Clone the repository
-
Install packages with Poetry:
poetry install
Alternatively, you can create and activate a virtual environment, then install the dependencies:
python -m venv venv source venv/bin/activate pip install -r requirements.txt
-
Create a .env file in the root directory and add your OpenAI API key:
OPENAI_API_KEY=your_openai_api_key
- Run the FastAPI server:
(poetry run) python main.py