From efc71a0e83fd00cd1edc2646e4f7c69633f22413 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 7 Aug 2024 11:42:11 -0300 Subject: [PATCH] refactor: Refactor "https://aider.chat" and "Aider" into constants in llm.py --- aider/llm.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/aider/llm.py b/aider/llm.py index f65398729..950f1a29a 100644 --- a/aider/llm.py +++ b/aider/llm.py @@ -4,8 +4,11 @@ import warnings warnings.filterwarnings("ignore", category=UserWarning, module="pydantic") -os.environ["OR_SITE_URL"] = "http://aider.chat" -os.environ["OR_APP_NAME"] = "Aider" +AIDER_SITE_URL = "https://aider.chat" +AIDER_APP_NAME = "Aider" + +os.environ["OR_SITE_URL"] = AIDER_SITE_URL +os.environ["OR_APP_NAME"] = AIDER_APP_NAME # `import litellm` takes 1.5 seconds, defer it!