UNPKG

modelmix

Version:

🧬 Reliable interface with automatic fallback for AI LLMs.

15 lines (10 loc) • 349 B
import { ModelMix } from '../index.js'; try { process.loadEnvFile(); } catch {} const ai = ModelMix.new({ config: { debug: 2 } }) .gptOss() .kimiK25think() .deepseekR1() .hermes3() .addText('What is the capital of France?'); const response = await ai.message(); console.log('Response from Claude via OpenRouter:', response);