Skip to content

Commit 7550707

Browse files
committed
fix: hide token/time/cost awareness messages by default
1 parent 1014856 commit 7550707

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

gptme/hooks/cost_awareness.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def cost_warning_hook(
9898
f"<system_warning>Session cost reached ${total:.2f} "
9999
f"(tokens: {costs.total_input_tokens:,}/{costs.total_output_tokens:,} in/out, "
100100
f"cache hit: {cache_hit_pct:.1f}%)</system_warning>",
101+
hide=True,
101102
)
102103
logger.info(
103104
f"Cost warning: ${total:.2f} (threshold ${threshold:.2f}), "

gptme/hooks/time_awareness.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def add_time_message(
102102
message = Message(
103103
"system",
104104
f"<system_info>The time is now {time_str}. Time elapsed: {elapsed_str}</system_info>",
105-
# hide=True,
105+
hide=True,
106106
)
107107
yield message
108108

gptme/hooks/token_awareness.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def add_token_budget(
7676
yield Message(
7777
"system",
7878
f"<budget:token_budget>{budget}</budget:token_budget>",
79-
# hide=True,
79+
hide=True,
8080
)
8181

8282
logger.debug(f"Added token budget: {budget}")

0 commit comments

Comments
 (0)