langflow-chatbot
Version:
Add a Langflow-powered chatbot to your website.
6 lines (5 loc) • 408 B
TypeScript
import http from 'http';
export declare function parseJsonBody(req: http.IncomingMessage): Promise<any>;
export declare function sendJsonError(res: http.ServerResponse, statusCode: number, error: string, detail?: string): void;
export declare function proxyLangflowApiRequest(res: http.ServerResponse, // The response object to write to
langflowApiCall: () => Promise<Response | null>): Promise<any | null>;