Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions dsp/utils/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
experimental=False,
backoff_time=10,
callbacks=[],
suppress_debug_info=True,
)


Expand Down
5 changes: 4 additions & 1 deletion dspy/clients/lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from concurrent.futures import ThreadPoolExecutor
from datetime import datetime
from typing import Any, Dict, List, Literal, Optional

import dspy
import litellm
import ujson

Expand Down Expand Up @@ -61,6 +61,9 @@ def __init__(
self.callbacks = callbacks or []
self.num_retries = num_retries

#turned off by default to avoid LiteLLM logging during every LM call
litellm.suppress_debug_info = dspy.settings.suppress_debug_info

# TODO: Arbitrary model strings could include the substring "o1-". We
# should find a more robust way to check for the "o1-" family models.
if "o1-" in model:
Expand Down
Loading