-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Background
I'm trying to create a custom OpenRouter provider plugin following the example in
examples/custom_provider_plugin
, but encountering compatibility issues with the current
released version.
Issue Description
What I tried:
-
Following the official example: Used
@lx.providers.registry.register()
decorator and
entry points as shown inexamples/custom_provider_plugin
-
Testing with current PyPI version (1.0.5):
import langextract as lx
# AttributeError: module 'langextract' has no attribute 'providers'
- Testing with factory approach:
config = lx.factory.ModelConfig(model_id="...", provider="...")
# AttributeError: module 'langextract' has no attribute 'factory'
Current situation:
- ✅ Example exists in source code with complete implementation
- ❌ Plugin system not available in PyPI version 1.0.5
- ❌ lx.providers.registry module missing
- ❌ lx.factory module missing
Questions
- Release timeline: When will the plugin system be available in a PyPI release?
- Version gap: Is there a development version I should be using?
- Workaround: What's the recommended approach for custom providers until plugin system is
available? - Migration path: When plugin system is released, will existing custom providers need updates?
Use Case
I'm building a production API that needs OpenRouter integration with LangExtract's chunking
capabilities. The plugin system would be perfect for this, but I need to know the timeline for
planning purposes.
Environment
- LangExtract version: 1.0.5 (latest on PyPI)
- Python: 3.12
- Installation: pip install langextract
Related
This relates to the plugin system discussion in #99. The community is interested in creating
providers like langextract-azure-openai, langextract-openrouter, etc., but we need clarity on
when this will be possible.
Thanks for the amazing work on LangExtract! 🚀