Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

fix: reduce output

Marc Seitzba9904c8c338
diff --git a/pages/api/teams/[teamId]/datarooms/generate-ai-structure.ts b/pages/api/teams/[teamId]/datarooms/generate-ai-structure.ts
index b8dab89c..12cee6f2 100644
--- a/pages/api/teams/[teamId]/datarooms/generate-ai-structure.ts
+++ b/pages/api/teams/[teamId]/datarooms/generate-ai-structure.ts
@@ -92,14 +92,13 @@ export default async function handle(
{ role: "system", content: systemPrompt },
{ role: "user", content: userPrompt },
],
- temperature: 0.7,
+ temperature: 0.5,
providerOptions: {
openai: {
- maxOutputTokens: 3000,
+ maxOutputTokens: 1000,
},
},
});
-
// Validate folder depth (max 5 levels)
const validateFolderDepth = (folder: any, depth = 0): boolean => {
if (depth >= 5) return false;