feat: use constants from llm.py in models.py

This commit is contained in:
Paul Gauthier (aider) 2024-08-07 11:42:34 -03:00
parent efc71a0e83
commit f16564994f

View file

@ -13,7 +13,7 @@ from PIL import Image
from aider import urls from aider import urls
from aider.dump import dump # noqa: F401 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" DEFAULT_MODEL_NAME = "gpt-4o"
@ -285,8 +285,8 @@ MODEL_SETTINGS = [
max_tokens=8192, max_tokens=8192,
extra_headers={ extra_headers={
"anthropic-beta": "max-tokens-3-5-sonnet-2024-07-15", "anthropic-beta": "max-tokens-3-5-sonnet-2024-07-15",
"HTTP-Referer": "https://aider.chat", "HTTP-Referer": AIDER_SITE_URL,
"X-Title": "Aider", "X-Title": AIDER_APP_NAME,
}, },
), ),
ModelSettings( ModelSettings(