kopia lustrzana https://github.com/learn-awesome/learndb
chnaged the syntax of the import
rodzic
586030a79a
commit
c6857eb355
|
@ -1,6 +1,6 @@
|
|||
const fetch = require('node-fetch'); // Import for webscraping in fetchContentFromURL()
|
||||
// import { OpenAIApi, Configuration } from 'openai';
|
||||
const { Configuration, OpenAIApi } = require('openai');
|
||||
import { OpenAIApi, Configuration } from 'openai';
|
||||
// const { Configuration, OpenAIApi } = require('openai');
|
||||
|
||||
// Function to fetch content from URL using a web scraping service
|
||||
async function fetchContentFromURL(url) {
|
||||
|
|
Ładowanie…
Reference in New Issue