Skip to content

Commit 227de6c

Browse files
remove cohere from testing and fix quality (#2902)
1 parent c138dc8 commit 227de6c

File tree

4 files changed

+1
-252
lines changed

4 files changed

+1
-252
lines changed

src/huggingface_hub/inference/_providers/cohere.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ def __init__(self):
1212
super().__init__(provider=_PROVIDER, base_url=_BASE_URL)
1313

1414
def _prepare_route(self, mapped_model: str) -> str:
15-
return "/compatibility/v1/chat/completions"
15+
return "/compatibility/v1/chat/completions"

tests/cassettes/TestInferenceClient.test_chat_completion_no_stream[cohere,conversational].yaml

Lines changed: 0 additions & 102 deletions
This file was deleted.

tests/cassettes/TestInferenceClient.test_chat_completion_with_stream[cohere,conversational].yaml

Lines changed: 0 additions & 146 deletions
This file was deleted.

tests/test_inference_client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@
6363
"black-forest-labs": {
6464
"text-to-image": "black-forest-labs/FLUX.1-dev",
6565
},
66-
"cohere": {
67-
"conversational": "CohereForAI/c4ai-command-r7b-12-2024",
68-
},
6966
"together": {
7067
"conversational": "meta-llama/Meta-Llama-3-8B-Instruct",
7168
"text-generation": "meta-llama/Llama-2-70b-hf",

0 commit comments

Comments
 (0)