Home / Function/ test_chat_groq_secret() — langchain Function Reference

test_chat_groq_secret() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  7ee164c8_19d2_3825_38c8_4709d124a3b2["test_chat_groq_secret()"]
  5bf2e477_37e0_3e98_4042_bc609f2f7f60["test_chat_models.py"]
  7ee164c8_19d2_3825_38c8_4709d124a3b2 -->|defined in| 5bf2e477_37e0_3e98_4042_bc609f2f7f60
  style 7ee164c8_19d2_3825_38c8_4709d124a3b2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/groq/tests/unit_tests/test_chat_models.py lines 257–264

def test_chat_groq_secret() -> None:
    """Test that secret is not printed."""
    secret = "secretKey"  # noqa: S105
    not_secret = "safe"  # noqa: S105
    llm = ChatGroq(model="foo", api_key=secret, model_kwargs={"not_secret": not_secret})  # type: ignore[call-arg, arg-type]
    stringified = str(llm)
    assert not_secret in stringified
    assert secret not in stringified

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free