Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for plugins to define custom template types #692

Closed
wants to merge 1 commit into from

Conversation

btucker
Copy link

@btucker btucker commented Jan 2, 2025

  • Introduced a new hook for registering additional template types.
  • Updated the load_template function to handle custom template types and raise appropriate errors for unknown types.

Why?
I wanted to make use of DSPy in templates. This allows for the creation of an llm-dspy plugin that can support that.

@btucker btucker marked this pull request as draft January 2, 2025 21:47
@btucker btucker changed the title Add support for custom template types and improve template loading Add support for plugins to define custom template types Jan 2, 2025
@btucker btucker force-pushed the template-plugins branch 3 times, most recently from 67d4a62 to 676ff74 Compare January 2, 2025 23:13
- Enhanced the Template class to allow dynamic retrieval of template classes based on type.
- Introduced a new hook for registering additional template types.
- Updated the load_template function to handle custom template types and raise appropriate errors for unknown types.
@btucker btucker closed this Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant