Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
Added comments for better readibilty and documentation
vndpal514721250aa6
diff --git a/pages/api/assistants/index.ts b/pages/api/assistants/index.tsindex 8512375a..3364b9f3 100644--- a/pages/api/assistants/index.ts+++ b/pages/api/assistants/index.ts@@ -113,10 +113,11 @@ export default async function handle(return;}- // Upload the file to OpenAI+ // get the open AI file Id from dbconst fileId = document.versions[0].fileId;if (fileId) {+ //deleting the file from openaiawait openai.files.del(fileId);}