Skip to content

Commit cfa6b80

Browse files
committed
usage calculation
1 parent f4d2689 commit cfa6b80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/ChatHistory/InMemoryChatHistoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function test_regular_messages_are_removed_when_context_window_exceeded()
153153

154154
// With the context window of 1000, we should have fewer than 5 messages
155155
$this->assertCount(8, $this->chatHistory->getMessages());
156-
$this->assertEquals(800, $this->chatHistory->calculateTotalUsage());
156+
$this->assertEquals(825, $this->chatHistory->calculateTotalUsage());
157157
}
158158

159159
public function test_remove_intermediate_invalid_message_types(): void

0 commit comments

Comments
 (0)