Skip to main content
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
The input to the generation — either a prompt string or an array of messages

Supported Types

models.Input1

const value: models.Input1 = {
  prompt: "What is the meaning of life?",
};

models.Input2

const value: models.Input2 = {
  messages: [
    {
      "content": "What is the meaning of life?",
      "role": "user",
    },
  ],
};