test_loads_openai_llm() — langchain Function Reference
Architecture documentation for the test_loads_openai_llm() function in test_load.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD b6f0d1a4_5a57_05f3_fc37_3a6928bd8e5b["test_loads_openai_llm()"] 0b08876e_5a62_23f2_8ed5_ec59f46366a7["test_load.py"] b6f0d1a4_5a57_05f3_fc37_3a6928bd8e5b -->|defined in| 0b08876e_5a62_23f2_8ed5_ec59f46366a7 style b6f0d1a4_5a57_05f3_fc37_3a6928bd8e5b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/load/test_load.py lines 23–38
def test_loads_openai_llm() -> None:
from langchain_openai import OpenAI
llm = CommunityOpenAI(
model="davinci",
temperature=0.5,
openai_api_key="hello",
top_p=0.8,
)
llm_string = dumps(llm)
llm2 = loads(llm_string, secrets_map={"OPENAI_API_KEY": "hello"})
assert llm2 == llm
llm_string_2 = dumps(llm2)
assert llm_string_2 == llm_string
assert isinstance(llm2, OpenAI)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_loads_openai_llm() do?
test_loads_openai_llm() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/load/test_load.py.
Where is test_loads_openai_llm() defined?
test_loads_openai_llm() is defined in libs/langchain/tests/unit_tests/load/test_load.py at line 23.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free