Created
July 10, 2023 17:59
-
-
Save simonw/bcf067c1fc93c508591be3ab3e248246 to your computer and use it in GitHub Desktop.
datasette-llm plugin prototype - adds a "datasette llm" command to Datasette which mirrors the "llm" command from LLM.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from datasette import hookimpl | |
| from llm.cli import cli as llm_cli | |
| @hookimpl | |
| def register_commands(cli): | |
| cli.add_command(llm_cli, name="llm") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [project] | |
| name = "datasette-llm" | |
| version = "0.1" | |
| dependencies = [ | |
| "datasette", | |
| "llm", | |
| ] | |
| [project.entry-points.datasette] | |
| llm = "datasette_llm" |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With this installed:
And:
datasette llm 'five names for a happy penguin'