TAAFT
Free mode
100% free
Freemium
Free Trial
Deals

llm-templates-github

simonw / llm-templates-github

Research prototype for new register_template_loaders LLM plugin hook

19 4 Language: Python License: Apache-2.0 Updated: 3mo ago

README

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
0 AIs selected
Clear selection
#
Name
Task