Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

Update cohere.py

Jay Alammar174ae479d67c
diff --git a/dsp/modules/cohere.py b/dsp/modules/cohere.py
index c7fb026bc..c574b20bd 100644
--- a/dsp/modules/cohere.py
+++ b/dsp/modules/cohere.py
@@ -86,6 +86,10 @@ class Cohere(LM):
kwargs.pop("num_generations")
if "n" in kwargs.keys():
kwargs.pop("n")
+
+ if "pop" in kwargs.keys():
+ kwargs.pop("pop")
+
response = self.co.chat(**kwargs)
self.history.append(