mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 18:50:33 +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.vcr
|
||||||
@pytest.mark.parametrize("output_version", ["responses/v1", "v1"])
|
@pytest.mark.parametrize("output_version", ["responses/v1", "v1"])
|
||||||
def test_compaction(output_version: Literal["responses/v1", "v1"]) -> None:
|
def test_compaction(output_version: Literal["responses/v1", "v1"]) -> None:
|
||||||
"""Test the compation beta feature."""
|
"""Test the compaction beta feature."""
|
||||||
llm = ChatOpenAI(
|
llm = ChatOpenAI(
|
||||||
model="gpt-5.2",
|
model="gpt-5.2",
|
||||||
context_management=[{"type": "compaction", "compact_threshold": 10_000}],
|
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.vcr
|
||||||
@pytest.mark.parametrize("output_version", ["responses/v1", "v1"])
|
@pytest.mark.parametrize("output_version", ["responses/v1", "v1"])
|
||||||
def test_compaction_streaming(output_version: Literal["responses/v1", "v1"]) -> None:
|
def test_compaction_streaming(output_version: Literal["responses/v1", "v1"]) -> None:
|
||||||
"""Test the compation beta feature."""
|
"""Test the compaction beta feature."""
|
||||||
llm = ChatOpenAI(
|
llm = ChatOpenAI(
|
||||||
model="gpt-5.2",
|
model="gpt-5.2",
|
||||||
context_management=[{"type": "compaction", "compact_threshold": 10_000}],
|
context_management=[{"type": "compaction", "compact_threshold": 10_000}],
|
||||||
|
|||||||
Reference in New Issue
Block a user