Skip to content

armgit / dspy

Public Imported from GitHub
0

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

Python

Remove comment

Connor Shortenaff34af54ddc
diff --git a/dsp/modules/cohere.py b/dsp/modules/cohere.py
index a6e5289d4..7d167f56f 100644
--- a/dsp/modules/cohere.py
+++ b/dsp/modules/cohere.py
@@ -12,7 +12,6 @@ except ImportError:
cohere_api_error = Exception
# print("Not loading Cohere because it is not installed.")
-
def backoff_hdlr(details):
"""Handler from https://pypi.org/project/backoff/"""
print(
@@ -108,13 +107,5 @@ class Cohere(LM):
prompt: str,
**kwargs,
):
-
response = self.request(prompt, **kwargs)
-
- # ToDo, add
- '''
- if dsp.settings.log_coherelm_usage:
- self.log_usage(response)
- '''
-
return response.text