Hunter1244EL - Will the new gpt-4o model work o...

Will the new gpt-4o model work out of the box? just wondering if anyone has tested

import OpenAI from "openai";

const openai = new OpenAI();

async function main() {
const completion = await openai.chat.completions.create({
messages: [{ role: "system", content: "You are a helpful assistant." }],
model: "gpt-4o",
});

console.log(completion.choices[0]);
}

main();
Was this page helpful?