fix: compaction typo (#35467)

_This PR applies 2/2 suggestions from code quality [AI
findings](https://github.com/langchain-ai/langchain/security/quality/ai-findings)._

---------

Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com>
This commit is contained in:
John Kennedy
2026-02-27 11:30:37 -08:00
committed by GitHub
parent c600b932a6
commit e939c96792

View File

@@ -1114,7 +1114,7 @@ def test_custom_tool(output_version: Literal["responses/v1", "v1"]) -> None:
@pytest.mark.vcr
@pytest.mark.parametrize("output_version", ["responses/v1", "v1"])
def test_compaction(output_version: Literal["responses/v1", "v1"]) -> None:
"""Test the compation beta feature."""
"""Test the compaction beta feature."""
llm = ChatOpenAI(
model="gpt-5.2",
context_management=[{"type": "compaction", "compact_threshold": 10_000}],
@@ -1160,7 +1160,7 @@ def test_compaction(output_version: Literal["responses/v1", "v1"]) -> None:
@pytest.mark.vcr
@pytest.mark.parametrize("output_version", ["responses/v1", "v1"])
def test_compaction_streaming(output_version: Literal["responses/v1", "v1"]) -> None:
"""Test the compation beta feature."""
"""Test the compaction beta feature."""
llm = ChatOpenAI(
model="gpt-5.2",
context_management=[{"type": "compaction", "compact_threshold": 10_000}],