DSPy: The framework for programming—not prompting—language models
Python
(feature) Adding support for Mistral AI's API
Franck Stephane Ndzomga8c4c97cb3050
diff --git a/dsp/modules/mistral.py b/dsp/modules/mistral.pyindex dc06bdffd..61be69e0b 100644--- a/dsp/modules/mistral.py+++ b/dsp/modules/mistral.py@@ -12,14 +12,9 @@ try:mistralai_api_error = MistralAPIExceptionexcept ImportError:mistralai_api_error = Exception- mistralai = None+ print("Not loading Mistral AI because it is not installed. Install it with `pip install mistralai`.")-if mistralai is None:- raise ImportError(- "Not loading Mistral AI because it is not installed. Install it with `pip install mistralai`.",- )-def backoff_hdlr(details):"""Handler from https://pypi.org/project/backoff/"""