test_openai_abatch_tags() — langchain Function Reference
Architecture documentation for the test_openai_abatch_tags() function in test_base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD deb778e0_a6df_c4a2_3c06_bfd1df146063["test_openai_abatch_tags()"] bd382a4e_442c_13ae_530c_6e34bc43623d["test_base.py"] deb778e0_a6df_c4a2_3c06_bfd1df146063 -->|defined in| bd382a4e_442c_13ae_530c_6e34bc43623d style deb778e0_a6df_c4a2_3c06_bfd1df146063 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/openai/tests/integration_tests/chat_models/test_base.py lines 222–230
async def test_openai_abatch_tags(use_responses_api: bool) -> None:
"""Test batch tokens from ChatOpenAI."""
llm = ChatOpenAI(max_tokens=MAX_TOKEN_COUNT, use_responses_api=use_responses_api) # type: ignore[call-arg]
result = await llm.abatch(
["I'm Pickle Rick", "I'm not Pickle Rick"], config={"tags": ["foo"]}
)
for token in result:
assert isinstance(token.text, str)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_openai_abatch_tags() do?
test_openai_abatch_tags() is a function in the langchain codebase, defined in libs/partners/openai/tests/integration_tests/chat_models/test_base.py.
Where is test_openai_abatch_tags() defined?
test_openai_abatch_tags() is defined in libs/partners/openai/tests/integration_tests/chat_models/test_base.py at line 222.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free