@@ -77,8 +77,9 @@ async def media_handler(message: Message, app: App, state: FSMContext):
7777
7878 if len (transcription ) > app .config .summary_generation_threshold :
7979 # Create and send summary
80- notif = await reply_safe (message , "🔄 Large transcript detected, Creating summary..." )
81-
80+ notif = await reply_safe (
81+ message , "Large transcript detected, creating summary..."
82+ )
8283
8384 summary = await app .create_summary (transcription , username = username , message_id = message .message_id )
8485
@@ -139,6 +140,7 @@ async def _reply_chat_handler(message: Message, app: App):
139140 prompt = await get_message_text (message , include_reply = True )
140141
141142 # Get cost before chat operation
143+ # todo: rework to use message_id instead of total cost
142144 before_cost = await app .get_total_cost (username )
143145
144146 # Set message_id for this user
@@ -165,6 +167,7 @@ async def _reply_chat_handler(message: Message, app: App):
165167
166168 # Only show cost if it's significant
167169 if chat_cost > 0.01 :
170+ # todo: include in message response at the bottom, as italic
168171 cost_message = f"💬 <b>Chat Cost:</b> ${ chat_cost :.4f} USD"
169172 await reply_safe (message , cost_message )
170173
0 commit comments