Skip to content

SmythOS Studio: Open-Source Visual AI Agent Builder and deployable runtime stack from SmythOS. Start with an intuitive drag-and-drop workspace, extend with custom code, and deploy your agents anywhere — local, cloud, or edge — with full governance and control.

Refactor Import Statements in AI Chat Utility Files to Use Correct Type Definitions

Salman-Ahamed0d951049a807
diff --git a/packages/app/src/react/features/ai-chat/utils/file.ts b/packages/app/src/react/features/ai-chat/utils/file.ts
index ea153e52..a653a84e 100644
--- a/packages/app/src/react/features/ai-chat/utils/file.ts
+++ b/packages/app/src/react/features/ai-chat/utils/file.ts
@@ -1,4 +1,4 @@
-import { IMessageFile } from '@react/features/ai-chat';
+import { IMessageFile } from '@react/features/ai-chat/types/chat.types';
/**
* Constants for file upload limitations
diff --git a/packages/app/src/react/features/ai-chat/utils/index.ts b/packages/app/src/react/features/ai-chat/utils/index.ts
index 53d8bfd9..96045b5d 100644
--- a/packages/app/src/react/features/ai-chat/utils/index.ts
+++ b/packages/app/src/react/features/ai-chat/utils/index.ts
@@ -1,5 +1,5 @@
/* eslint-disable no-unused-vars, @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any */
-import { IMessageFile } from '@react/features/ai-chat';
+import { IMessageFile } from '@react/features/ai-chat/types/chat.types';
import config from '@src/builder-ui/config';
type GenerateResponseInput = {