UNPKG

modelmix

Version:

🧬 ModelMix - Unified API for Diverse AI LLM.

15 lines (13 loc) • 517 B
process.loadEnvFile(); import { ModelMix } from '../index.js'; const model = await ModelMix.new({ options: { max_tokens: 10000 }, config: { debug: true } }) .gemini3pro() // .gptOss() // .scout({ config: { temperature: 0 } }) // .o4mini() // .sonnet37think() // .gpt45() // .gemini25flash() .addText("Name and capital of 3 South American countries.") const jsonResult = await model.json({ countries: [{ name: "", capital: "" }] }, {}, { addNote: true }); console.log(jsonResult);