From 3e36f279873951d5efe671d3e7b243d4911537a0 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 4 Feb 2025 16:12:02 -0800 Subject: [PATCH] feat: Add Fireworks AI API key support to model configuration --- aider/llm.py | 5 ++++- aider/models.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/aider/llm.py b/aider/llm.py index c01df0ce1..8262a1a20 100644 --- a/aider/llm.py +++ b/aider/llm.py @@ -2,6 +2,8 @@ import importlib import os import warnings +from aider.dump import dump # noqa: F401 + warnings.filterwarnings("ignore", category=UserWarning, module="pydantic") AIDER_SITE_URL = "https://aider.chat" @@ -13,13 +15,14 @@ os.environ["LITELLM_MODE"] = "PRODUCTION" # `import litellm` takes 1.5 seconds, defer it! -VERBOSE = False +VERBOSE = True class LazyLiteLLM: _lazy_module = None def __getattr__(self, name): + dump(name) if name == "_lazy_module": return super() self._load_litellm() diff --git a/aider/models.py b/aider/models.py index 63a2a320a..2b6c3da37 100644 --- a/aider/models.py +++ b/aider/models.py @@ -505,6 +505,7 @@ class Model(ModelSettings): gemini="GEMINI_API_KEY", anthropic="ANTHROPIC_API_KEY", groq="GROQ_API_KEY", + fireworks_ai="FIREWORKS_API_KEY", ) var = None if model in OPENAI_MODELS: