Skip to content

simonw/llm-templates-github

Repository files navigation

llm-templates-github

PyPI Changelog Tests License

Load LLM templates from GitHub repositories

Installation

Install this plugin in the same environment as LLM.

llm install llm-templates-github

Usage

To use the template from templatename.yaml in the https://github.com/username/llm-templates repo:

llm -t gh:username/templatename

e.g. to try this summarize.yaml template:

curl -L https://llm.datasette.io/ | llm -t gh:simonw/summarize

Development

To set up this plugin locally, first checkout the code. Then create a new virtual environment:

cd llm-templates-github
python -m venv venv
source venv/bin/activate

Now install the dependencies and test dependencies:

llm install -e '.[test]'

To run the tests:

python -m pytest

About

Research prototype for new register_template_loaders LLM plugin hook

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Languages