From 5c694db19d2d58e5e51583c0305e60bb12a73bcf Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 26 Feb 2024 08:30:13 -0800 Subject: [PATCH] scrub the openai key from chat history md --- aider/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/main.py b/aider/main.py index 1cb1abeba..8fa0a62ab 100644 --- a/aider/main.py +++ b/aider/main.py @@ -527,7 +527,7 @@ def main(argv=None, input=None, output=None, force_git_root=None): for arg, val in sorted(vars(args).items()): io.tool_output(f" - {arg}: {scrub_sensitive_info(str(val))}") - io.tool_output(*sys.argv, log_only=True) + io.tool_output(*map(scrub_sensitive_info, sys.argv), log_only=True) if not args.openai_api_key: if os.name == "nt":