I am using the latest version of openai@3.1.0
// Train the model using the OpenAI API
openai.createModel({
model: 'text-davinci-002',
prompt: 'What is Editor X?',
n: 1,
max_tokens: 2048,
temperature: 0.7,
training_data: trainingData
}).then((model) => {
console.log(model.data.id);
});
openai.updateModel({
model: 'text-davinci-002',
training_data: additionalTrainingData
});