From fe364b9becab9ed297fd3798ea818d215b37e3ff Mon Sep 17 00:00:00 2001 From: Huda Joad Date: Fri, 24 Nov 2023 18:57:57 +0300 Subject: [PATCH] changed openai import --- 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 c5f3c21..b00f961 100644 --- a/netlify/functions/handleMetadata.js +++ b/netlify/functions/handleMetadata.js @@ -1,6 +1,6 @@ const https = require('https'); // Import for webscraping (fetchContentFromURL(url) function // const fetch = require('node-fetch'); -const openai = require('openai'); +const { OpenAIApi, Configuration } = require('openai'); // Placeholder function to fetch content from URL using a web scraping service async function fetchContentFromURL(url) {