mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-04 02:32:57 +00:00
478 B
478 B
ministral-14b-latest mistral-small-latest
need to test what is better
import { Mistral } from "@mistralai/mistralai";
const mistral = new Mistral({ apiKey: "MISTRAL_API_KEY", });
async function run() { const result = await mistral.chat.complete({ model: "mistral-small-latest", messages: [ { content: "Who is the best French painter? Answer in one short sentence.", role: "user", }, ], });
console.log(result); }
run();