Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dsp/modules/cohere.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(
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,
Expand Down
2 changes: 1 addition & 1 deletion dsp/modules/sentence_vectorizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def __init__(
self.embedding_type = embedding_type

import 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)
Expand Down