UNPKG

@lobehub/chat

Version:

Lobe Chat - an open-source, high-performance chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.

17 lines (12 loc) 442 B
// TypeScript prompt wrapper that uses actual chain implementation import { chainLangDetect } from '@lobechat/prompts'; interface PromptVars { content: string; } export default function generatePrompt({ vars }: { vars: PromptVars }) { const { content } = vars; // Use the actual chain function from src const result = chainLangDetect(content); // Return messages array as expected by promptfoo return result.messages || []; }