aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/chatbot/tools/ImageCreationTool.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-03-05 19:26:31 -0500
committerbobzel <zzzman@gmail.com>2025-03-05 19:26:31 -0500
commitb38b2ee7826550ccd0960ef95016e81f1d930798 (patch)
tree6cda57eb4d25df3eee7c2003d40ebf3756a6bbe4 /src/client/views/nodes/chatbot/tools/ImageCreationTool.ts
parent466f1967af7583654de4d57fb89efe5b70630dbd (diff)
parent436b3def89ea955e2ff30fe8c2e9d15092e8c9a9 (diff)
Merge branch 'master' into Merge
Diffstat (limited to 'src/client/views/nodes/chatbot/tools/ImageCreationTool.ts')
-rw-r--r--src/client/views/nodes/chatbot/tools/ImageCreationTool.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/chatbot/tools/ImageCreationTool.ts b/src/client/views/nodes/chatbot/tools/ImageCreationTool.ts
index e92d87dfd..37907fd4f 100644
--- a/src/client/views/nodes/chatbot/tools/ImageCreationTool.ts
+++ b/src/client/views/nodes/chatbot/tools/ImageCreationTool.ts
@@ -5,6 +5,7 @@ import { ParametersType, ToolInfo } from '../types/tool_types';
import { Observation } from '../types/types';
import { BaseTool } from './BaseTool';
import { Upload } from '../../../../../server/SharedMediaTypes';
+import { List } from '../../../../../fields/List';
const imageCreationToolParams = [
{
@@ -41,7 +42,7 @@ export class ImageCreationTool extends BaseTool<ImageCreationToolParamsType> {
image_prompt,
})) as { result: Upload.FileInformation & Upload.InspectionResults; url: string };
console.log('Image generation result:', result);
- this._createImage(result, { text: RTFCast(image_prompt) });
+ this._createImage(result, { text: RTFCast(image_prompt), ai: 'dall-e-3', tags: new List<string>(['@ai']) });
return url
? [
{