Skip to content

Commit fa487fb

Browse files
authored
fix(perplexity): temp xfail int tests (#32191)
It appears the API has changes since the 2025-04-15 release, leading to failed integration tests.
1 parent 053fb16 commit fa487fb

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

libs/partners/perplexity/tests/integration_tests/test_chat_models_standard.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,23 @@ def test_double_messages_conversation(self, model: BaseChatModel) -> None:
2323
@pytest.mark.xfail(reason="Raises 400: Custom stop words not supported.")
2424
def test_stop_sequence(self, model: BaseChatModel) -> None:
2525
super().test_stop_sequence(model)
26+
27+
@pytest.mark.xfail(reason="TODO, this regressed for some reason after 2025-04-15")
28+
@pytest.mark.parametrize("schema_type", ["pydantic", "typeddict", "json_schema"])
29+
def test_structured_output(self, model: BaseChatModel, schema_type: str) -> None:
30+
super().test_structured_output(model, schema_type)
31+
32+
@pytest.mark.xfail(reason="TODO, this regressed for some reason after 2025-04-15")
33+
@pytest.mark.parametrize("schema_type", ["pydantic", "typeddict", "json_schema"])
34+
async def test_structured_output_async(
35+
self, model: BaseChatModel, schema_type: str
36+
) -> None:
37+
await super().test_structured_output_async(model, schema_type)
38+
39+
@pytest.mark.xfail(reason="TODO, this regressed for some reason after 2025-04-15")
40+
def test_structured_output_pydantic_2_v1(self, model: BaseChatModel) -> None:
41+
super().test_structured_output_pydantic_2_v1(model)
42+
43+
@pytest.mark.xfail(reason="TODO, this regressed for some reason after 2025-04-15")
44+
def test_structured_output_optional_param(self, model: BaseChatModel) -> None:
45+
super().test_structured_output_optional_param(model)

0 commit comments

Comments
 (0)