standard-tests: structured output tests assume ls_structured_output_format implementation #30249
Closed
5 tasks done
Labels
🤖:bug
Related to a bug, vulnerability, unexpected error with an existing feature
investigate
Flagged for investigation.
Checked other resources
Example Code
n/a
Error Message and Stack Trace (if applicable)
FAILED tests/integration_tests/test_chat_models.py::TestChatIntegration::test_structured_output[pydantic] - KeyError: 'ls_structured_output_format'
FAILED tests/integration_tests/test_chat_models.py::TestChatIntegration::test_structured_output[typeddict] - KeyError: 'ls_structured_output_format'
FAILED tests/integration_tests/test_chat_models.py::TestChatIntegration::test_structured_output[json_schema] - KeyError: 'ls_structured_output_format'
FAILED tests/integration_tests/test_chat_models.py::TestChatIntegration::test_structured_output_async[pydantic] - KeyError: 'ls_structured_output_format'
FAILED tests/integration_tests/test_chat_models.py::TestChatIntegration::test_structured_output_async[typeddict] - KeyError: 'ls_structured_output_format'
FAILED tests/integration_tests/test_chat_models.py::TestChatIntegration::test_structured_output_async[json_schema] - KeyError: 'ls_structured_output_format'
Description
while building a ChatModel integration with structured output support, i'm running into these failures -
FAILED tests/integration_tests/test_chat_models.py::TestChatIntegration::test_structured_output[pydantic] - KeyError: 'ls_structured_output_format'
FAILED tests/integration_tests/test_chat_models.py::TestChatIntegration::test_structured_output[typeddict] - KeyError: 'ls_structured_output_format'
FAILED tests/integration_tests/test_chat_models.py::TestChatIntegration::test_structured_output[json_schema] - KeyError: 'ls_structured_output_format'
FAILED tests/integration_tests/test_chat_models.py::TestChatIntegration::test_structured_output_async[pydantic] - KeyError: 'ls_structured_output_format'
FAILED tests/integration_tests/test_chat_models.py::TestChatIntegration::test_structured_output_async[typeddict] - KeyError: 'ls_structured_output_format'
FAILED tests/integration_tests/test_chat_models.py::TestChatIntegration::test_structured_output_async[json_schema] - KeyError: 'ls_structured_output_format'
the issue appears to be that the tests assume implementation details, specifically that a ls_structured_output_format param is present.
System Info
n/a
The text was updated successfully, but these errors were encountered: