kopia lustrzana https://github.com/learn-awesome/learndb
changed openai import
rodzic
e302e41c75
commit
fe364b9bec
|
@ -1,6 +1,6 @@
|
||||||
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 openai = require('openai');
|
const { OpenAIApi, Configuration } = require('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) {
|
||||||
|
|
Ładowanie…
Reference in New Issue