mirror of
https://github.com/Dvorinka/MyClubServer.git
synced 2026-06-04 10:42:57 +00:00
hot fix #1
This commit is contained in:
+30
@@ -0,0 +1,30 @@
|
||||
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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user