UNPKG

@n8n/n8n-nodes-langchain

Version:
68 lines (63 loc) • 2.44 kB
/** * OpenAI Node - Version 2.2 * Discriminator: resource=video, operation=generate */ interface Credentials { openAiApi: CredentialReference; } /** Creates audio from a text prompt */ export type LcOpenAiV22VideoGenerateParams = { resource: 'video'; operation: 'generate'; /** * Model * @builderHint Keep a working or explicitly requested model unless provider evidence shows it is unavailable or unsuitable. When choosing a new model, select a current stable model supported by this node version, the configured API, and the required operation. Use the declared model-list lookup with the connected credential when available. Gateway credits can restrict that list. For a new choice without credentials, use current provider catalog information. Choose a model that fits the task and budget. Copy the exact model ID. Do not rely on node defaults, invent model IDs, or treat an unfamiliar model as invalid. * @searchListMethod videoModelSearch * @default {"mode":"list","value":""} */ modelId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string }; /** * The prompt to generate a video from * @default A video of a cat playing with a ball */ prompt?: string | Expression<string>; /** * Clip duration in seconds * @default 4 */ seconds?: number | Expression<number>; /** * Output resolution formatted as width x height. 1024x1792 and 1792x1024 are only supported by Sora 2 Pro. * @default 1280x720 */ size?: '720x1280' | '1280x720' | '1024x1792' | '1792x1024' | Expression<string>; /** * Options * @default {} */ options?: { /** Optional image reference that guides generation * @default data */ binaryPropertyNameReference?: string | Expression<string>; /** Time to wait for the video to be generated in seconds * @default 300 */ waitTime?: number | Expression<number>; /** Output Field Name * @hint The name of the output field to put the binary file data in * @default data */ fileName?: string | Expression<string>; }; }; export interface LcOpenAiV22VideoGenerateSubnodeConfig { tools?: ToolInstance[]; memory?: MemoryInstance; } export type LcOpenAiV22VideoGenerateNode = { type: '@n8n/n8n-nodes-langchain.openAi'; version: 2.2; isTrigger: true; config: NodeConfig<LcOpenAiV22VideoGenerateParams> & { credentials?: Credentials } & { subnodes?: LcOpenAiV22VideoGenerateSubnodeConfig }; };