kopia lustrzana https://github.com/learn-awesome/learndb
changed import type
rodzic
ab4060003b
commit
45e4a696ac
|
@ -1,7 +1,7 @@
|
|||
const fetch = require('node-fetch'); // Import for webscraping in fetchContentFromURL()
|
||||
import { OpenAIApi, Configuration } from 'openai';
|
||||
// const { Configuration, OpenAIApi } = require('openai');
|
||||
const he = require('he');
|
||||
import { he } from require('he');
|
||||
|
||||
// Function to fetch content from URL using a web scraping service
|
||||
async function fetchContentFromURL(url) {
|
||||
|
|
Ładowanie…
Reference in New Issue