Home / Function/ test_with_structured_output_strict_mode_uses_beta_endpoint() — langchain Function Reference

test_with_structured_output_strict_mode_uses_beta_endpoint() — langchain Function Reference

Architecture documentation for the test_with_structured_output_strict_mode_uses_beta_endpoint() function in test_chat_models.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  11de7eb7_356d_4d20_ba73_042a1a387ece["test_with_structured_output_strict_mode_uses_beta_endpoint()"]
  9e1e7e05_fcb9_6888_687f_284ccfd65fd2["TestChatDeepSeekStrictMode"]
  11de7eb7_356d_4d20_ba73_042a1a387ece -->|defined in| 9e1e7e05_fcb9_6888_687f_284ccfd65fd2
  style 11de7eb7_356d_4d20_ba73_042a1a387ece fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/deepseek/tests/unit_tests/test_chat_models.py lines 295–309

    def test_with_structured_output_strict_mode_uses_beta_endpoint(self) -> None:
        """Test that with_structured_output with strict=True uses beta endpoint."""
        llm = ChatDeepSeek(
            model="deepseek-chat",
            api_key=SecretStr("test_key"),
        )

        # Verify default endpoint
        assert llm.api_base == DEFAULT_API_BASE

        # Create structured output with strict=True
        structured_model = llm.with_structured_output(SampleTool, strict=True)

        # The structured model should work with beta endpoint
        assert structured_model is not None

Domain

Subdomains

Frequently Asked Questions

What does test_with_structured_output_strict_mode_uses_beta_endpoint() do?
test_with_structured_output_strict_mode_uses_beta_endpoint() is a function in the langchain codebase, defined in libs/partners/deepseek/tests/unit_tests/test_chat_models.py.
Where is test_with_structured_output_strict_mode_uses_beta_endpoint() defined?
test_with_structured_output_strict_mode_uses_beta_endpoint() is defined in libs/partners/deepseek/tests/unit_tests/test_chat_models.py at line 295.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free