Repository navigation
Dynamic AI Provider System (v1.1.0)
·
226 commits
to main
since this release
Dynamic AI Provider System (v1.1.0)
New Features
Dynamic AI Provider Detection
- Automatically detects available AI providers based on environment variables
- Centralized provider registry for easy maintenance and extension
- Support for multiple AI providers out of the box:
- OpenAI (GPT)
- Khoj (Local)
- Anthropic Claude (soon!)
- Google Gemini (soonish?)
- And more can be easily added
Improved Developer Experience
- Simplified provider configuration through environment variables
- Type-safe provider management
- Clear error messages for missing configurations
- Easy to add new providers by simply updating the registry
How to Use
- Set the appropriate environment variables for your desired providers:
# For OpenAI OPENAI_API_KEY=your_openai_key # For Khoj KHOJ_API_URL=your_khoj_url # For future providers (soon(tm)) # ANTHROPIC_API_KEY=your_anthropic_key # GOOGLE_API_KEY=your_google_key
- The system will automatically detect available providers
- The UI will show a dropdown when multiple providers are available
Technical Details
- Backward compatible with existing configurations
Full Changelog
- Added dynamic AI provider detection system
- Updated configuration to support multiple providers
- Improved error handling for missing configurations
- Updated documentation
Related Issues
- Implements dynamic provider system
- Makes it easier to add new AI providers in the future