mirror of
https://github.com/hwchase17/langchain.git
synced 2026-03-17 18:45:44 +00:00
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:
@@ -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}],
|
||||
|
||||
Reference in New Issue
Block a user