allow disabling image generation and transcriptions (#129)

This commit is contained in:
ned
2023-04-01 10:45:52 +02:00
parent 5062280140
commit 7cba39d1f9
3 changed files with 6 additions and 2 deletions

View File

@@ -48,6 +48,8 @@ def main():
'token': os.environ['TELEGRAM_BOT_TOKEN'],
'admin_user_ids': os.environ.get('ADMIN_USER_IDS', '-'),
'allowed_user_ids': os.environ.get('ALLOWED_TELEGRAM_USER_IDS', '*'),
'enable_image_generation': os.environ.get('ENABLE_IMAGE_GENERATION', 'true').lower() == 'true',
'enable_transcription': os.environ.get('ENABLE_TRANSCRIPTION', 'true').lower() == 'true',
'monthly_user_budgets': os.environ.get('MONTHLY_USER_BUDGETS', '*'),
'monthly_guest_budget': float(os.environ.get('MONTHLY_GUEST_BUDGET', '100.0')),
'stream': os.environ.get('STREAM', 'true').lower() == 'true',