DSPy: The framework for programming—not prompting—language models
Python
Update cohere.py
Jay Alammarf676432c9f00
diff --git a/dsp/modules/cohere.py b/dsp/modules/cohere.pyindex 43464c825..3eb9e1b1e 100644--- a/dsp/modules/cohere.py+++ b/dsp/modules/cohere.py@@ -87,8 +87,8 @@ class Cohere(LM):if "n" in kwargs.keys():kwargs.pop("n")- if "pop" in kwargs.keys():- kwargs.pop("pop")+ if "stop" in kwargs.keys():+ kwargs.pop("stop")response = self.co.chat(**kwargs)self.history.append(