kopia lustrzana https://github.com/learn-awesome/learndb
updated the package.json file
rodzic
cd5fa89f41
commit
7e38977885
|
@ -1,6 +1,7 @@
|
||||||
const https = require('https'); // Import for webscraping (fetchContentFromURL(url) function
|
const https = require('https'); // Import for webscraping (fetchContentFromURL(url) function
|
||||||
// const fetch = require('node-fetch');
|
// const fetch = require('node-fetch');
|
||||||
const { OpenAIApi, Configuration } = require('openai');
|
// const { OpenAIApi, Configuration } = require('openai');
|
||||||
|
import { OpenAIApi, Configuration } from 'openai';
|
||||||
|
|
||||||
// Placeholder function to fetch content from URL using a web scraping service
|
// Placeholder function to fetch content from URL using a web scraping service
|
||||||
async function fetchContentFromURL(url) {
|
async function fetchContentFromURL(url) {
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
{
|
{
|
||||||
"name": "handle-metadata-function",
|
"name": "handle-metadata-function",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"description": "A Netlify function to handle metadata extraction and analysis",
|
||||||
|
"main": "handleMetadata.js",
|
||||||
|
"scripts": {
|
||||||
|
"start": "node handleMetadata.js"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"openai": "4.20.0"
|
"openai": "4.20.0"
|
||||||
}
|
}
|
||||||
|
|
Ładowanie…
Reference in New Issue