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 multiple template directories with LLM_TEMPLATE_PATH #727

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bcongdon
Copy link

@bcongdon bcongdon commented Jan 31, 2025

Changes in this PR:

  • Updates template loading and listing to work with multiple directories
  • Adds LLM_TEMPLATE_PATH environment variable support

Reasoning behind this change: In a company setting, it's nice to be able to have a repo of shared prompts, in addition to the prompts that are in your user directory. By allowing a PATH-type env variable for multiple template directories, you can clone a repo of shared prompts and add that to your LLM_TEMPLATE_PATH. This lets you use version controlled shared prompts along with your personal user prompts.

Please let me know if this goes against the conventions for llm, or if there's any changes that would make this more merge-ready. Thanks! 😄

- Update template loading and listing to work with multiple directories
- Add LLM_TEMPLATE_PATH environment variable support
@bcongdon bcongdon force-pushed the multiple-template-dirs branch from e1b7fc7 to 34ffb57 Compare February 2, 2025 00:17
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