Load LLM templates from GitHub repositories
Install this plugin in the same environment as LLM.
llm install llm-templates-github
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
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