From 9498343649898ceeeb01667515cd9e43d215f15d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Erik=20Bj=C3=A4reholt?= Date: Tue, 15 Oct 2024 16:31:03 +0200 Subject: [PATCH] fix: fixed incorrectly asking for confirmation when impersonating --- gptme/commands.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gptme/commands.py b/gptme/commands.py index a691cbc3..65116a10 100644 --- a/gptme/commands.py +++ b/gptme/commands.py @@ -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)