DSPy: The framework for programming—not prompting—language models
Python
[CohereLM Patch] "n" added to Kwargs from template
Connor Shorten00254bcdc696
diff --git a/dsp/modules/cohere.py b/dsp/modules/cohere.pyindex caff6bb43..96c52ef7b 100644--- a/dsp/modules/cohere.py+++ b/dsp/modules/cohere.py@@ -80,6 +80,8 @@ class Cohere(LM):**kwargs,}kwargs.pop("num_generations")+ if "n" in kwargs.keys():+ kwargs.pop("n")response = self.co.chat(**kwargs)