Kav-K / GPTDiscord

A robust, all-in-one GPT interface for Discord. ChatGPT-style conversations, image generation, AI-moderation, custom indexes/knowledgebase, youtube summarizer, and more!
MIT License
1.81k stars 305 forks source link

[BUG] 3 word limit for dalle draw should be removed #240

Closed CDG-c0de closed 1 year ago

CDG-c0de commented 1 year ago

Dalle draw command prompts for minimum of 3 words In its current state the program prompts for a minimum of 3 words when trying to use the dalle draw command, however dalle does not enforce a minimum of 3 words for the prompts. The minimum can be set to 1 word.

To Reproduce Steps to reproduce the behavior:

  1. On discord server with bot run /dalle draw Arnold Schwarzenegger
  2. Bot will reply with error requesting a prompt between 3 and 75 words long
  3. Edit line 1140 in file models/openai_model.py to: if words < 1 or words > 75:
  4. Maybe restart bot server
  5. Now again run /dalle draw Arnold Schwarzenegger on discord server with bot
  6. Watch as the bot produces and successfully returns images of Arnold Schwarzenegger

Expected behavior Expected behavior would be: the bot accepting prompts that are 1 word long, or longer.

Screenshots image

Kav-K commented 1 year ago

Removed the 3 word minimum