From 59ae9d9dafc62f5a10d0d12f68a59a9535f25b99 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 26 Aug 2024 12:20:50 -0700 Subject: [PATCH] turn off openrouter referer special case for sonnet --- aider/models.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/aider/models.py b/aider/models.py index 58ac6f635..0d48478d0 100644 --- a/aider/models.py +++ b/aider/models.py @@ -14,7 +14,7 @@ from PIL import Image from aider import urls from aider.dump import dump # noqa: F401 -from aider.llm import AIDER_APP_NAME, AIDER_SITE_URL, litellm +from aider.llm import litellm DEFAULT_MODEL_NAME = "gpt-4o" ANTHROPIC_BETA_HEADER = "max-tokens-3-5-sonnet-2024-07-15,prompt-caching-2024-07-31" @@ -320,8 +320,6 @@ MODEL_SETTINGS = [ max_tokens=8192, extra_headers={ "anthropic-beta": "max-tokens-3-5-sonnet-2024-07-15", - "HTTP-Referer": AIDER_SITE_URL, - "X-Title": AIDER_APP_NAME, }, reminder="user", ),