diff --git a/spacy_llm/tests/models/test_langchain.py b/spacy_llm/tests/models/test_langchain.py index 6f5e8fe0..9f711d85 100644 --- a/spacy_llm/tests/models/test_langchain.py +++ b/spacy_llm/tests/models/test_langchain.py @@ -21,22 +21,3 @@ def test_initialization(): nlp = spacy.blank("en") nlp.add_pipe("llm", config=PIPE_CFG) nlp("This is a test.") - - -@pytest.mark.external -@pytest.mark.skipif(has_langchain is False, reason="LangChain is not installed") -def test_initialization_azure_openai(): - """Test initialization and simple run with Azure OpenAI models.""" - pipe_cfg = { - "model": { - "@llm_models": "langchain.Azure.v1", - "name": "ada", - "config": {"temperature": 0.3}, - "query": {"@llm_queries": "spacy.CallLangChain.v1"}, - }, - "task": {"@llm_tasks": "spacy.NoOp.v1"}, - } - - nlp = spacy.blank("en") - nlp.add_pipe("llm", config=pipe_cfg) - nlp("This is a test.") diff --git a/spacy_llm/tests/models/test_rest.py b/spacy_llm/tests/models/test_rest.py index a083ea07..dc0210b7 100644 --- a/spacy_llm/tests/models/test_rest.py +++ b/spacy_llm/tests/models/test_rest.py @@ -108,7 +108,7 @@ def test_max_time_error_handling(): @pytest.mark.skipif( - has_azure_openai_key is False, reason="OpenAI API key not available" + has_azure_openai_key is False, reason="Azure OpenAI API key not available" ) @pytest.mark.external @pytest.mark.parametrize("deployment_name", ("gpt-35-turbo", "gpt-35-turbo-instruct"))