diff --git a/netlify/functions/handleMetadata.js b/netlify/functions/handleMetadata.js index 5ed0d49..c6288b5 100644 --- a/netlify/functions/handleMetadata.js +++ b/netlify/functions/handleMetadata.js @@ -57,8 +57,13 @@ async function performGPTAnalysis(simplifiedContent, apiKey) { // const openai = new OpenAIApi(configuration); // // Using the specified prompt - // const prompt = `Analyze the following text and provide the media type and key topics: ${simplifiedContent}`; - + // const prompt = ` + // Analyze the following text for content categorization: + // Text: "${simplifiedContent}" + // Please provide: + // 1. The most likely media type (e.g., article, book, audio, video, chat, research_paper, wiki, etc.) + // 2. Key topics covered in the text (list up to 5 main topics). + // `; // const completion = await openai.createCompletion({ // model: "mistralai/mistral-7b-instruct", // prompt: prompt, diff --git a/package-lock.json b/package-lock.json index 31542c8..445add4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,7 +29,7 @@ "svelte-bricks": "^0.2.1", "svelte-preprocess": "^5.0.4", "tailwindcss": "^3.3.3", - "vite": "^4.4.9" + "vite": "^4.5.0" } }, "node_modules/@alloc/quick-lru": { @@ -7536,9 +7536,9 @@ } }, "node_modules/vite": { - "version": "4.4.9", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.9.tgz", - "integrity": "sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.0.tgz", + "integrity": "sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==", "dev": true, "dependencies": { "esbuild": "^0.18.10", @@ -13347,9 +13347,9 @@ "peer": true }, "vite": { - "version": "4.4.9", - "resolved": "https://registry.npmjs.org/vite/-/vite-4.4.9.tgz", - "integrity": "sha512-2mbUn2LlUmNASWwSCNSJ/EG2HuSRTnVNaydp6vMCm5VIqJsjMfbIWtbH2kDuwUVW5mMUKKZvGPX/rqeqVvv1XA==", + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.0.tgz", + "integrity": "sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==", "dev": true, "requires": { "esbuild": "^0.18.10", diff --git a/package.json b/package.json index d29efa1..1b15b87 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "svelte-bricks": "^0.2.1", "svelte-preprocess": "^5.0.4", "tailwindcss": "^3.3.3", - "vite": "^4.4.9" + "vite": "^4.5.0" }, "overrides": { "@rgossiaux/svelte-headlessui": {