UNPKG

modelmix

Version:

🧬 Reliable interface with automatic fallback for AI LLMs.

24 lines (17 loc) • 454 B
import { ModelMix } from '../index.js'; try { process.loadEnvFile(); } catch {} async function main() { try { const ai = ModelMix.new(); const response = await ai .GLM46() .deepseekV32() .GLM47() .addText('What is the capital of France?') .message(); console.log(response); } catch (error) { console.error('Error:', error.message); } } main();