mirror of
https://github.com/invoke-ai/InvokeAI.git
synced 2026-04-23 03:00:31 -04:00
add prompt validation to imagen3 graph
This commit is contained in:
committed by
Mary Hipp Rogers
parent
5d69e9068a
commit
b3ee906749
@@ -34,6 +34,7 @@ export const buildImagen3Graph = async (state: RootState, manager: CanvasManager
|
||||
const { positivePrompt, negativePrompt } = selectPresetModifiedPrompts(state);
|
||||
|
||||
assert(isImagen3AspectRatioID(bbox.aspectRatio.id), 'Imagen3 does not support this aspect ratio');
|
||||
assert(positivePrompt.length > 0, 'Imagen3 requires positive prompt to have at least one character');
|
||||
|
||||
const is_intermediate = canvasSettings.sendToCanvas;
|
||||
const board = canvasSettings.sendToCanvas ? undefined : getBoardField(state);
|
||||
|
||||
Reference in New Issue
Block a user