UNPKG

@n8n/n8n-nodes-langchain

Version:

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

68 lines (63 loc) 1.78 kB
/** * OpenAI Node - Version 1.3 * Discriminator: resource=image, operation=analyze */ interface Credentials { openAiApi: CredentialReference; } /** Take in images and answer questions about them */ export type LcOpenAiV13ImageAnalyzeParams = { resource: 'image'; operation: 'analyze'; /** * Text Input * @default What's in this image? */ text?: string | Expression<string> | PlaceholderValue; /** * Input Type * @default url */ inputType?: 'url' | 'base64' | Expression<string>; /** * URL(s) of the image(s) to analyze, multiple URLs can be added separated by comma * @displayOptions.show { inputType: ["url"] } */ imageUrls?: string | Expression<string> | PlaceholderValue; /** * Name of the binary property which contains the image(s) * @hint The name of the input field containing the binary file data to be processed * @displayOptions.show { inputType: ["base64"] } * @default data */ binaryPropertyName?: string | Expression<string> | PlaceholderValue; /** * Whether to simplify the response or not * @default true */ simplify?: boolean | Expression<boolean>; /** * Options * @default {} */ options?: { /** Detail * @default auto */ detail?: 'auto' | 'low' | 'high' | Expression<string>; /** Fewer tokens will result in shorter, less detailed image description * @default 300 */ maxTokens?: number | Expression<number>; }; }; export interface LcOpenAiV13ImageAnalyzeSubnodeConfig { tools?: ToolInstance[]; memory?: MemoryInstance; } export type LcOpenAiV13ImageAnalyzeNode = { type: '@n8n/n8n-nodes-langchain.openAi'; version: 1.3; credentials?: Credentials; config: NodeConfig<LcOpenAiV13ImageAnalyzeParams> & { subnodes?: LcOpenAiV13ImageAnalyzeSubnodeConfig }; };