Add Gemini Live bot file
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
# Simple Chatbot Server
|
||||
|
||||
A FastAPI server that manages bot instances and provides endpoints for both Daily Prebuilt and RTVI client connections.
|
||||
A FastAPI server that manages bot instances and provides endpoints for both Daily Prebuilt and Pipecat client connections.
|
||||
|
||||
## Endpoints
|
||||
|
||||
- `GET /` - Direct browser access, redirects to a Daily Prebuilt room
|
||||
- `POST /connect` - RTVI client connection endpoint
|
||||
- `POST /connect` - Pipecat client connection endpoint
|
||||
- `GET /status/{pid}` - Get status of a specific bot process
|
||||
|
||||
## Environment Variables
|
||||
@@ -13,14 +13,37 @@ A FastAPI server that manages bot instances and provides endpoints for both Dail
|
||||
Copy `env.example` to `.env` and configure:
|
||||
|
||||
```ini
|
||||
# Required API Keys
|
||||
DAILY_API_KEY= # Your Daily API key
|
||||
OPENAI_API_KEY= # Your OpenAI API key (required for OpenAI bot)
|
||||
GEMINI_API_KEY= # Your Gemini API key (required for Gemini bot)
|
||||
ELEVENLABS_API_KEY= # Your ElevenLabs API key
|
||||
|
||||
# Bot Selection
|
||||
BOT_IMPLEMENTATION= # Options: 'openai' or 'gemini'
|
||||
|
||||
# Optional Configuration
|
||||
DAILY_API_URL= # Optional: Daily API URL (defaults to https://api.daily.co/v1)
|
||||
OPENAI_API_KEY= # Your OpenAI API key
|
||||
CARTESIA_API_KEY= # Your Cartesia API key
|
||||
DAILY_SAMPLE_ROOM_URL= # Optional: Fixed room URL for development
|
||||
HOST= # Optional: Host address (defaults to 0.0.0.0)
|
||||
FAST_API_PORT= # Optional: Port number (defaults to 7860)
|
||||
```
|
||||
|
||||
## Available Bots
|
||||
|
||||
The server supports two bot implementations:
|
||||
|
||||
1. **OpenAI Bot** (Default)
|
||||
|
||||
- Uses GPT-4 for conversation
|
||||
- Requires OPENAI_API_KEY
|
||||
|
||||
2. **Gemini Bot**
|
||||
- Uses Google's Gemini model
|
||||
- Requires GEMINI_API_KEY
|
||||
|
||||
Select your preferred bot by setting `BOT_IMPLEMENTATION` in your `.env` file.
|
||||
|
||||
## Running the Server
|
||||
|
||||
Set up and activate your virtual environment:
|
||||
|
||||
Reference in New Issue
Block a user