Prompt

BytapaScript

In a nutshell

The instruction or input you give a model.

What it means

An instruction, question or information provided to an AI model.

💡 Asking a chef to prepare a particular dish with specific ingredients.

Code example

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." },
  ],
});

Why it matters

Prompts define the task and provide the immediate input that influences the model's response.

Related terms

Learn Full Stack

with tapaScript

By clicking Sign Up you re confirming that you agree with our Terms and Conditions.

newsletter

Don't forget to connect with us on