From f16564994f62abcf5eaf95192c73dfd0ac47dccf Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Wed, 7 Aug 2024 11:42:34 -0300 Subject: [PATCH] feat: use constants from llm.py in models.py --- aider/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/aider/models.py b/aider/models.py index 96db32bb6..5e6c21fdd 100644 --- a/aider/models.py +++ b/aider/models.py @@ -13,7 +13,7 @@ from PIL import Image from aider import urls from aider.dump import dump # noqa: F401 -from aider.llm import litellm +from aider.llm import litellm, AIDER_SITE_URL, AIDER_APP_NAME DEFAULT_MODEL_NAME = "gpt-4o" @@ -285,8 +285,8 @@ MODEL_SETTINGS = [ max_tokens=8192, extra_headers={ "anthropic-beta": "max-tokens-3-5-sonnet-2024-07-15", - "HTTP-Referer": "https://aider.chat", - "X-Title": "Aider", + "HTTP-Referer": AIDER_SITE_URL, + "X-Title": AIDER_APP_NAME, }, ), ModelSettings(