From 751725d03bef16af2879cecf9d37de86648d1218 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Sat, 17 Jun 2023 09:29:36 +0100 Subject: [PATCH] Rename log.db to logs.db, closes #41 --- docs/help.md | 8 ++++---- docs/logging.md | 4 ++-- llm/cli.py | 8 ++++---- tests/test_llm.py | 2 +- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/docs/help.md b/docs/help.md index 1650a898..26b4940b 100644 --- a/docs/help.md +++ b/docs/help.md @@ -54,7 +54,7 @@ Options: Commands: prompt* Execute a prompt - init-db Ensure the log.db SQLite database exists + init-db Ensure the logs.db SQLite database exists keys Manage stored API keys for different models logs Tools for exploring logged prompts and responses templates Manage stored prompt templates @@ -83,7 +83,7 @@ Options: ``` Usage: llm init-db [OPTIONS] - Ensure the log.db SQLite database exists + Ensure the logs.db SQLite database exists All subsequent prompts will be logged to this database. @@ -138,13 +138,13 @@ Options: Commands: list* Show recent logged prompts and their responses - path Output the path to the log.db file + path Output the path to the logs.db file ``` #### llm logs path --help ``` Usage: llm logs path [OPTIONS] - Output the path to the log.db file + Output the path to the logs.db file Options: --help Show this message and exit. diff --git a/docs/logging.md b/docs/logging.md index 65e6da00..45bddf31 100644 --- a/docs/logging.md +++ b/docs/logging.md @@ -14,7 +14,7 @@ llm logs path ``` On my Mac that outputs: ``` -/Users/simon/Library/Application Support/io.datasette.llm/log.db +/Users/simon/Library/Application Support/io.datasette.llm/logs.db ``` This will differ for other operating systems. @@ -55,7 +55,7 @@ datasette "$(llm logs path)" ``` ## SQL schema -Here's the SQL schema used by the `log.db` database: +Here's the SQL schema used by the `logs.db` database: