Note: by default, no limits for anyone ( *) | * || MONTHLY_GUEST_BUDGET | $-amount as usage limit for all guest users. | Parameter | Description | Default value ||-|-|-|| MONTHLY_USER_BUDGETS | A comma-separated list of $-amounts per user from list ALLOWED_TELEGRAM_USER_IDS to set custom usage limit of OpenAI API costs for each. Note: by default, everyone is allowed ( *) | Optional configuration Note: by default, no admin ('-') || ALLOWED_TELEGRAM_USER_IDS | A comma-separated list of Telegram user IDs that are allowed to interact with the bot (use getidsbot to find your user ID). Admin IDs don't have to be added to ALLOWED_TELEGRAM_USER_IDS. These users have access to special admin commands, information and no budget restrictions. | Parameter | Description ||-|-|| OPENAI_API_KEY | Your OpenAI API key, you can get it from here || TELEGRAM_BOT_TOKEN | Your Telegram bot's token, obtained using BotFather (see tutorial) || ADMIN_USER_IDS | Telegram user IDs of admins. env, then editing the required parameters as desired: An OpenAI account (see configuration section)Ĭustomize the configuration by copying.A Telegram bot and its token (see tutorial).(NEW!) Track token usage per user - by (NEW!) Get personal token usage statistics and cost per day/month via the /stats command - by (NEW!) User budgets and guest budgets - by (NEW!) Stream support.To use this feature, enable inline queries for your bot in BotFather via the /setinline command.(NEW!) Group chat support with inline queries.(NEW!) Automatic conversation summary to avoid excessive token usage (fixes #34).(NEW!) Transcribe audio and video messages using Whisper (may require ffmpeg).(NEW!) Image generation using DALL♾ via the /image command.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |