UNPKG

@n8n/n8n-nodes-langchain

Version:

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

43 lines (38 loc) 1.15 kB
/** * OpenAI Node - Version 2.1 * Discriminator: resource=audio, operation=translate */ interface Credentials { openAiApi: CredentialReference; } /** Translates audio into text in English */ export type LcOpenAiV21AudioTranslateParams = { resource: 'audio'; operation: 'translate'; /** * Name of the binary property which contains the audio file in one of these formats: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav, or webm * @hint The name of the input field containing the binary file data to be processed * @default data */ binaryPropertyName?: string | Expression<string> | PlaceholderValue; /** * Options * @default {} */ options?: { /** Output Randomness (Temperature) * @default 0 */ temperature?: number | Expression<number>; }; }; export interface LcOpenAiV21AudioTranslateSubnodeConfig { tools?: ToolInstance[]; memory?: MemoryInstance; } export type LcOpenAiV21AudioTranslateNode = { type: '@n8n/n8n-nodes-langchain.openAi'; version: 2.1; credentials?: Credentials; config: NodeConfig<LcOpenAiV21AudioTranslateParams> & { subnodes?: LcOpenAiV21AudioTranslateSubnodeConfig }; };