Skip to content

armgit / dspy

Public Imported from GitHub
0

DSPy: The framework for programming—not prompting—language models

Python

Reduce default LM retries to 3

Omar Khattab651a4c715ecc
diff --git a/dspy/clients/lm.py b/dspy/clients/lm.py
index 2aad71aaf..00250318b 100644
--- a/dspy/clients/lm.py
+++ b/dspy/clients/lm.py
@@ -35,7 +35,7 @@ class LM(BaseLM):
cache: bool = True,
cache_in_memory: bool = True,
callbacks: Optional[List[BaseCallback]] = None,
- num_retries: int = 8,
+ num_retries: int = 3,
provider=None,
finetuning_model: Optional[str] = None,
launch_kwargs: Optional[dict[str, Any]] = None,