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.

Remove commented normalization of response in useFileUpload hook

Salman-Ahamed954c536de33e
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 cb9b450f..2a816539 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
@@ -118,7 +118,6 @@ export const useFileUpload = (params?: {
const result = await uploadFile(file, agentId, chatId);
if (result.success) {
- // Normalize response from runtime (/aichat/upload)
const data = result.data as {
files?: Array<{ url?: string; mimetype?: string }>;
file?: { url?: string; type?: string };