modelmix
Version:
🧬 Reliable interface with automatic fallback for AI LLMs.
9 lines (7 loc) • 392 B
JavaScript
import { ModelMix } from '../index.js';
try { process.loadEnvFile(); } catch {}
const model = ModelMix.new({ config: { max_history: 2, debug: 2 } }).scout()
// model.addImageFromUrl('https://pbs.twimg.com/media/F6-GsjraAAADDGy?format=jpg');
model.addImage('./img.png');
model.addText('in one word, which is the main color of the image?');
console.log(await model.json({ color: "string" }));