mirror of
https://github.com/aljazceru/chatgpt-telegram-bot.git
synced 2025-12-20 14:14:52 +01:00
Merge branch 'main' into tts-support
This commit is contained in:
@@ -41,6 +41,9 @@ def main():
|
||||
'max_tokens': int(os.environ.get('MAX_TOKENS', max_tokens_default)),
|
||||
'n_choices': int(os.environ.get('N_CHOICES', 1)),
|
||||
'temperature': float(os.environ.get('TEMPERATURE', 1.0)),
|
||||
'image_model': os.environ.get('IMAGE_MODEL', 'dall-e-2'),
|
||||
'image_quality': os.environ.get('IMAGE_QUALITY', 'standard'),
|
||||
'image_style': os.environ.get('IMAGE_STYLE', 'vivid'),
|
||||
'image_size': os.environ.get('IMAGE_SIZE', '512x512'),
|
||||
'model': model,
|
||||
'enable_functions': os.environ.get('ENABLE_FUNCTIONS', str(functions_available)).lower() == 'true',
|
||||
@@ -84,6 +87,7 @@ def main():
|
||||
'group_trigger_keyword': os.environ.get('GROUP_TRIGGER_KEYWORD', ''),
|
||||
'token_price': float(os.environ.get('TOKEN_PRICE', 0.002)),
|
||||
'image_prices': [float(i) for i in os.environ.get('IMAGE_PRICES', "0.016,0.018,0.02").split(",")],
|
||||
'image_receive_mode': os.environ.get('IMAGE_FORMAT', "photo"),
|
||||
'tts_model': os.environ.get('TTS_MODEL', 'tts-1'),
|
||||
'tts_prices': [float(i) for i in os.environ.get('TTS_PRICES', "0.015,0.030").split(",")],
|
||||
'transcription_price': float(os.environ.get('TRANSCRIPTION_PRICE', 0.006)),
|
||||
|
||||
Reference in New Issue
Block a user