javascript-course
javascript-course copied to clipboard
Migrated code in server.js to work with OpenAI API v4
Updated the code to work with OpenAI API v4 and added improved error handling. This is my first time contributing on github since college. :)
Hi @ramia15 your solution is like this
const configuration = { apiKey: process.env.OPENIA_KEY, }; const openai = new OpenAI(configuration);
all changes from new realase in openAI right?