InputUnion - TypeScript SDK

InputUnion type definition

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

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

models.Input2

1const value: models.Input2 = {
2 messages: [
3 {
4 "content": "What is the meaning of life?",
5 "role": "user",
6 },
7 ],
8};