UNPKG

langflow-chatbot

Version:

Add a Langflow-powered chatbot to your website.

16 lines (15 loc) 1.24 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.LANGFLOW_CHAT_ENDPOINT_SUFFIX = exports.LANGFLOW_FLOWS_ENDPOINT_SUFFIX = exports.LANGFLOW_API_BASE_PATH_V1 = exports.PROFILE_CHAT_ENDPOINT_PREFIX = exports.PROFILE_CONFIG_ENDPOINT_PREFIX = exports.PROXY_FLOWS_SUFFIX = exports.PROXY_PROFILES_SUFFIX = void 0; // Standalone, static paths (no dynamic parameters) exports.PROXY_PROFILES_SUFFIX = '/profiles'; // Path for listing available chatbot profiles exports.PROXY_FLOWS_SUFFIX = '/flows-config'; // Path for listing available langflow flows // Prefixes for routes that include a dynamic :profileId exports.PROFILE_CONFIG_ENDPOINT_PREFIX = '/config'; // e.g., /api/langflow/config/:profileId exports.PROFILE_CHAT_ENDPOINT_PREFIX = '/chat'; // e.g., /api/langflow/chat/:profileId, and /api/langflow/chat/:profileId/history // Langflow specific API base path (version 1) exports.LANGFLOW_API_BASE_PATH_V1 = '/api/v1'; // Suffix for Langflow flows endpoint (listing, creating, etc.) exports.LANGFLOW_FLOWS_ENDPOINT_SUFFIX = '/flows/'; // Trailing slash is required! // Suffix for Langflow chat endpoint (within a specific flow) exports.LANGFLOW_CHAT_ENDPOINT_SUFFIX = '/chat'; // e.g. /api/v1/chat/{flow_id}