-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Confirm this is an issue with the Python library and not an underlying OpenAI API
- This is an issue with the Python library
Describe the bug
For integrating this package into nixpkgs we run the test suite.
When upgrading inline-snapshot to version 0.25.0 or beyond we see the following test failures:
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_content_logprobs_events - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_refusal_logprobs_events - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_parse_pydantic_tool - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_parse_multiple_pydantic_tools - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_parse_strict_tools - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_non_pydantic_response_format - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_allows_non_strict_tools_but_no_parsing - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_chat_completion_state_helper - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_parse_nothing - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_parse_pydantic_model - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_parse_pydantic_model_multiple_choices - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_parse_max_tokens_reached - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> FAILED tests/lib/chat/test_completions_streaming.py::test_parse_pydantic_model_refusal - AttributeError: 'Unmanaged' object has no attribute '_load_value'
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_content_logprobs_events - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_refusal_logprobs_events - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_parse_pydantic_tool - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_parse_multiple_pydantic_tools - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_parse_strict_tools - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_non_pydantic_response_format - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_allows_non_strict_tools_but_no_parsing - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_chat_completion_state_helper - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_parse_nothing - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_parse_pydantic_model - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_parse_pydantic_model_multiple_choices - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_parse_max_tokens_reached - AssertionError: RESPX: some routes were not called!
openai> ERROR tests/lib/chat/test_completions_streaming.py::test_parse_pydantic_model_refusal - AssertionError: RESPX: some routes were not called!
To Reproduce
- Update inline-snapshot
- Run the test suite
Code snippets
OS
Linux
Python version
3.13.5
Library version
1.99.1
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working