Load LLM templates from GitHub repositories
Install this plugin in the same environment as LLM.
llm install llm-templates-githubTo use the template from templatename.yaml in the https://github.com/username/llm-templates repo:
llm -t gh:username/templatenamee.g. to try this summarize.yaml template:
curl -L https://llm.datasette.io/ | llm -t gh:simonw/summarizeTo 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/activateNow install the dependencies and test dependencies:
llm install -e '.[test]'To run the tests:
python -m pytest