mirror of
https://github.com/qodo-ai/pr-agent.git
synced 2025-12-12 10:55:17 +00:00
Add large_patch_policy configuration and implement patch clipping logic
This commit is contained in:
parent
911c1268fc
commit
6e6f54933e
1 changed files with 1 additions and 1 deletions
|
|
@ -15,5 +15,5 @@ class TestClipTokens:
|
|||
|
||||
max_tokens = 10
|
||||
result = clip_tokens(text, max_tokens)
|
||||
expected_results = 'line1\nline2\nline3\nli\n...(truncated)'
|
||||
expected_results = 'line1\nline2\nline3\n\n...(truncated)'
|
||||
assert result == expected_results
|
||||
|
|
|
|||
Loading…
Reference in a new issue