test_bind_tools_with_strict_mode_uses_beta_endpoint() — langchain Function Reference
Architecture documentation for the test_bind_tools_with_strict_mode_uses_beta_endpoint() function in test_chat_models.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD a2aaaacb_b7a1_a3b7_49a5_a148639d3607["test_bind_tools_with_strict_mode_uses_beta_endpoint()"] 9e1e7e05_fcb9_6888_687f_284ccfd65fd2["TestChatDeepSeekStrictMode"] a2aaaacb_b7a1_a3b7_49a5_a148639d3607 -->|defined in| 9e1e7e05_fcb9_6888_687f_284ccfd65fd2 style a2aaaacb_b7a1_a3b7_49a5_a148639d3607 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/deepseek/tests/unit_tests/test_chat_models.py lines 262–278
def test_bind_tools_with_strict_mode_uses_beta_endpoint(self) -> None:
"""Test that bind_tools with strict=True uses the beta endpoint."""
llm = ChatDeepSeek(
model="deepseek-chat",
api_key=SecretStr("test_key"),
)
# Verify default endpoint
assert llm.api_base == DEFAULT_API_BASE
# Bind tools with strict=True
bound_model = llm.bind_tools([SampleTool], strict=True)
# The bound model should have its internal model using beta endpoint
# We can't directly access the internal model, but we can verify the behavior
# by checking that the binding operation succeeds
assert bound_model is not None
Domain
Subdomains
Source
Frequently Asked Questions
What does test_bind_tools_with_strict_mode_uses_beta_endpoint() do?
test_bind_tools_with_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_bind_tools_with_strict_mode_uses_beta_endpoint() defined?
test_bind_tools_with_strict_mode_uses_beta_endpoint() is defined in libs/partners/deepseek/tests/unit_tests/test_chat_models.py at line 262.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free