Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

Fix CohereAPIError

Connor Shortendfdd4fd93c81
diff --git a/dsp/modules/cohere.py b/dsp/modules/cohere.py
index 900d5ee5b..b76bd1a92 100644
--- a/dsp/modules/cohere.py
+++ b/dsp/modules/cohere.py
@@ -66,7 +66,6 @@ class Cohere(LM):
"frequency_penalty": 0,
"presence_penalty": 0,
"num_generations": 1,
- "return_likelihoods": "GENERATION",
**kwargs
}
self.stop_sequences = stop_sequences