DSPy: The framework for programming—not prompting—language models
Python
Add the cohere client name
BeatrixCohere16a5705b4c70
diff --git a/dsp/modules/cohere.py b/dsp/modules/cohere.pyindex 1100206d4..6bfb609cd 100644--- a/dsp/modules/cohere.py+++ b/dsp/modules/cohere.py@@ -58,7 +58,7 @@ class Cohere(LM):Additional arguments to pass to the API provider."""super().__init__(model)- self.co = cohere.Client(api_key)+ self.co = cohere.Client(api_key, client_name='dspy')self.provider = "cohere"self.kwargs = {"model": model,diff --git a/dsp/modules/sentence_vectorizer.py b/dsp/modules/sentence_vectorizer.pyindex b878420f7..61a87bc87 100644--- a/dsp/modules/sentence_vectorizer.py+++ b/dsp/modules/sentence_vectorizer.py@@ -128,7 +128,7 @@ class CohereVectorizer(BaseSentenceVectorizer):self.embedding_type = embedding_typeimport cohere- self.client = cohere.Client(api_key)+ self.client = cohere.Client(api_key, client_name='dspy')def __call__(self, inp_examples: List["Example"]) -> np.ndarray:text_to_vectorize = self._extract_text_from_examples(inp_examples)