Skip to content

Commit

Permalink
chore: skip cohere classify tests (#433)
Browse files Browse the repository at this point in the history
Cohere recently changed their classify API to require using a
pre-trained model [1]. We don't have a pretrained model, and until we
decide to make one for these tests, we'll skip them.

[1]: https://docs.cohere.com/changelog/classify-default-model-deprecation
  • Loading branch information
JamesGuthrie authored Feb 5, 2025
1 parent c63ba69 commit 58dd7b2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions projects/extension/tests/test_cohere.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ def test_cohere_embed_no_key(cur_with_api_key):
assert actual == 384


@pytest.mark.skip(
reason="classification can only be performed on fine-tuned models, which we don't have"
)
def test_cohere_classify(cur_with_api_key):
cur_with_api_key.execute("""
with examples(example, label) as
Expand All @@ -259,6 +262,9 @@ def test_cohere_classify(cur_with_api_key):
assert actual == """{"bird": "animal", "corn": "food", "airplane": "machine"}"""


@pytest.mark.skip(
reason="classification can only be performed on fine-tuned models, which we don't have"
)
def test_cohere_classify_simple(cur_with_api_key):
cur_with_api_key.execute("""
with examples(example, label) as
Expand Down

0 comments on commit 58dd7b2

Please sign in to comment.