diff --git a/changelog.md b/changelog.md index 60654719..16cb6f20 100644 --- a/changelog.md +++ b/changelog.md @@ -6,6 +6,11 @@ Features * Make LLM dependencies an optional extra. +Bug Fixes +-------- +* Let LLM commands respect show-timing configuration. + + Internal -------- * Add mypy to Pull Request template. diff --git a/mycli/main.py b/mycli/main.py index 5ec29a42..2b41908f 100755 --- a/mycli/main.py +++ b/mycli/main.py @@ -802,7 +802,8 @@ def one_iteration(text: str | None = None) -> None: click.echo("LLM Response:") click.echo(context) click.echo("---") - click.echo(f"Time: {duration:.2f} seconds") + if special.is_timing_enabled(): + click.echo(f"Time: {duration:.2f} seconds") text = self.prompt_app.prompt(default=sql or '') except KeyboardInterrupt: return diff --git a/mycli/myclirc b/mycli/myclirc index 1a9d728f..26387860 100644 --- a/mycli/myclirc +++ b/mycli/myclirc @@ -27,7 +27,7 @@ log_level = INFO # line below. # audit_log = ~/.mycli-audit.log -# Timing of sql statements and table rendering. +# Timing of SQL statements and table rendering, or LLM commands. timing = True # Beep after long-running queries are completed; 0 to disable.