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.

Update import path for FileWithMetadata in use-fileupload hook to ensure correct relative referencing, enhancing module resolution and consistency within the project structure. Adhered to TypeScript standards with clear type definitions and inline comments for improved code clarity.

Salman-Ahamed291b8ed76d77
diff --git a/packages/app/src/react/features/ai-chat/hooks/use-fileupload.ts b/packages/app/src/react/features/ai-chat/hooks/use-fileupload.ts
index d850cbba..f685e00b 100644
--- a/packages/app/src/react/features/ai-chat/hooks/use-fileupload.ts
+++ b/packages/app/src/react/features/ai-chat/hooks/use-fileupload.ts
@@ -8,7 +8,7 @@ import {
uploadFile,
validateSingleFile,
} from '@react/features/ai-chat/utils/file';
-import { FileWithMetadata } from '@react/shared/types/chat.types';
+import { FileWithMetadata } from '../types/chat.types';
interface FileUploadError {
show: boolean;