feat: openai proxying
This commit is contained in:
@@ -5,7 +5,7 @@ Minimal aiogram bot that forwards whitelisted Telegram users' text messages to a
|
||||
## Features
|
||||
|
||||
- Configurable `API_BASE_URL` and `API_TOKEN`
|
||||
- Optional proxy for aiogram Telegram API connections
|
||||
- Optional proxy for Telegram API and OpenAI-compatible API connections
|
||||
- Telegram typing animation while the model response is streaming
|
||||
- Required users whitelist
|
||||
- Persistent per-user context in SQLite
|
||||
@@ -61,7 +61,7 @@ python bot.py
|
||||
|
||||
## Proxy
|
||||
|
||||
Set `TELEGRAM_PROXY` in `.env` to route aiogram traffic through a proxy:
|
||||
Set `TELEGRAM_PROXY` in `.env` to route both Telegram API and OpenAI-compatible API traffic through a proxy:
|
||||
|
||||
```dotenv
|
||||
TELEGRAM_PROXY=socks5://user:pass@127.0.0.1:1080
|
||||
|
||||
Reference in New Issue
Block a user