Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

Slightly increase max_tries, issue around 500 errors

Connor Shortenc6e96ed4e2c6
diff --git a/dsp/modules/google.py b/dsp/modules/google.py
index 27d4ecf82..d7546fee3 100644
--- a/dsp/modules/google.py
+++ b/dsp/modules/google.py
@@ -132,7 +132,7 @@ class Google(LM):
backoff.expo,
(google_api_error),
max_time=1000,
- max_tries=5,
+ max_tries=8,
on_backoff=backoff_hdlr,
giveup=giveup_hdlr,
)