nasahctus's picture
System Overview This is a sophisticated AI chat interface with enterprise-grade features, supporting multiple AI models through webhook endpoints with advanced UI/UX, comprehensive mobile optimization, and production-ready architecture. Multi-Webhook Architecture (8+ Models) Current Model Configuration typescriptexport const CHAT_MODELS: Record<string, ChatConfig> = { grok4: { model: 'grok4', webhookUrl: 'https://n8n.srv728397.hstgr.cloud/webhook/grok4', active: true, }, chatgpt: { model: 'chatgpt', webhookUrl: '', // Add your ChatGPT webhook active: false, }, claude: { model: 'claude', webhookUrl: '', // Add your Claude webhook active: false, }, mistral: { model: 'mistral', webhookUrl: '', // Add your Mistral webhook active: false, }, // You mentioned 8 webhooks - add the additional 4: gemini: { model: 'gemini', webhookUrl: 'https://n8n.srv728397.hstgr.cloud/webhook/gemini', active: false, }, llama: { model: 'llama', webhookUrl: 'https://n8n.srv728397.hstgr.cloud/webhook/llama', active: false, }, perplexity: { model: 'perplexity', webhookUrl: 'https://n8n.srv728397.hstgr.cloud/webhook/perplexity', active: false, }, cohere: { model: 'cohere', webhookUrl: 'https://n8n.srv728397.hstgr.cloud/webhook/cohere', active: false, } }; Advanced API Integration System Sophisticated Response Processing typescriptconst formatResponse = (text: string): string => { // URL detection and markdown conversion formatted = formatted.replace(/(https?:\/\/[^\s]+)/g, '[$1]($1)'); // Text formatting preservation .replace(/\*\*(.*?)\*\*/g, '$1') // Bold .replace(/\*(.*?)\*/g, '$1') // Italic // List formatting enhancement .replace(/(\d+\.|\-|\*)\s/g, '\n$1 ') // Professional spacing .replace(/\.([A-Z])/g, '. $1') // Escape sequence handling .replace(/\\n/g, '\n') .replace(/\\"/g, '"') .replace(/\\'/g, "'"); }; - Initial Deployment
6905652 verified