Skip to content

The agent engineering platform.

langchain[patch]: xfail unstable vertex test (#14462)

Erick Friis1d7e5c51aa39
diff --git a/libs/langchain/tests/integration_tests/chat_models/test_vertexai.py b/libs/langchain/tests/integration_tests/chat_models/test_vertexai.py
index d8da1e31eb..790fccd70a 100644
--- a/libs/langchain/tests/integration_tests/chat_models/test_vertexai.py
+++ b/libs/langchain/tests/integration_tests/chat_models/test_vertexai.py
@@ -46,6 +46,9 @@ def test_vertexai_single_call(model_name: str) -> None:
assert isinstance(response.content, str)
+# mark xfail because Vertex API randomly doesn't respect
+# the n/candidate_count parameter
@pytest.mark.scheduled
def test_candidates() -> None:
model = ChatVertexAI(model_name="chat-bison@001", temperature=0.3, n=2)