v1.0.6 - Custom Model Provider Plugins & Schema System Refactor
Major Features
Custom Model Provider Plugin Support
- New provider registry infrastructure for extending LangExtract with custom LLM providers
- Plugin discovery via entry points allows third-party packages to register providers
- Example implementation available at examples/custom_provider_plugin
Schema System Refactor
- Refactored schema system to support provider-specific schema implementations
- Providers can now define their own schema constraints and validation
- Better separation of concerns between core schema logic and provider implementations
Enhancements
- Ollama Provider: Added support for Hugging Face style model IDs (e.g.,
meta-llama/Llama-3.2-1B-Instruct
) - Extract API: Added
model
andconfig
parameters toextract()
for more flexible model configuration - Examples: Updated Ollama quickstart to demonstrate ModelConfig pattern with JSON mode
- Testing: Improved test infrastructure for provider registry and plugin system
Bug Fixes
- Fixed lazy loading for provider pattern registration
- Fixed unicode escaping in example generation
- Fixed test failures related to provider registry initialization
Installation
pip install langextract==1.0.6
Full Changelog: v1.0.5...v1.0.6