Merge main into context-window: mask cap (#117) moves into ContextWindow
This commit is contained in:
commit
cd52d409b2
2 files changed
+22
-5
No files matched your search
@@ -574,7 +574,7 @@ mod tests {
|
||||
Session::open(dir.path().join("s.jsonl")).unwrap(),
|
||||
cx,
|
||||
);
|
||||
a.set_compact_at(1_000_000); // masking only from ~333k tokens: never in this run
|
||||
a.set_compact_at(1_000_000); // capped at 60k tokens: this run stays below it
|
||||
a.run("go").await.unwrap();
|
||||
let elided = |r: &Request| {
|
||||
r.messages.iter().any(|m| {
|
||||
@@ -603,7 +603,7 @@ mod tests {
|
||||
Session::open(dir.path().join("s2.jsonl")).unwrap(),
|
||||
cx,
|
||||
);
|
||||
b.set_compact_at(3_000);
|
||||
b.set_compact_at(3_000); // a third = 1k tokens, below the cap
|
||||
b.run("go").await.unwrap();
|
||||
assert!(script.1.lock().unwrap().iter().any(elided));
|
||||
assert!(
|
||||
|
||||
Reference in new issue
Block a user