diff options
| author | bobzel <zzzman@gmail.com> | 2025-02-26 20:48:51 -0500 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2025-02-26 20:48:51 -0500 |
| commit | a9a1a6a507616a77f70d6525dab5027f5b7a60e6 (patch) | |
| tree | 97a37fdcdfed7bb2f0635b88b543ad525b58de14 /src/client/views/nodes/chatbot/tools/ImageCreationTool.ts | |
| parent | fa8122df7467af3d4410b7daf1cd75227a53fd96 (diff) | |
added typing to PostToServer calls. made smartDraw popup create images locally.
Diffstat (limited to 'src/client/views/nodes/chatbot/tools/ImageCreationTool.ts')
| -rw-r--r-- | src/client/views/nodes/chatbot/tools/ImageCreationTool.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/nodes/chatbot/tools/ImageCreationTool.ts b/src/client/views/nodes/chatbot/tools/ImageCreationTool.ts index dc6140871..e92d87dfd 100644 --- a/src/client/views/nodes/chatbot/tools/ImageCreationTool.ts +++ b/src/client/views/nodes/chatbot/tools/ImageCreationTool.ts @@ -37,9 +37,9 @@ export class ImageCreationTool extends BaseTool<ImageCreationToolParamsType> { console.log(`Generating image for prompt: ${image_prompt}`); // Create an array of promises, each one handling a search for a query try { - const { result, url } = await Networking.PostToServer('/generateImage', { + const { result, url } = (await Networking.PostToServer('/generateImage', { image_prompt, - }); + })) as { result: Upload.FileInformation & Upload.InspectionResults; url: string }; console.log('Image generation result:', result); this._createImage(result, { text: RTFCast(image_prompt) }); return url |
