- Implement provider factory pattern - Add support for OpenAI, Ollama, OpenRouter, and ElevenLabs - Restructure TTS API and voice management - Update configuration context and settings UI - Add provider-specific model fetching - Update documentation and environment template
36 lines
863 B
Bash
36 lines
863 B
Bash
# OpenReader WebUI Environment Configuration
|
|
|
|
# Application settings
|
|
NODE_ENV=development
|
|
PORT=3003
|
|
|
|
# Document storage base path (optional, defaults to app directory)
|
|
DOCUMENTS_PATH=./documents
|
|
|
|
# OpenAI Provider Configuration (default provider)
|
|
OPENAI_API_KEY=
|
|
OPENAI_BASE_URL=https://api.openai.com/v1
|
|
OPENAI_MODEL=tts-1
|
|
|
|
# OpenRouter Provider Configuration
|
|
OPENROUTER_API_KEY=
|
|
OPENROUTER_MODEL=openai/whisper
|
|
|
|
# Ollama Provider Configuration
|
|
OLLAMA_BASE_URL=http://localhost:11434
|
|
OLLAMA_MODEL=llama3:8b
|
|
|
|
# ElevenLabs Provider Configuration
|
|
ELEVENLABS_API_KEY=
|
|
|
|
# Optional: Default provider settings
|
|
# Valid options: openai, openrouter, ollama
|
|
DEFAULT_PROVIDER=openai
|
|
|
|
# Optional: Default voice provider settings
|
|
# Valid options: openai, elevenlabs
|
|
DEFAULT_VOICE_PROVIDER=openai
|
|
|
|
# Optional: Default voice settings
|
|
DEFAULT_VOICE=alloy
|
|
DEFAULT_VOICE_SPEED=1.0
|