From feb3843e270a379f31be349d6816c63dc54043a3 Mon Sep 17 00:00:00 2001 From: Huda Joad Date: Fri, 24 Nov 2023 18:40:13 +0300 Subject: [PATCH] was returning the wrong thing --- netlify/functions/handleMetadata.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netlify/functions/handleMetadata.js b/netlify/functions/handleMetadata.js index a345f0a..18cc7a7 100644 --- a/netlify/functions/handleMetadata.js +++ b/netlify/functions/handleMetadata.js @@ -37,7 +37,7 @@ function simplifyContent(content) { // // Simple summarization: taking the first few sentences // const sentences = simplifiedContent.split('. '); // const summarizedContent = sentences.slice(0, Math.min(5, sentences.length)).join('. '); - return summarizedContent; + return simplifiedContent; } // Placeholder function to perform GPT analysis for media type and topics using Mistral-7b via OpenRouter