@n8n/n8n-nodes-langchain
Version:

43 lines (38 loc) • 1.15 kB
text/typescript
/**
* 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 };
};