skip to Main Content

OpenAI api in node.js, javascript

I am using openai API on javascript. Below is my code. require('dotenv').config(); const OpenAI_Api = process.env.OpenAIApi || 'Mykey'; const { Configuration, OpenAIApi } = require('openai'); const configuration = new Configuration({ apiKey: OpenAI_Api }); const openai = new OpenAIApi(configuration); const createChatCompletion…

VIEW QUESTION
Back To Top
Search