From d3aeedb9f6b9b12e59e5df8d45fb8024a4ba28ef Mon Sep 17 00:00:00 2001 From: Igor Tarasenko Date: Fri, 28 Jun 2024 21:03:58 +0200 Subject: [PATCH] Update ExcaliAI.md to fix incorrect request json for openai api --- ea-scripts/ExcaliAI.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ea-scripts/ExcaliAI.md b/ea-scripts/ExcaliAI.md index 5297d88..c62b671 100644 --- a/ea-scripts/ExcaliAI.md +++ b/ea-scripts/ExcaliAI.md @@ -427,7 +427,7 @@ const run = async (text) => { const requestObject = isImageEditRequest ? { - ...imageDataURL ? {image: imageDataURL} : {}, + ...imageDataURL ? {image: {url: imageDataURL}} : {}, ...(text && text.trim() !== "") ? {text} : {}, imageGenerationProperties: { size: imageSize, @@ -437,7 +437,7 @@ const run = async (text) => { }, } : { - ...imageDataURL ? {image: imageDataURL} : {}, + ...imageDataURL ? {image: {url: imageDataURL}} : {}, ...(text && text.trim() !== "") ? {text} : {}, systemPrompt: systemPrompt.prompt, instruction: outputType.instruction,