Skip to content

Commit

Permalink
fix: fixed incorrectly asking for confirmation when impersonating
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikBjare committed Oct 15, 2024
1 parent 52eaed9 commit 9498343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gptme/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def handle_cmd(
content = full_args if full_args else input("[impersonate] Assistant: ")
msg = Message("assistant", content)
yield msg
yield from execute_msg(msg, confirm)
yield from execute_msg(msg, confirm=lambda _: True)
case "tokens":
manager.undo(1, quiet=True)
n_tokens = len_tokens(manager.log.messages)
Expand Down

0 comments on commit 9498343

Please sign in to comment.