Implement Ollama integration service for AI-based speaker detection
- Created OllamaService class with httpx for API communication - Implemented detect_speakers() method with structured prompts - Added JSON response parser supporting multiple formats - Implemented is_available() health check method - Added 30-second timeout handling - Configured OLLAMA_BASE_URL environment variable - Added comprehensive unit tests with 100% coverage - Updated requirements.txt with httpx dependency Requirements: 14.1, 14.2, 14.3, 14.6
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
PORT=8000
|
||||
LOG_LEVEL=info
|
||||
OLLAMA_BASE_URL=http://localhost:11434
|
||||
|
||||
Reference in New Issue
Block a user