Avoid double truncation (#6631)

1. Avoid double truncation by giving 10% above the tool default constant
2. Add tests that fails when const = 1
This commit is contained in:
Ahmed Ibrahim
2025-11-13 16:59:31 -08:00
committed by GitHub
parent 7b027e7536
commit 9890ceb939
7 changed files with 264 additions and 35 deletions

View File

@@ -3,4 +3,6 @@ mod normalize;
mod truncate;
pub(crate) use history::ContextManager;
pub(crate) use truncate::MODEL_FORMAT_MAX_BYTES;
pub(crate) use truncate::MODEL_FORMAT_MAX_LINES;
pub(crate) use truncate::format_output_for_model_body;