We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2a97d20 + 16a5705 commit 7484f26Copy full SHA for 7484f26
dsp/modules/cohere.py
@@ -58,7 +58,7 @@ def __init__(
58
Additional arguments to pass to the API provider.
59
"""
60
super().__init__(model)
61
- self.co = cohere.Client(api_key)
+ self.co = cohere.Client(api_key, client_name='dspy')
62
self.provider = "cohere"
63
self.kwargs = {
64
"model": model,
dsp/modules/sentence_vectorizer.py
@@ -128,7 +128,7 @@ def __init__(
128
self.embedding_type = embedding_type
129
130
import cohere
131
- self.client = cohere.Client(api_key)
+ self.client = cohere.Client(api_key, client_name='dspy')
132
133
def __call__(self, inp_examples: List["Example"]) -> np.ndarray:
134
text_to_vectorize = self._extract_text_from_examples(inp_examples)
0 commit comments