From 01cf038bb574bae0fd8bea883c9296beeed35295 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Tue, 23 Apr 2024 10:37:43 -0700 Subject: [PATCH] Quiet litellm --- aider/models.py | 2 ++ aider/sendchat.py | 2 ++ aider/voice.py | 2 ++ 3 files changed, 6 insertions(+) diff --git a/aider/models.py b/aider/models.py index fd51268d5..f06ec8f0c 100644 --- a/aider/models.py +++ b/aider/models.py @@ -11,6 +11,8 @@ from PIL import Image from aider.dump import dump # noqa: F401 +litellm.suppress_debug_info = True + DEFAULT_MODEL_NAME = "gpt-4-1106-preview" diff --git a/aider/sendchat.py b/aider/sendchat.py index e911932ac..2cbbfd2d9 100644 --- a/aider/sendchat.py +++ b/aider/sendchat.py @@ -15,6 +15,8 @@ CACHE_PATH = "~/.aider.send.cache.v1" CACHE = None # CACHE = Cache(CACHE_PATH) +litellm.suppress_debug_info = True + @backoff.on_exception( backoff.expo, diff --git a/aider/voice.py b/aider/voice.py index 4ae18cfa3..c383fc208 100644 --- a/aider/voice.py +++ b/aider/voice.py @@ -15,6 +15,8 @@ from prompt_toolkit.shortcuts import prompt from .dump import dump # noqa: F401 +litellm.suppress_debug_info = True + class SoundDeviceError(Exception): pass