Skip to content

Commit

Permalink
Merge pull request stanfordnlp#1542 from bluewin4/main
Browse files Browse the repository at this point in the history
lm.py: disable telemetry in litellm
  • Loading branch information
okhat authored Sep 25, 2024
2 parents 2ce9a10 + a707b00 commit 8a85337
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dspy/clients/lm.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
import warnings
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=UserWarning)
import litellm
if "LITELLM_LOCAL_MODEL_COST_MAP" not in os.environ:
os.environ["LITELLM_LOCAL_MODEL_COST_MAP"] = "True"
import litellm
litellm.telemetry = False

from litellm.caching import Cache
disk_cache_dir = os.environ.get('DSPY_CACHEDIR') or os.path.join(Path.home(), '.dspy_cache')
Expand Down

0 comments on commit 8a85337

Please sign in to comment.