This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import googleIt from 'google-it'; | |
import axios from 'axios'; | |
import cheerio from 'cheerio'; | |
import OpenAI from 'openai'; | |
import readlineSync from 'readline-sync'; | |
const openai = new OpenAI({ | |
baseURL: "http://localhost:1234/v1", | |
apiKey: 'My API Key' | |
}); |