mirror of
https://github.com/father-bot/chatgpt_telegram_bot.git
synced 2026-08-03 13:27:16 +03:00
Default image size to 1024x1024 for DALL-E 3
512x512 is not a valid DALL-E 3 size. Default to 1024x1024 and update the example config to list the supported DALL-E 3 sizes and note the one-image-per-request limit.
This commit is contained in:
+1
-1
@@ -21,7 +21,7 @@ allowed_telegram_usernames = config_yaml["allowed_telegram_usernames"]
|
||||
new_dialog_timeout = config_yaml["new_dialog_timeout"]
|
||||
enable_message_streaming = config_yaml.get("enable_message_streaming", True)
|
||||
return_n_generated_images = config_yaml.get("return_n_generated_images", 1)
|
||||
image_size = config_yaml.get("image_size", "512x512")
|
||||
image_size = config_yaml.get("image_size", "1024x1024")
|
||||
n_chat_modes_per_page = config_yaml.get("n_chat_modes_per_page", 5)
|
||||
mongodb_uri = f"mongodb://mongo:{config_env['MONGODB_PORT']}"
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@ openrouter_api_key: "" # optional: needed only for models with "provider: openr
|
||||
openrouter_api_base: "https://openrouter.ai/api/v1" # OpenRouter is OpenAI-compatible; change only if you proxy it
|
||||
allowed_telegram_usernames: [] # if empty, the bot is available to anyone. pass a username string to allow it and/or user ids as positive integers and/or channel ids as negative integers
|
||||
new_dialog_timeout: 600 # new dialog starts after timeout (in seconds)
|
||||
return_n_generated_images: 1
|
||||
return_n_generated_images: 1 # DALL-E 3 supports only 1 image per request
|
||||
n_chat_modes_per_page: 5
|
||||
image_size: "512x512" # the image size for image generation. Generated images can have a size of 256x256, 512x512, or 1024x1024 pixels. Smaller sizes are faster to generate.
|
||||
image_size: "1024x1024" # image size for DALL-E 3 generation: 1024x1024, 1792x1024 or 1024x1792
|
||||
enable_message_streaming: true # if set, messages will be shown to user word-by-word
|
||||
|
||||
# Note: model prices are configured per-model in config/models.yml
|
||||
|
||||
Reference in New Issue
Block a user