InputUnion - TypeScript SDK
InputUnion type definition
The input to the generation — either a prompt string or an array of messages
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
InputUnion type definition
models.Input1const value: models.Input1 = {
prompt: "What is the meaning of life?",
};
models.Input2const value: models.Input2 = {
messages: [
{
"content": "What is the meaning of life?",
"role": "user",
},
],
};