@kortyx/mistral
v0.2.0
Published
Mistral provider integration for Kortyx.
Readme
@kortyx/mistral
Mistral provider integration for Kortyx.
Install
npm install @kortyx/mistralUsage
import { createAgent, useReason } from "kortyx";
import { mistral } from "@kortyx/mistral";
const agent = createAgent({
nodes: {
answer: async () => {
const result = await useReason({
model: mistral("mistral-large-latest"),
prompt: "Write a concise answer.",
});
return result;
},
},
});Set MISTRAL_API_KEY or pass an explicit key:
import { createMistral } from "@kortyx/mistral";
export const mistral = createMistral({
apiKey: process.env.MISTRAL_API_KEY,
});Models
Kortyx ships autocomplete for:
ministral-3b-latestministral-8b-latestministral-14b-latestmistral-large-latestmistral-medium-latestmistral-large-2512mistral-medium-2508mistral-medium-2505mistral-small-2506mistral-small-latestmistral-small-2603magistral-medium-latestmagistral-small-latestmagistral-medium-2509magistral-small-2509pixtral-large-latest
Arbitrary Mistral model IDs are accepted as strings.
