From a79ce7a15101687c4ed22fec66adc1ba0bcd68b8 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 25 Nov 2024 18:38:34 -0800 Subject: [PATCH] fix: remove duplicate detect_urls parameter and add to coder initialization --- aider/coders/base_coder.py | 1 - aider/main.py | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/aider/coders/base_coder.py b/aider/coders/base_coder.py index 7df3cc312..11d05929f 100755 --- a/aider/coders/base_coder.py +++ b/aider/coders/base_coder.py @@ -269,7 +269,6 @@ class Coder: suggest_shell_commands=True, chat_language=None, detect_urls=True, - detect_urls=True, ): # Fill in a dummy Analytics if needed, but it is never .enable()'d self.analytics = analytics if analytics is not None else Analytics() diff --git a/aider/main.py b/aider/main.py index 5e4110cf4..28e347be8 100644 --- a/aider/main.py +++ b/aider/main.py @@ -751,6 +751,7 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F num_cache_warming_pings=args.cache_keepalive_pings, suggest_shell_commands=args.suggest_shell_commands, chat_language=args.chat_language, + detect_urls=args.detect_urls, ) except ValueError as err: io.tool_error(str(err))