Skip to content

Commit 62e8de6

Browse files
authored
Merge pull request #213 from dbcli/litecli-llm-fix
Check for `\llm` in a loop to make sure alternate invokations are not…
2 parents 4c1056f + 20f8b46 commit 62e8de6

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@
55
* Support `--help` in the `\llm`and `\llm+` command. ([#214](https://github.com/dbcli/litecli/pull/214))
66
* Make the history file location configurable. ([#206](https://github.com/dbcli/litecli/issues/206))
77

8+
### Bug Fixes
9+
10+
* Fix a bug where the `\llm` command on alternate invocations weren't detected correctly. (#211)
11+
812
### Internal
913

1014
* Fix typo `pormpt`to `prompt` in `special/llm.py`.

litecli/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def one_iteration(text=None):
444444
self.echo(str(e), err=True, fg="red")
445445
return
446446

447-
if special.is_llm_command(text):
447+
while special.is_llm_command(text):
448448
try:
449449
start = time()
450450
cur = self.sqlexecute.conn and self.sqlexecute.conn.cursor()

0 commit comments

Comments
 (0)