Welcome to the Vapi CustomLLM sample project! This guide will walk you through integrating Vapi with your custom language model.
To set up this project:
-
Create a Python Virtual Environment
python -m venv .venv source .venv/bin/activate
-
Set Up Environment Variables
-
Create a
.env
file in your repository:cp .env.example .env
-
Add your
OPENAI_API_KEY
to the.env
file.
-
-
Install Dependencies
pip install --upgrade pip &&\ pip install -r requirements.txt
-
Run the FastAPI Server
fastapi dev ./app/main.py
To make your local server accessible over the internet, you can use ngrok. Follow these steps:
- Install ngrok
- Expose Localhost
ngrok http 8000
This sample project demonstrates how to integrate a custom language model with Vapi. By following these steps, developers can create a more versatile and responsive voice assistant tailored to their users' unique needs.
For more help and detailed documentation, please refer to the official Vapi documentation.