Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion mycli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion mycli/myclirc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down