@n8n/n8n-nodes-langchain
Version:
10 lines (9 loc) • 647 B
TypeScript
import { type ICredentialDataDecryptedObject, type IExecuteFunctions, type ILoadOptionsFunctions, type ISupplyDataFunctions, type NodeEgressFilter } from 'n8n-workflow';
import type { EndpointCredential } from './types';
export type CustomModelEndpointFetchContext = IExecuteFunctions | ISupplyDataFunctions | ILoadOptionsFunctions;
export declare function createCustomModelEndpointAuthFetch(ctx: CustomModelEndpointFetchContext, credential: ICredentialDataDecryptedObject, options: {
endpoint: EndpointCredential;
egressFilter: NodeEgressFilter;
baseFetch: typeof fetch;
requestHeaders?: Record<string, string>;
}): typeof fetch;