From 5cbb0f208c07d4f47b86159a93b8ff3cb35b7353 Mon Sep 17 00:00:00 2001 From: Huda Joad Date: Sat, 25 Nov 2023 00:49:06 +0300 Subject: [PATCH] fixed syntax error --- 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 26bd23f..f261828 100644 --- a/netlify/functions/handleMetadata.js +++ b/netlify/functions/handleMetadata.js @@ -1,7 +1,7 @@ const fetch = require('node-fetch'); // Import for webscraping in fetchContentFromURL() import { OpenAIApi, Configuration } from 'openai'; // const { Configuration, OpenAIApi } = require('openai'); -import { he } from require('he'); +import { he } from 'he'; // Function to fetch content from URL using a web scraping service async function fetchContentFromURL(url) {