Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

Update cohere.py

Jay Alammar4f4f15bfe1f0
diff --git a/dsp/modules/cohere.py b/dsp/modules/cohere.py
index 3eb9e1b1e..81ec8a72a 100644
--- a/dsp/modules/cohere.py
+++ b/dsp/modules/cohere.py
@@ -86,7 +86,6 @@ class Cohere(LM):
kwargs.pop("num_generations")
if "n" in kwargs.keys():
kwargs.pop("n")
-
if "stop" in kwargs.keys():
kwargs.pop("stop")
response = self.co.chat(**kwargs)