Skip to content

Commit cb2f06e

Browse files
committed
fix: escape percent sign in --no-session-cache help string
The help string contained '90% discount' which argparse interpreted as a %%d format specifier (expecting a number, receiving a dict). Python 3.14 added strict _check_help() validation, causing a crash on startup even for --version. Also corrected the savings figure to the honest ~73%%. Closes #5
1 parent d8b0891 commit cb2f06e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

token_tamer/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def parse_args() -> argparse.Namespace:
8383
"Disable long-lived session hijacking via prompt caching. "
8484
"Enabled by default — injects cache_control breakpoints into "
8585
"Anthropic requests so the conversation prefix is reused, "
86-
"delivering up to a 90% discount on input tokens for long sessions."
86+
"delivering up to ~73%% off input tokens for long sessions."
8787
),
8888
)
8989
parser.add_argument(

0 commit comments

Comments
 (0)