Skip to content

Commit

Permalink
Use GPT-4 for sharding spancat test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
rmitsch committed Apr 20, 2024
1 parent 174ef84 commit 7653a7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spacy_llm/tests/sharding/test_sharding.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,9 @@ def test_sharding_sentiment(config):
@pytest.mark.skipif(has_openai_key is False, reason="OpenAI API key not available")
def test_sharding_spancat(config):
context_length = 265
config["components"]["llm"]["model"]["@llm_models"] = "spacy.OpenAI.v1"
# Spancat (not sharding) aspect of test case doesn't work with gpt-3.5.
config["components"]["llm"]["model"]["name"] = "gpt-4"
config["components"]["llm"]["model"]["context_length"] = context_length
config["components"]["llm"]["task"] = {
"@llm_tasks": "spacy.SpanCat.v3",
Expand Down

0 comments on commit 7653a7b

Please sign in to comment.