Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

[deprecated] cohere.CohereAPIError

Connor Shortend1e2e0df3c42
diff --git a/dsp/modules/cohere.py b/dsp/modules/cohere.py
index 7308d5935..a71cfd5c2 100644
--- a/dsp/modules/cohere.py
+++ b/dsp/modules/cohere.py
@@ -7,7 +7,7 @@ from dsp.modules.lm import LM
try:
import cohere
- cohere_api_error = cohere.CohereAPIError
+ cohere_api_error = cohere.core.api_error.ApiError
except ImportError:
cohere_api_error = Exception
# print("Not loading Cohere because it is not installed.")