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.pyindex 7308d5935..a71cfd5c2 100644--- a/dsp/modules/cohere.py+++ b/dsp/modules/cohere.py@@ -7,7 +7,7 @@ from dsp.modules.lm import LMtry:import cohere- cohere_api_error = cohere.CohereAPIError+ cohere_api_error = cohere.core.api_error.ApiErrorexcept ImportError:cohere_api_error = Exception# print("Not loading Cohere because it is not installed.")