Skip to content

Commit 735b8a1

Browse files
committed
Add plans and todos
1 parent cf4da86 commit 735b8a1

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

dev/planned_new_features.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Planned new features
2+
3+
## Small
4+
- [ ] Properly handle "No LLM Access" error
5+
- [ ] use notification_callback to notify user about process status
6+
7+
## Medium, potentlally messy
8+
- [ ] add an admin-only feature to add people to access (friends) - e.g. make_friend (did I draft this already?)
9+
- [ ] load friends list from shared db (from people_bot)
10+
- [ ] dedicated botspot access management component, with ...
11+
12+
## Big and scary
13+
- [ ] Trial / Subscription system, with payments (manual confirmation / in-app purchases in telegram)

src/router.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)