Squash Odysseus development history

This commit is contained in:
pewdiepie-archdaemon
2026-09-11 06:04:19 +00:00
parent c9dd68d890
commit 84aa9a91de
871 changed files with 265870 additions and 27854 deletions
+14
View File
@@ -150,6 +150,20 @@ class TestEstimateTokens:
long = estimate_tokens([{"role": "user", "content": long_text}])
assert long > short * 10
def test_cjk_text_is_not_estimated_with_latin_character_ratio(self):
cjk = estimate_tokens([{"role": "user", "content": "诉讼时效期间" * 20}])
latin = estimate_tokens([{"role": "user", "content": "a" * 120}])
assert cjk == 124
assert cjk > latin * 2
def test_binary_replacement_text_is_not_estimated_as_latin(self):
replacement_dump = estimate_tokens([
{"role": "tool", "content": "\ufffd" * 1000},
])
assert replacement_dump == 1004
class TestLookupKnown:
def test_claude_sonnet(self):