Increase reference images limit to 14 and prompt limit to 10000 for image inference

This commit is contained in:
Sirshendu Ganguly
2026-01-14 20:30:18 -05:00
parent d7754e06cc
commit 5beb48676b
5 changed files with 65 additions and 85 deletions
+4 -4
View File
@@ -206,11 +206,11 @@ class txt2img:
negativePrompt = kwargs.get("negativePrompt", "")
# Only validate positivePrompt length if it's provided
if positivePrompt and len(positivePrompt) > 2000:
return "Positive Prompt is too long. Maximum length is 2000 characters."
if positivePrompt and len(positivePrompt) > 10000:
return "Positive Prompt is too long. Maximum length is 10000 characters."
if negativePrompt and len(negativePrompt) > 2000:
return "Negative Prompt is too long. Maximum length is 2000 characters."
if negativePrompt and len(negativePrompt) > 10000:
return "Negative Prompt is too long. Maximum length is 10000 characters."
return True