Using a trained model to produce an answer — the 'live' phase.
The process of using a trained AI model to generate a prediction or response.
💡 Asking a student a question after they have studied and receiving an answer.
const res = await openai.chat.completions.create({
model: "gpt-4o",
messages: [{ role: "user", content: "Hello!" }],
});
console.log(res.choices[0].message.content);Every model request in an application involves inference, which affects latency and cost.
with tapaScript
By clicking Sign Up you re confirming that you agree with our Terms and Conditions.
