The instruction or input you give a model.
An instruction, question or information provided to an AI model.
💡 Asking a chef to prepare a particular dish with specific ingredients.
const res = await openai.chat.completions.create({
model: "gpt-4o",
messages: [
{ role: "system", content: "You are a concise assistant." },
{ role: "user", content: "Explain tokens in one line." },
],
});Prompts define the task and provide the immediate input that influences the model's response.
with tapaScript
By clicking Sign Up you re confirming that you agree with our Terms and Conditions.
