From 9ef41b53aab0a5c7a3f429bb97bcd029bc06caeb Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 21 Jan 2025 10:28:58 -0500 Subject: fixed merge error --- src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx b/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx index 6d5290c95..b89498d7d 100644 --- a/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx +++ b/src/client/views/nodes/chatbot/chatboxcomponents/ChatBox.tsx @@ -548,8 +548,6 @@ export class ChatBox extends ViewBoxAnnotatableComponent() { * @returns {Promise} A promise that resolves once the document is created and displayed. */ @action - createDocInDash = async (doc_type: string, data: string, options: DocumentOptions, id: string) => { - const doc = await this.whichDoc(doc_type, data, options, id); createDocInDash = async (doc_type: string, data: string | undefined, options: DocumentOptions, id: string) => { let doc; @@ -914,16 +912,14 @@ export class ChatBox extends ViewBoxAnnotatableComponent() { /** * Getter that retrieves all linked CSV files for analysis. */ - @computed - get linkedCSVs(): { filename: string; id: string; text: string }[] { + @computed get linkedCSVs(): { filename: string; id: string; text: string }[] { return this.linked_csv_files; } /** * Getter that formats the entire chat history as a string for the agent's system message. */ - @computed - get formattedHistory(): string { + @computed get formattedHistory(): string { let history = '\n'; for (const message of this.history) { history += `<${message.role}>${message.content.map(content => content.text).join(' ')}`; -- cgit v1.2.3-70-g09d2