Spaces:
Running
Running
SilverElixir commited on
Add files via upload
Browse files
README.md
CHANGED
|
@@ -7,9 +7,11 @@ app_port: 7860
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
| 11 |
|
| 12 |
-
A Telegram bot
|
| 13 |
|
| 14 |
**Stack:** Python 3.13 路 aiogram 路 FastAPI 路 google-genai 路 Docker
|
| 15 |
|
|
@@ -17,7 +19,7 @@ A Telegram bot built to match Claude's tone and capabilities as closely as possi
|
|
| 17 |
|
| 18 |
## Features
|
| 19 |
|
| 20 |
-
- **Automatic model routing.**
|
| 21 |
- **Streaming replies** with a self-calibrating typing-speed pacer, so answers type themselves in instead of landing in a few large chunks.
|
| 22 |
- **Defenses against prompt injection and identity leaks.** A deterministic input filter plus output scrubbers keep the bot from revealing which model or provider actually answered.
|
| 23 |
- **TikTok downloads** without watermarks: video, slideshows (including "live" photo slides), and original sound.
|
|
@@ -81,16 +83,22 @@ All three endpoints below require `Authorization: Bearer <ADMIN_PANEL_KEY>` (`/a
|
|
| 81 |
|
| 82 |
## Commands
|
| 83 |
|
| 84 |
-
`/start`, `/reset`, `/draw`, and `/tts` show up in Telegram's command menu
|
| 85 |
|
| 86 |
| Command | Access | Purpose |
|
| 87 |
|---|---|---|
|
|
|
|
| 88 |
| `/reset` | anyone in DMs; group admins/owner in groups | Clears the chat's conversation history. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 89 |
| `/stats` | bot owner, DMs only | Active chat count, process uptime, per-model quota usage. |
|
| 90 |
| `/logs` | bot owner, DMs only | Sends `bot.log` with secrets redacted. |
|
| 91 |
|
| 92 |
-
`/model`, `/provider`, and `/imgmodel` don't exist. The router and the image-model picker choose automatically on every request; see [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) for why.
|
| 93 |
-
|
| 94 |
## Testing
|
| 95 |
|
| 96 |
```bash
|
|
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
+
<p align="center">
|
| 11 |
+
<img src="assets/lumen-banner.svg" alt="Lumen: Intelligence. Clarity." width="480">
|
| 12 |
+
</p>
|
| 13 |
|
| 14 |
+
A Telegram bot styled after Claude's tone and personality (direct, warm, light on hedging), running on Google Gemini and free OpenRouter models with automatic per-message routing between them. Lumen also generates images, downloads TikTok videos without watermarks, and reads text back as speech. It runs as a webhook service on Hugging Face Spaces (Docker).
|
| 15 |
|
| 16 |
**Stack:** Python 3.13 路 aiogram 路 FastAPI 路 google-genai 路 Docker
|
| 17 |
|
|
|
|
| 19 |
|
| 20 |
## Features
|
| 21 |
|
| 22 |
+
- **Automatic model routing.** Every message goes to whichever provider actually has what it needs: web search and link reading go to Gemini, everything else defaults to free OpenRouter models, protecting Gemini's tight daily quota.
|
| 23 |
- **Streaming replies** with a self-calibrating typing-speed pacer, so answers type themselves in instead of landing in a few large chunks.
|
| 24 |
- **Defenses against prompt injection and identity leaks.** A deterministic input filter plus output scrubbers keep the bot from revealing which model or provider actually answered.
|
| 25 |
- **TikTok downloads** without watermarks: video, slideshows (including "live" photo slides), and original sound.
|
|
|
|
| 83 |
|
| 84 |
## Commands
|
| 85 |
|
| 86 |
+
`/start`, `/reset`, `/draw`, and `/tts` show up in Telegram's command menu:
|
| 87 |
|
| 88 |
| Command | Access | Purpose |
|
| 89 |
|---|---|---|
|
| 90 |
+
| `/start` | anyone | Shows a short intro and the command list. |
|
| 91 |
| `/reset` | anyone in DMs; group admins/owner in groups | Clears the chat's conversation history. |
|
| 92 |
+
| `/draw [description]` | anyone | Generates an image (see [Features](#features)). |
|
| 93 |
+
| `/tts [text]` | anyone | Reads text out loud. |
|
| 94 |
+
|
| 95 |
+
Two more owner-only commands stay out of the menu on purpose, since they surface internal details that shouldn't be visible in a group chat:
|
| 96 |
+
|
| 97 |
+
| Command | Access | Purpose |
|
| 98 |
+
|---|---|---|
|
| 99 |
| `/stats` | bot owner, DMs only | Active chat count, process uptime, per-model quota usage. |
|
| 100 |
| `/logs` | bot owner, DMs only | Sends `bot.log` with secrets redacted. |
|
| 101 |
|
|
|
|
|
|
|
| 102 |
## Testing
|
| 103 |
|
| 104 |
```bash
|