Elffuss BraidHub

kikocis/continue public

main · 3.1 KiBRawPermalink
1import { ModelProvider } from "../types.js";
2
3export const Mistral: ModelProvider = {
4 models: [
5 {
6 model: "mistral-large-latest",
7 displayName: "Mistral Large",
8 contextLength: 32768,
9 description:
10 "Flagship model ideal for complex tasks requiring large reasoning capabilities or highly specialized tasks like synthetic text generation, code generation, RAG, or agents.",
11 regex: /mistral-large/i,
12 recommendedFor: ["chat"],
13 },
14 {
15 model: "mistral-medium-latest",
16 displayName: "Mistral Medium",
17 contextLength: 32768,
18 description:
19 "Ideal for intermediate tasks requiring moderate reasoning such as data extraction, document summarization, email writing, job descriptions, or product descriptions. (Note: Will be deprecated in the coming months)",
20 regex: /mistral-medium/i,
21 },
22 {
23 model: "mistral-small-latest",
24 displayName: "Mistral Small",
25 contextLength: 32768,
26 description:
27 "Suitable for simple tasks that can be done in bulk like classification, customer support, or text generation.",
28 regex: /mistral-small/i,
29 },
30 {
31 model: "open-mistral-7b",
32 displayName: "Mistral 7B",
33 contextLength: 32768,
34 description:
35 "First dense model released by Mistral AI, perfect for experimentation, customization, and quick iteration. Matches capabilities of models up to 30B parameters at release time.",
36 regex: /open-mistral-7b/i,
37 },
38 {
39 model: "open-mixtral-8x7b",
40 displayName: "Mixtral 8x7B",
41 contextLength: 32768,
42 description:
43 "Sparse mixture of experts model leveraging up to 45B parameters but using about 12B during inference, offering better inference throughput at the cost of more vRAM.",
44 regex: /open-mixtral-8x7b/i,
45 },
46 {
47 model: "open-mixtral-8x22b",
48 displayName: "Mixtral 8x22B",
49 contextLength: 65536,
50 description:
51 "Larger sparse mixture of experts model leveraging up to 141B parameters but using about 39B during inference, providing better inference throughput at the cost of more vRAM.",
52 regex: /open-mixtral-8x22b/i,
53 },
54 {
55 model: "mistral-embed",
56 displayName: "Mistral Embeddings",
57 contextLength: 8192,
58 description:
59 "Model that converts text into numerical vectors of embeddings in 1024 dimensions. Enables retrieval and retrieval-augmented generation applications with a retrieval score of 55.26 on MTEB.",
60 regex: /mistral-embed/i,
61 recommendedFor: ["embed"],
62 },
63 {
64 model: "codestral-mamba-latest",
65 displayName: "Codestral Mamba",
66 contextLength: 256000,
67 description: "A Mamba 2 language model specialized in code generation.",
68 regex: /codestral-mamba/i,
69 },
70 {
71 model: "codestral-latest",
72 displayName: "Codestral",
73 contextLength: 32768,
74 description:
75 "Cutting-edge generative model specifically designed and optimized for code generation tasks, including fill-in-the-middle and code completion.",
76 regex: /codestral/i,
77 recommendedFor: ["autocomplete"],
78 },
79 ],
80 id: "mistral",
81 displayName: "Mistral",
82};