UNPKG

modelmix

Version:

🧬 Reliable interface with automatic fallback for AI LLMs.

21 lines (13 loc) • 443 B
import { ModelMix } from '../index.js'; try { process.loadEnvFile(); } catch {} const mmix = new ModelMix({ config: { debug: 3, } }); console.log("\n" + '--------| gpt54() |--------'); const gptArgs = { options: { reasoning_effort: "none", verbosity: "low" } }; const gpt = mmix.gpt54(gptArgs); gpt.addText("Explain quantum entanglement in simple terms."); const response = await gpt.message(); console.log(response);