From f915013d2ccfaeb7f04bf8bfea57e6d7d1f66b81 Mon Sep 17 00:00:00 2001 From: "A.J. Shulman" Date: Thu, 19 Dec 2024 11:45:00 -0500 Subject: image generation works better --- src/client/views/nodes/chatbot/tools/CreateAnyDocTool.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/client/views/nodes/chatbot/tools/CreateAnyDocTool.ts') diff --git a/src/client/views/nodes/chatbot/tools/CreateAnyDocTool.ts b/src/client/views/nodes/chatbot/tools/CreateAnyDocTool.ts index 4c059177b..36f133503 100644 --- a/src/client/views/nodes/chatbot/tools/CreateAnyDocTool.ts +++ b/src/client/views/nodes/chatbot/tools/CreateAnyDocTool.ts @@ -7,8 +7,8 @@ import { DocumentOptions, Docs } from '../../../../documents/Documents'; /** * List of supported document types that can be created via text LLM. */ -type supportedDocumentTypesType = 'text' | 'html' | 'equation' | 'function_plot' | 'dataviz' | 'note_taking' | 'rtf' | 'message' | 'mermaid_diagram'; -const supportedDocumentTypes: supportedDocumentTypesType[] = ['text', 'html', 'equation', 'function_plot', 'dataviz', 'note_taking', 'rtf', 'message', 'mermaid_diagram']; +type supportedDocumentTypesType = 'text' | 'html' | 'equation' | 'function_plot' | 'dataviz' | 'note_taking' | 'rtf' | 'message' | 'mermaid_diagram' | 'script'; +const supportedDocumentTypes: supportedDocumentTypesType[] = ['text', 'html', 'equation', 'function_plot', 'dataviz', 'note_taking', 'rtf', 'message', 'mermaid_diagram', 'script']; /** * Description of document options and data field for each type. @@ -50,6 +50,10 @@ const documentTypesInfo = { options: ['title', 'backgroundColor', 'layout'], dataDescription: 'The Mermaid diagram content.', }, + script: { + options: ['title', 'backgroundColor', 'layout'], + dataDescription: 'The compilable JavaScript code. Use this for creating scripts.', + }, }; const createAnyDocumentToolParams = [ -- cgit v1.2.3-70-g09d2