forked from mistralai/mistral-inference
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Text generation _ Mistral AI Large Language Models.html
47 lines (45 loc) · 110 KB
/
Text generation _ Mistral AI Large Language Models.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!DOCTYPE html>
<!-- saved from url=(0048)https://docs.mistral.ai/capabilities/completion/ -->
<html lang="en" dir="ltr" class="docs-wrapper plugin-docs plugin-id-default docs-version-current docs-doc-page docs-doc-id-capabilities/completion" data-has-hydrated="true" data-google-analytics-opt-out="" data-bybit-channel-name="DM9imwGZgT5ugUyEqwL-f" data-bybit-is-default-wallet="true" data-theme="dark" data-rh="lang,dir,class,data-has-hydrated"><div id="in-page-channel-node-id" data-channel-name="in_page_channel_RxGQkH"></div><script async="false" src="chrome-extension://cpmkedoipcpimgecpmgpldfpohjplkpp/window-provider.js"></script><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="generator" content="Docusaurus v3.2.1">
<title>Text generation | Mistral AI Large Language Models</title><meta data-rh="true" name="twitter:card" content="summary_large_image"><meta data-rh="true" property="og:image" content="https://docs.mistral.ai/img/mistral-social-banner.jpg"><meta data-rh="true" name="twitter:image" content="https://docs.mistral.ai/img/mistral-social-banner.jpg"><link data-rh="true" rel="icon" href="https://docs.mistral.ai/img/favicon.ico"><link rel="stylesheet" href="./Text generation _ Mistral AI Large Language Models_files/styles.5760d859.css">
<script src="./Text generation _ Mistral AI Large Language Models_files/runtime~main.77a48988.js.download" defer="defer"></script>
<script src="./Text generation _ Mistral AI Large Language Models_files/main.0b370f62.js.download" defer="defer"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0" data-rh="true"><meta property="og:locale" content="en" data-rh="true"><meta name="docusaurus_locale" content="en" data-rh="true"><meta name="docsearch:language" content="en" data-rh="true"><meta name="docusaurus_version" content="current" data-rh="true"><meta name="docusaurus_tag" content="docs-default-current" data-rh="true"><meta name="docsearch:version" content="current" data-rh="true"><meta name="docsearch:docusaurus_tag" content="docs-default-current" data-rh="true"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a811ed6a.32154ebd.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/02cb9835.2cd530c2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/7ccb0d94.d8b3d864.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/99938c86.a7f99cbb.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/045b7d00.268e7a7d.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/e015390e.98ed70ba.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/3f130913.0e0f4a08.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/f4834277.97d3d249.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/35155c61.3db4251e.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/f0ad3fbb.5feefe83.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/3c469c15.bb053fda.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/b3ecb6b5.ba27041d.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/f327c38b.f599bea6.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/7c146eec.d61c7e13.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/1ae8728a.f7d8de3a.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/00498170.241ece43.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/2ddf178c.cad62e22.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/c1e31d33.be447d0d.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/ef65460b.3a312f0f.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/d18bf588.f58ff7f7.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/e921f177.0d1ec9d9.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/47a2a88f.30dfc23f.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/5e95c892.2d7483fa.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/87c49e91.b3570ff1.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a7bd4aaa.690b4ba5.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/935f2afb.7c098d79.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/a94703ab.2132f644.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/54481e7f.7d2be6e2.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/17896441.fdb7390c.js"><link rel="prefetch" href="https://docs.mistral.ai/assets/js/306f7620.a35c7954.js"><link rel="canonical" href="https://docs.mistral.ai/capabilities/completion/" data-rh="true"><link rel="alternate" href="https://docs.mistral.ai/capabilities/completion/" hreflang="en" data-rh="true"><link rel="alternate" href="https://docs.mistral.ai/capabilities/completion/" hreflang="x-default" data-rh="true"><meta property="og:url" content="https://docs.mistral.ai/capabilities/completion/" data-rh="true"><meta property="og:title" content="Text generation | Mistral AI Large Language Models" data-rh="true"><meta name="description" content="The Mistral models allows you to chat with a model that has been fine-tuned to follow" data-rh="true"><meta property="og:description" content="The Mistral models allows you to chat with a model that has been fine-tuned to follow" data-rh="true"></head>
<body class="" data-rh="class" style="overflow: visible;">
<script>!function(){function t(t){document.documentElement.setAttribute("data-theme",t)}var e=function(){try{return new URLSearchParams(window.location.search).get("docusaurus-theme")}catch(t){}}()||function(){try{return localStorage.getItem("theme")}catch(t){}}();null!==e?t(e):window.matchMedia("(prefers-color-scheme: dark)").matches?t("dark"):(window.matchMedia("(prefers-color-scheme: light)").matches,t("light"))}(),function(){try{const c=new URLSearchParams(window.location.search).entries();for(var[t,e]of c)if(t.startsWith("docusaurus-data-")){var a=t.replace("docusaurus-data-","data-");document.documentElement.setAttribute(a,e)}}catch(t){}}()</script><div id="__docusaurus"><div role="region" aria-label="Skip to main content"><a class="skipToContent_yC05" href="https://docs.mistral.ai/capabilities/completion/#__docusaurus_skipToContent_fallback">Skip to main content</a></div><nav aria-label="Main" class="navbar navbar--fixed-top"><div class="navbar__inner"><div class="navbar__items"><button aria-label="Toggle navigation bar" aria-expanded="false" class="navbar__toggle clean-btn" type="button"><svg width="30" height="30" viewBox="0 0 30 30" aria-hidden="true"><path stroke="currentColor" stroke-linecap="round" stroke-miterlimit="10" stroke-width="2" d="M4 7h22M4 15h22M4 23h22"></path></svg></button><a href="https://mistral.ai/" target="_self" rel="noopener noreferrer" class="navbar__brand"><div class="navbar__logo"><img src="./Text generation _ Mistral AI Large Language Models_files/logo-dark.svg" alt="Mistral AI Logo" class="themedComponent_hPDO themedComponent--dark_l222"></div></a><a href="https://chat.mistral.ai/" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">Le Chat</a><a href="https://console.mistral.ai/" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">La Plateforme</a><a aria-current="page" class="navbar__item navbar__link navbar__link--active" href="https://docs.mistral.ai/">Docs</a><a class="navbar__item navbar__link" href="https://docs.mistral.ai/api/">API</a></div><div class="navbar__items navbar__items--right"><a href="https://github.com/mistralai/" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">GitHub<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_yPTG"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a><a href="https://discord.gg/mistralai" target="_blank" rel="noopener noreferrer" class="navbar__item navbar__link">Discord<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_yPTG"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a><div class="toggle_NB6N colorModeToggle_q4rJ"><button class="clean-btn toggleButton_pYLp" type="button" title="Switch between dark and light mode (currently light mode)" aria-label="Switch between dark and light mode (currently light mode)" aria-live="polite"><svg viewBox="0 0 24 24" width="24" height="24" class="lightToggleIcon_mVu4"><path fill="currentColor" d="M12,9c1.65,0,3,1.35,3,3s-1.35,3-3,3s-3-1.35-3-3S10.35,9,12,9 M12,7c-2.76,0-5,2.24-5,5s2.24,5,5,5s5-2.24,5-5 S14.76,7,12,7L12,7z M2,13l2,0c0.55,0,1-0.45,1-1s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S1.45,13,2,13z M20,13l2,0c0.55,0,1-0.45,1-1 s-0.45-1-1-1l-2,0c-0.55,0-1,0.45-1,1S19.45,13,20,13z M11,2v2c0,0.55,0.45,1,1,1s1-0.45,1-1V2c0-0.55-0.45-1-1-1S11,1.45,11,2z M11,20v2c0,0.55,0.45,1,1,1s1-0.45,1-1v-2c0-0.55-0.45-1-1-1C11.45,19,11,19.45,11,20z M5.99,4.58c-0.39-0.39-1.03-0.39-1.41,0 c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0s0.39-1.03,0-1.41L5.99,4.58z M18.36,16.95 c-0.39-0.39-1.03-0.39-1.41,0c-0.39,0.39-0.39,1.03,0,1.41l1.06,1.06c0.39,0.39,1.03,0.39,1.41,0c0.39-0.39,0.39-1.03,0-1.41 L18.36,16.95z M19.42,5.99c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06c-0.39,0.39-0.39,1.03,0,1.41 s1.03,0.39,1.41,0L19.42,5.99z M7.05,18.36c0.39-0.39,0.39-1.03,0-1.41c-0.39-0.39-1.03-0.39-1.41,0l-1.06,1.06 c-0.39,0.39-0.39,1.03,0,1.41s1.03,0.39,1.41,0L7.05,18.36z"></path></svg><svg viewBox="0 0 24 24" width="24" height="24" class="darkToggleIcon_zXrM"><path fill="currentColor" d="M9.37,5.51C9.19,6.15,9.1,6.82,9.1,7.5c0,4.08,3.32,7.4,7.4,7.4c0.68,0,1.35-0.09,1.99-0.27C17.45,17.19,14.93,19,12,19 c-3.86,0-7-3.14-7-7C5,9.07,6.81,6.55,9.37,5.51z M12,3c-4.97,0-9,4.03-9,9s4.03,9,9,9s9-4.03,9-9c0-0.46-0.04-0.92-0.1-1.36 c-0.98,1.37-2.58,2.26-4.4,2.26c-2.98,0-5.4-2.42-5.4-5.4c0-1.81,0.89-3.42,2.26-4.4C12.92,3.04,12.46,3,12,3L12,3z"></path></svg></button></div><div class="navbarSearchContainer_cqyf"><div class="navbar__search"><span aria-label="expand searchbar" role="button" class="search-icon" tabindex="0"></span><span class="algolia-autocomplete" style="position: relative; display: inline-block; direction: ltr;"><input id="search_input_react" type="search" placeholder="Search Ctrl+K" aria-label="Search" class="navbar__search-input search-bar ds-input" autocomplete="off" spellcheck="false" role="combobox" aria-autocomplete="list" aria-expanded="false" aria-owns="algolia-autocomplete-listbox-0" dir="auto" style="position: relative; vertical-align: top;"><pre aria-hidden="true" style="position: absolute; visibility: hidden; white-space: pre; font-family: Arial; font-size: 12.96px; font-style: normal; font-variant: normal; font-weight: 400; word-spacing: 0px; letter-spacing: normal; text-indent: 0px; text-rendering: auto; text-transform: none;"></pre><span class="ds-dropdown-menu" role="listbox" id="algolia-autocomplete-listbox-0" style="position: absolute; top: 100%; z-index: 100; display: none; left: 0px; right: auto;"><div class="ds-dataset-1"></div></span></span></div></div></div></div><div role="presentation" class="navbar-sidebar__backdrop"></div></nav><div id="__docusaurus_skipToContent_fallback" class="main-wrapper mainWrapper_pZGw"><div class="docsWrapper_J1wO"><button aria-label="Scroll back to top" class="clean-btn theme-back-to-top-button backToTopButton_nC4L" type="button"></button><div class="docRoot_D4cR"><aside class="theme-doc-sidebar-container docSidebarContainer_Z9Rq"><div class="sidebarViewport__dLE"><div class="sidebar_ava_"><nav aria-label="Docs sidebar" class="menu thin-scrollbar menu_fHBh"><ul class="theme-doc-sidebar-menu menu__list"><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu-label">Getting Started</li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="https://docs.mistral.ai/">Introduction</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="https://docs.mistral.ai/getting-started/quickstart/">Quickstart</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="https://docs.mistral.ai/getting-started/models/">Models</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="https://docs.mistral.ai/getting-started/open_weight_models/">Open-weight models</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="https://docs.mistral.ai/getting-started/clients/">Clients</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="https://docs.mistral.ai/getting-started/changelog/">Changelog</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="https://docs.mistral.ai/getting-started/glossary/">Glossary</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu-label margin-top--md">Capabilities</li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link menu__link--active" href="https://docs.mistral.ai/capabilities/completion/" aria-current="page">Text generation</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="https://docs.mistral.ai/capabilities/embeddings/">Embeddings</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="https://docs.mistral.ai/capabilities/function_calling/">Function calling</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="https://docs.mistral.ai/capabilities/json_mode/">JSON mode</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="https://docs.mistral.ai/capabilities/guardrailing/">Guardrailing</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu-label margin-top--md">Deployment</li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="https://docs.mistral.ai/deployment/la_plateforme/">La Plateforme</a></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" href="https://docs.mistral.ai/deployment/cloud/overview/">Cloud</a><button aria-label="Expand sidebar category 'Cloud'" aria-expanded="false" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-category theme-doc-sidebar-item-category-level-1 menu__list-item menu__list-item--collapsed"><div class="menu__list-item-collapsible"><a class="menu__link menu__link--sublist" href="https://docs.mistral.ai/deployment/self-deployment/overview/">Self-deployment</a><button aria-label="Expand sidebar category 'Self-deployment'" aria-expanded="false" type="button" class="clean-btn menu__caret"></button></div></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu-label margin-top--md">Guides</li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="https://docs.mistral.ai/guides/prompting_capabilities/">Prompting capabilities</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="https://docs.mistral.ai/guides/rag/">Basic RAG</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item hidden"><a class="menu__link" href="https://docs.mistral.ai/guides/evaluation/">Evaluation</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="https://docs.mistral.ai/guides/tokenization/">Tokenization</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="https://docs.mistral.ai/guides/resources/">Other resources</a></li><li class="theme-doc-sidebar-item-link theme-doc-sidebar-item-link-level-1 menu__list-item"><a class="menu__link" href="https://docs.mistral.ai/guides/contribute/">How to contribute</a></li></ul></nav></div></div></aside><main class="docMainContainer_Bgup"><div class="container padding-top--md padding-bottom--lg"><div class="row"><div class="col docItemCol_Td3C"><div class="docItemContainer_REoc"><article><nav class="theme-doc-breadcrumbs breadcrumbsContainer_E2Xs" aria-label="Breadcrumbs"><ul class="breadcrumbs" itemscope="" itemtype="https://schema.org/BreadcrumbList"><li class="breadcrumbs__item"><a aria-label="Home page" class="breadcrumbs__link" href="https://docs.mistral.ai/"><svg viewBox="0 0 24 24" class="breadcrumbHomeIcon_M2Ot"><path d="M10 19v-5h4v5c0 .55.45 1 1 1h3c.55 0 1-.45 1-1v-7h1.7c.46 0 .68-.57.33-.87L12.67 3.6c-.38-.34-.96-.34-1.34 0l-8.36 7.53c-.34.3-.13.87.33.87H5v7c0 .55.45 1 1 1h3c.55 0 1-.45 1-1z" fill="currentColor"></path></svg></a></li><li itemscope="" itemprop="itemListElement" itemtype="https://schema.org/ListItem" class="breadcrumbs__item breadcrumbs__item--active"><span class="breadcrumbs__link" itemprop="name">Text generation</span><meta itemprop="position" content="1"></li></ul></nav><div class="tocCollapsible_QOC6 theme-doc-toc-mobile tocMobile_EF9C"><button type="button" class="clean-btn tocCollapsibleButton_cni4">On this page</button></div><div class="theme-doc-markdown markdown"><header><h1>Text generation</h1></header><p>The Mistral models allows you to chat with a model that has been fine-tuned to follow
instructions and respond to natural lanugage prompts.
A prompt is the input that you provide to the Mistral model.
It can come in various forms, such as asking a question, giving an instruction,
or providing a few examples of the task you want the model to perform.
Based on the prompt, the Mistral model generates a text output as a response.</p>
<p>The chat completion API accepts a list of chat messages as input and
generates a response. This response is in the form of a new chat message with
the role "assistant" as output.</p>
<div class="tabs-container tabList_t0ny"><ul role="tablist" aria-orientation="horizontal" class="tabs"><li role="tab" tabindex="0" aria-selected="true" class="tabs__item tabItem_uTIH tabs__item--active">python</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_uTIH">javascript</li><li role="tab" tabindex="-1" aria-selected="false" class="tabs__item tabItem_uTIH">curl</li></ul><div class="margin-top--md"><div role="tabpanel" class="tabItem_Qjpd"><h3 class="anchor anchorWithStickyNavbar_r6n_" id="no-streaming">No streaming<a href="https://docs.mistral.ai/capabilities/completion/#no-streaming" class="hash-link" aria-label="Direct link to No streaming" title="Direct link to No streaming"></a></h3><div class="language-python codeBlockContainer_YMIx theme-code-block" style="--prism-color: #f8f8f2; --prism-background-color: #272822;"><div class="codeBlockContent_l9UM"><pre tabindex="0" class="prism-code language-python codeBlock_iAC8 thin-scrollbar" style="color: rgb(248, 248, 242); background-color: rgb(39, 40, 34);"><code class="codeBlockLines_jCwv"><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token keyword" style="color: rgb(102, 217, 239);">from</span><span class="token plain"> mistralai</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">client </span><span class="token keyword" style="color: rgb(102, 217, 239);">import</span><span class="token plain"> MistralClient</span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token keyword" style="color: rgb(102, 217, 239);">from</span><span class="token plain"> mistralai</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">models</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">chat_completion </span><span class="token keyword" style="color: rgb(102, 217, 239);">import</span><span class="token plain"> ChatMessage</span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain">api_key </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> os</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">environ</span><span class="token punctuation" style="color: rgb(248, 248, 242);">[</span><span class="token string" style="color: rgb(166, 226, 46);">"MISTRAL_API_KEY"</span><span class="token punctuation" style="color: rgb(248, 248, 242);">]</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain">model </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> </span><span class="token string" style="color: rgb(166, 226, 46);">"mistral-large-latest"</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain">client </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> MistralClient</span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token plain">api_key</span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain">api_key</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain">messages </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> </span><span class="token punctuation" style="color: rgb(248, 248, 242);">[</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"> ChatMessage</span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token plain">role</span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token string" style="color: rgb(166, 226, 46);">"user"</span><span class="token punctuation" style="color: rgb(248, 248, 242);">,</span><span class="token plain"> content</span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token string" style="color: rgb(166, 226, 46);">"What is the best French cheese?"</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token punctuation" style="color: rgb(248, 248, 242);">]</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token comment" style="color: rgb(130, 146, 162); font-style: italic;"># No streaming</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain">chat_response </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> client</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">chat</span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"> model</span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain">model</span><span class="token punctuation" style="color: rgb(248, 248, 242);">,</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"> messages</span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain">messages</span><span class="token punctuation" style="color: rgb(248, 248, 242);">,</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token keyword" style="color: rgb(102, 217, 239);">print</span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token plain">chat_response</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">choices</span><span class="token punctuation" style="color: rgb(248, 248, 242);">[</span><span class="token number" style="color: rgb(174, 129, 255);">0</span><span class="token punctuation" style="color: rgb(248, 248, 242);">]</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">message</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">content</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><br></span></code></pre><div class="buttonGroup_k3YM"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_Lgzn" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_SOZX"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_sALW"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><h3 class="anchor anchorWithStickyNavbar_r6n_" id="with-streaming">With streaming<a href="https://docs.mistral.ai/capabilities/completion/#with-streaming" class="hash-link" aria-label="Direct link to With streaming" title="Direct link to With streaming"></a></h3><div class="language-python codeBlockContainer_YMIx theme-code-block" style="--prism-color: #f8f8f2; --prism-background-color: #272822;"><div class="codeBlockContent_l9UM"><pre tabindex="0" class="prism-code language-python codeBlock_iAC8 thin-scrollbar" style="color: rgb(248, 248, 242); background-color: rgb(39, 40, 34);"><code class="codeBlockLines_jCwv"><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token keyword" style="color: rgb(102, 217, 239);">from</span><span class="token plain"> mistralai</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">client </span><span class="token keyword" style="color: rgb(102, 217, 239);">import</span><span class="token plain"> MistralClient</span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token keyword" style="color: rgb(102, 217, 239);">from</span><span class="token plain"> mistralai</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">models</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">chat_completion </span><span class="token keyword" style="color: rgb(102, 217, 239);">import</span><span class="token plain"> ChatMessage</span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain">api_key </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> os</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">environ</span><span class="token punctuation" style="color: rgb(248, 248, 242);">[</span><span class="token string" style="color: rgb(166, 226, 46);">"MISTRAL_API_KEY"</span><span class="token punctuation" style="color: rgb(248, 248, 242);">]</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain">model </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> </span><span class="token string" style="color: rgb(166, 226, 46);">"mistral-large-latest"</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain">client </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> MistralClient</span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token plain">api_key</span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain">api_key</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain">messages </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> </span><span class="token punctuation" style="color: rgb(248, 248, 242);">[</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"> ChatMessage</span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token plain">role</span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token string" style="color: rgb(166, 226, 46);">"user"</span><span class="token punctuation" style="color: rgb(248, 248, 242);">,</span><span class="token plain"> content</span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token string" style="color: rgb(166, 226, 46);">"What is the best French cheese?"</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token punctuation" style="color: rgb(248, 248, 242);">]</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token comment" style="color: rgb(130, 146, 162); font-style: italic;"># With streaming</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain">stream_response </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> client</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">chat_stream</span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token plain">model</span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain">model</span><span class="token punctuation" style="color: rgb(248, 248, 242);">,</span><span class="token plain"> messages</span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain">messages</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token keyword" style="color: rgb(102, 217, 239);">for</span><span class="token plain"> chunk </span><span class="token keyword" style="color: rgb(102, 217, 239);">in</span><span class="token plain"> stream_response</span><span class="token punctuation" style="color: rgb(248, 248, 242);">:</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"> </span><span class="token keyword" style="color: rgb(102, 217, 239);">print</span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token plain">chunk</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">choices</span><span class="token punctuation" style="color: rgb(248, 248, 242);">[</span><span class="token number" style="color: rgb(174, 129, 255);">0</span><span class="token punctuation" style="color: rgb(248, 248, 242);">]</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">delta</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">content</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><br></span></code></pre><div class="buttonGroup_k3YM"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_Lgzn" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_SOZX"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_sALW"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><h3 class="anchor anchorWithStickyNavbar_r6n_" id="with-async">With async<a href="https://docs.mistral.ai/capabilities/completion/#with-async" class="hash-link" aria-label="Direct link to With async" title="Direct link to With async"></a></h3><div class="language-python codeBlockContainer_YMIx theme-code-block" style="--prism-color: #f8f8f2; --prism-background-color: #272822;"><div class="codeBlockContent_l9UM"><pre tabindex="0" class="prism-code language-python codeBlock_iAC8 thin-scrollbar" style="color: rgb(248, 248, 242); background-color: rgb(39, 40, 34);"><code class="codeBlockLines_jCwv"><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token keyword" style="color: rgb(102, 217, 239);">from</span><span class="token plain"> mistralai</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">async_client </span><span class="token keyword" style="color: rgb(102, 217, 239);">import</span><span class="token plain"> MistralAsyncClient</span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token keyword" style="color: rgb(102, 217, 239);">from</span><span class="token plain"> mistralai</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">models</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">chat_completion </span><span class="token keyword" style="color: rgb(102, 217, 239);">import</span><span class="token plain"> ChatMessage</span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain">api_key </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> os</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">environ</span><span class="token punctuation" style="color: rgb(248, 248, 242);">[</span><span class="token string" style="color: rgb(166, 226, 46);">"MISTRAL_API_KEY"</span><span class="token punctuation" style="color: rgb(248, 248, 242);">]</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain">model </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> </span><span class="token string" style="color: rgb(166, 226, 46);">"mistral-large-latest"</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain">client </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> MistralAsyncClient</span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token plain">api_key</span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain">api_key</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain">messages </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> </span><span class="token punctuation" style="color: rgb(248, 248, 242);">[</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"> ChatMessage</span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token plain">role</span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token string" style="color: rgb(166, 226, 46);">"user"</span><span class="token punctuation" style="color: rgb(248, 248, 242);">,</span><span class="token plain"> content</span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token string" style="color: rgb(166, 226, 46);">"What is the best French cheese?"</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token punctuation" style="color: rgb(248, 248, 242);">]</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token comment" style="color: rgb(130, 146, 162); font-style: italic;"># With async</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain">async_response </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> client</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">chat_stream</span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token plain">model</span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain">model</span><span class="token punctuation" style="color: rgb(248, 248, 242);">,</span><span class="token plain"> messages</span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain">messages</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token keyword" style="color: rgb(102, 217, 239);">async</span><span class="token plain"> </span><span class="token keyword" style="color: rgb(102, 217, 239);">for</span><span class="token plain"> chunk </span><span class="token keyword" style="color: rgb(102, 217, 239);">in</span><span class="token plain"> async_response</span><span class="token punctuation" style="color: rgb(248, 248, 242);">:</span><span class="token plain"> </span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"> </span><span class="token keyword" style="color: rgb(102, 217, 239);">print</span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token plain">chunk</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">choices</span><span class="token punctuation" style="color: rgb(248, 248, 242);">[</span><span class="token number" style="color: rgb(174, 129, 255);">0</span><span class="token punctuation" style="color: rgb(248, 248, 242);">]</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">delta</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token plain">content</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><br></span></code></pre><div class="buttonGroup_k3YM"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_Lgzn" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_SOZX"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_sALW"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div></div><div role="tabpanel" class="tabItem_Qjpd" hidden=""><p><strong>No streaming</strong></p><div class="language-javascript codeBlockContainer_YMIx theme-code-block" style="--prism-color: #f8f8f2; --prism-background-color: #272822;"><div class="codeBlockContent_l9UM"><pre tabindex="0" class="prism-code language-javascript codeBlock_iAC8 thin-scrollbar" style="color: rgb(248, 248, 242); background-color: rgb(39, 40, 34);"><code class="codeBlockLines_jCwv"><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token keyword module" style="color: rgb(102, 217, 239);">import</span><span class="token plain"> </span><span class="token imports maybe-class-name">MistralClient</span><span class="token plain"> </span><span class="token keyword module" style="color: rgb(102, 217, 239);">from</span><span class="token plain"> </span><span class="token string" style="color: rgb(166, 226, 46);">'@mistralai/mistralai'</span><span class="token punctuation" style="color: rgb(248, 248, 242);">;</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token keyword" style="color: rgb(102, 217, 239);">const</span><span class="token plain"> apiKey </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> process</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token property-access">env</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token constant" style="color: rgb(230, 219, 116);">MISTRAL_API_KEY</span><span class="token punctuation" style="color: rgb(248, 248, 242);">;</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token keyword" style="color: rgb(102, 217, 239);">const</span><span class="token plain"> client </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> </span><span class="token keyword" style="color: rgb(102, 217, 239);">new</span><span class="token plain"> </span><span class="token class-name" style="color: rgb(230, 219, 116);">MistralClient</span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token plain">apiKey</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><span class="token punctuation" style="color: rgb(248, 248, 242);">;</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token keyword" style="color: rgb(102, 217, 239);">const</span><span class="token plain"> chatResponse </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> </span><span class="token keyword control-flow" style="color: rgb(102, 217, 239);">await</span><span class="token plain"> client</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token method function property-access" style="color: rgb(230, 219, 116);">chat</span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token punctuation" style="color: rgb(248, 248, 242);">{</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"> </span><span class="token literal-property property" style="color: rgb(249, 38, 114);">model</span><span class="token operator" style="color: rgb(102, 217, 239);">:</span><span class="token plain"> </span><span class="token string" style="color: rgb(166, 226, 46);">'mistral-large-latest'</span><span class="token punctuation" style="color: rgb(248, 248, 242);">,</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"> </span><span class="token literal-property property" style="color: rgb(249, 38, 114);">messages</span><span class="token operator" style="color: rgb(102, 217, 239);">:</span><span class="token plain"> </span><span class="token punctuation" style="color: rgb(248, 248, 242);">[</span><span class="token punctuation" style="color: rgb(248, 248, 242);">{</span><span class="token literal-property property" style="color: rgb(249, 38, 114);">role</span><span class="token operator" style="color: rgb(102, 217, 239);">:</span><span class="token plain"> </span><span class="token string" style="color: rgb(166, 226, 46);">'user'</span><span class="token punctuation" style="color: rgb(248, 248, 242);">,</span><span class="token plain"> </span><span class="token literal-property property" style="color: rgb(249, 38, 114);">content</span><span class="token operator" style="color: rgb(102, 217, 239);">:</span><span class="token plain"> </span><span class="token string" style="color: rgb(166, 226, 46);">'What is the best French cheese?'</span><span class="token punctuation" style="color: rgb(248, 248, 242);">}</span><span class="token punctuation" style="color: rgb(248, 248, 242);">]</span><span class="token punctuation" style="color: rgb(248, 248, 242);">,</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token punctuation" style="color: rgb(248, 248, 242);">}</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><span class="token punctuation" style="color: rgb(248, 248, 242);">;</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token console class-name" style="color: rgb(230, 219, 116);">console</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token method function property-access" style="color: rgb(230, 219, 116);">log</span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token string" style="color: rgb(166, 226, 46);">'Chat:'</span><span class="token punctuation" style="color: rgb(248, 248, 242);">,</span><span class="token plain"> chatResponse</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token property-access">choices</span><span class="token punctuation" style="color: rgb(248, 248, 242);">[</span><span class="token number" style="color: rgb(174, 129, 255);">0</span><span class="token punctuation" style="color: rgb(248, 248, 242);">]</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token property-access">message</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token property-access">content</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><span class="token punctuation" style="color: rgb(248, 248, 242);">;</span><br></span></code></pre><div class="buttonGroup_k3YM"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_Lgzn" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_SOZX"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_sALW"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><p><strong>With streaming</strong></p><div class="language-javascript codeBlockContainer_YMIx theme-code-block" style="--prism-color: #f8f8f2; --prism-background-color: #272822;"><div class="codeBlockContent_l9UM"><pre tabindex="0" class="prism-code language-javascript codeBlock_iAC8 thin-scrollbar" style="color: rgb(248, 248, 242); background-color: rgb(39, 40, 34);"><code class="codeBlockLines_jCwv"><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token keyword module" style="color: rgb(102, 217, 239);">import</span><span class="token plain"> </span><span class="token imports maybe-class-name">MistralClient</span><span class="token plain"> </span><span class="token keyword module" style="color: rgb(102, 217, 239);">from</span><span class="token plain"> </span><span class="token string" style="color: rgb(166, 226, 46);">'@mistralai/mistralai'</span><span class="token punctuation" style="color: rgb(248, 248, 242);">;</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token keyword" style="color: rgb(102, 217, 239);">const</span><span class="token plain"> apiKey </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> process</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token property-access">env</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token constant" style="color: rgb(230, 219, 116);">MISTRAL_API_KEY</span><span class="token punctuation" style="color: rgb(248, 248, 242);">;</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token keyword" style="color: rgb(102, 217, 239);">const</span><span class="token plain"> client </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> </span><span class="token keyword" style="color: rgb(102, 217, 239);">new</span><span class="token plain"> </span><span class="token class-name" style="color: rgb(230, 219, 116);">MistralClient</span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token plain">apiKey</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><span class="token punctuation" style="color: rgb(248, 248, 242);">;</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token keyword" style="color: rgb(102, 217, 239);">const</span><span class="token plain"> chatStreamResponse </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> </span><span class="token keyword control-flow" style="color: rgb(102, 217, 239);">await</span><span class="token plain"> client</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token method function property-access" style="color: rgb(230, 219, 116);">chatStream</span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token punctuation" style="color: rgb(248, 248, 242);">{</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"> </span><span class="token literal-property property" style="color: rgb(249, 38, 114);">model</span><span class="token operator" style="color: rgb(102, 217, 239);">:</span><span class="token plain"> </span><span class="token string" style="color: rgb(166, 226, 46);">'mistral-tiny'</span><span class="token punctuation" style="color: rgb(248, 248, 242);">,</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"> </span><span class="token literal-property property" style="color: rgb(249, 38, 114);">messages</span><span class="token operator" style="color: rgb(102, 217, 239);">:</span><span class="token plain"> </span><span class="token punctuation" style="color: rgb(248, 248, 242);">[</span><span class="token punctuation" style="color: rgb(248, 248, 242);">{</span><span class="token literal-property property" style="color: rgb(249, 38, 114);">role</span><span class="token operator" style="color: rgb(102, 217, 239);">:</span><span class="token plain"> </span><span class="token string" style="color: rgb(166, 226, 46);">'user'</span><span class="token punctuation" style="color: rgb(248, 248, 242);">,</span><span class="token plain"> </span><span class="token literal-property property" style="color: rgb(249, 38, 114);">content</span><span class="token operator" style="color: rgb(102, 217, 239);">:</span><span class="token plain"> </span><span class="token string" style="color: rgb(166, 226, 46);">'What is the best French cheese?'</span><span class="token punctuation" style="color: rgb(248, 248, 242);">}</span><span class="token punctuation" style="color: rgb(248, 248, 242);">]</span><span class="token punctuation" style="color: rgb(248, 248, 242);">,</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token punctuation" style="color: rgb(248, 248, 242);">}</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><span class="token punctuation" style="color: rgb(248, 248, 242);">;</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain" style="display: inline-block;"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token console class-name" style="color: rgb(230, 219, 116);">console</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token method function property-access" style="color: rgb(230, 219, 116);">log</span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token string" style="color: rgb(166, 226, 46);">'Chat Stream:'</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><span class="token punctuation" style="color: rgb(248, 248, 242);">;</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token keyword control-flow" style="color: rgb(102, 217, 239);">for</span><span class="token plain"> </span><span class="token keyword control-flow" style="color: rgb(102, 217, 239);">await</span><span class="token plain"> </span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token keyword" style="color: rgb(102, 217, 239);">const</span><span class="token plain"> chunk </span><span class="token keyword" style="color: rgb(102, 217, 239);">of</span><span class="token plain"> chatStreamResponse</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><span class="token plain"> </span><span class="token punctuation" style="color: rgb(248, 248, 242);">{</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"> </span><span class="token keyword control-flow" style="color: rgb(102, 217, 239);">if</span><span class="token plain"> </span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token plain">chunk</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token property-access">choices</span><span class="token punctuation" style="color: rgb(248, 248, 242);">[</span><span class="token number" style="color: rgb(174, 129, 255);">0</span><span class="token punctuation" style="color: rgb(248, 248, 242);">]</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token property-access">delta</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token property-access">content</span><span class="token plain"> </span><span class="token operator" style="color: rgb(102, 217, 239);">!==</span><span class="token plain"> </span><span class="token keyword nil" style="color: rgb(102, 217, 239);">undefined</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><span class="token plain"> </span><span class="token punctuation" style="color: rgb(248, 248, 242);">{</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"> </span><span class="token keyword" style="color: rgb(102, 217, 239);">const</span><span class="token plain"> streamText </span><span class="token operator" style="color: rgb(102, 217, 239);">=</span><span class="token plain"> chunk</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token property-access">choices</span><span class="token punctuation" style="color: rgb(248, 248, 242);">[</span><span class="token number" style="color: rgb(174, 129, 255);">0</span><span class="token punctuation" style="color: rgb(248, 248, 242);">]</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token property-access">delta</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token property-access">content</span><span class="token punctuation" style="color: rgb(248, 248, 242);">;</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"> process</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token property-access">stdout</span><span class="token punctuation" style="color: rgb(248, 248, 242);">.</span><span class="token method function property-access" style="color: rgb(230, 219, 116);">write</span><span class="token punctuation" style="color: rgb(248, 248, 242);">(</span><span class="token plain">streamText</span><span class="token punctuation" style="color: rgb(248, 248, 242);">)</span><span class="token punctuation" style="color: rgb(248, 248, 242);">;</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"> </span><span class="token punctuation" style="color: rgb(248, 248, 242);">}</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"></span><span class="token punctuation" style="color: rgb(248, 248, 242);">}</span><br></span></code></pre><div class="buttonGroup_k3YM"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_Lgzn" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_SOZX"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_sALW"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div></div><div role="tabpanel" class="tabItem_Qjpd" hidden=""><div class="language-bash codeBlockContainer_YMIx theme-code-block" style="--prism-color: #f8f8f2; --prism-background-color: #272822;"><div class="codeBlockContent_l9UM"><pre tabindex="0" class="prism-code language-bash codeBlock_iAC8 thin-scrollbar" style="color: rgb(248, 248, 242); background-color: rgb(39, 40, 34);"><code class="codeBlockLines_jCwv"><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token function" style="color: rgb(230, 219, 116);">curl</span><span class="token plain"> </span><span class="token parameter variable" style="color: rgb(248, 248, 242);">--location</span><span class="token plain"> </span><span class="token string" style="color: rgb(166, 226, 46);">"https://api.mistral.ai/v1/chat/completions"</span><span class="token plain"> </span><span class="token punctuation" style="color: rgb(248, 248, 242);">\</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"> </span><span class="token parameter variable" style="color: rgb(248, 248, 242);">--header</span><span class="token plain"> </span><span class="token string" style="color: rgb(166, 226, 46);">'Content-Type: application/json'</span><span class="token plain"> </span><span class="token punctuation" style="color: rgb(248, 248, 242);">\</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"> </span><span class="token parameter variable" style="color: rgb(248, 248, 242);">--header</span><span class="token plain"> </span><span class="token string" style="color: rgb(166, 226, 46);">'Accept: application/json'</span><span class="token plain"> </span><span class="token punctuation" style="color: rgb(248, 248, 242);">\</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"> </span><span class="token parameter variable" style="color: rgb(248, 248, 242);">--header</span><span class="token plain"> </span><span class="token string" style="color: rgb(166, 226, 46);">"Authorization: Bearer </span><span class="token string variable" style="color: rgb(248, 248, 242);">$MISTRAL_API_KEY</span><span class="token string" style="color: rgb(166, 226, 46);">"</span><span class="token plain"> </span><span class="token punctuation" style="color: rgb(248, 248, 242);">\</span><span class="token plain"></span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token plain"> </span><span class="token parameter variable" style="color: rgb(248, 248, 242);">--data</span><span class="token plain"> </span><span class="token string" style="color: rgb(166, 226, 46);">'{</span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token string" style="color: rgb(166, 226, 46);"> "model": "mistral-large-latest",</span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token string" style="color: rgb(166, 226, 46);"> "messages": [</span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token string" style="color: rgb(166, 226, 46);"> {</span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token string" style="color: rgb(166, 226, 46);"> "role": "user",</span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token string" style="color: rgb(166, 226, 46);"> "content": "What is the best French cheese?"</span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token string" style="color: rgb(166, 226, 46);"> }</span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token string" style="color: rgb(166, 226, 46);"> ]</span><br></span><span class="token-line" style="color: rgb(248, 248, 242);"><span class="token string" style="color: rgb(166, 226, 46);"> }'</span><br></span></code></pre><div class="buttonGroup_k3YM"><button type="button" aria-label="Copy code to clipboard" title="Copy" class="clean-btn"><span class="copyButtonIcons_Lgzn" aria-hidden="true"><svg viewBox="0 0 24 24" class="copyButtonIcon_SOZX"><path fill="currentColor" d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg viewBox="0 0 24 24" class="copyButtonSuccessIcon_sALW"><path fill="currentColor" d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div></div></div></div>
<h2 class="anchor anchorWithStickyNavbar_r6n_" id="chat-messages">Chat messages<a href="https://docs.mistral.ai/capabilities/completion/#chat-messages" class="hash-link" aria-label="Direct link to Chat messages" title="Direct link to Chat messages"></a></h2>
<p>Chat messages (<code>messages</code>) are a collection of prompts or messages, with each message having a specific role assigned to it, such as "system," "user," "assistant," or "tool."</p>
<ul>
<li>A <em>system message</em> is an <em>optional</em> message that sets the behavior and context for an AI assistant in a
conversation, such as modifying its personality or providing specific instructions. A system message can
include task instructions, personality traits, contextual information, creativity constraints, and other
relevant guidelines to help the AI better understand and respond to the user's input. See the
<a href="https://docs.mistral.ai/api/">API reference</a> for explanations on how to set up a custom system prompt.</li>
<li>A <em>user message</em> is a message sent from the perspective of the human in a conversation with an AI assistant.
It typically provides a request, question, or comment that the AI assistant should respond to. User prompts
allow the human to initiate and guide the conversation, and they can be used to request information, ask for
help, provide feedback, or engage in other types of interaction with the AI.</li>
<li>An <em>assistant message</em> is a message sent by the AI assistant back to the user. It is usually meant to reply to a
previous user message by following its instructions, but you can also find it at the beginning of a conversation,
for example to greet the user.</li>
<li>A <em>tool message</em> only appears in the context of <em>function calling</em>, it is used at the final response formulation
step when the model has to format the tool call's output for the user. To learn more about function calling, see
the <a href="https://docs.mistral.ai/capabilities/function_calling/">guide</a>.</li>
</ul>
<div class="theme-admonition theme-admonition-tip admonition_pc7e alert alert--success"><div class="admonitionHeading_uRbl"><span class="admonitionIcon_iIP0"><svg viewBox="0 0 12 16"><path fill-rule="evenodd" d="M6.5 0C3.48 0 1 2.19 1 5c0 .92.55 2.25 1 3 1.34 2.25 1.78 2.78 2 4v1h5v-1c.22-1.22.66-1.75 2-4 .45-.75 1-2.08 1-3 0-2.81-2.48-5-5.5-5zm3.64 7.48c-.25.44-.47.8-.67 1.11-.86 1.41-1.25 2.06-1.45 3.23-.02.05-.02.11-.02.17H5c0-.06 0-.13-.02-.17-.2-1.17-.59-1.83-1.45-3.23-.2-.31-.42-.67-.67-1.11C2.44 6.78 2 5.65 2 5c0-2.2 2.02-4 4.5-4 1.22 0 2.36.42 3.22 1.19C10.55 2.94 11 3.94 11 5c0 .66-.44 1.78-.86 2.48zM4 14h5c-.23 1.14-1.3 2-2.5 2s-2.27-.86-2.5-2z"></path></svg></span>When to use <code>user</code> prompt vs. <code>system</code> message then <code>user</code> message?</div><div class="admonitionContent_haSQ"><ul>
<li>You can either combine your <code>system</code> message and <code>user</code> message into a single <code>user</code> message or separate them into two distinct messages.</li>
<li>We recommend you experiment with both ways to determine which one works better for your specific use case.</li>
</ul></div></div>
<p>We also allow a convenient <code>safe_prompt</code> flag to force chat completion to be moderated against sensitive content (see <a href="https://docs.mistral.ai/capabilities/guardrailing/">Guardrailing</a>).</p></div></article><nav class="pagination-nav docusaurus-mt-lg" aria-label="Docs pages"><a class="pagination-nav__link pagination-nav__link--prev" href="https://docs.mistral.ai/getting-started/glossary/"><div class="pagination-nav__sublabel">Previous</div><div class="pagination-nav__label">Glossary</div></a><a class="pagination-nav__link pagination-nav__link--next" href="https://docs.mistral.ai/capabilities/embeddings/"><div class="pagination-nav__sublabel">Next</div><div class="pagination-nav__label">Embeddings</div></a></nav></div></div><div class="col col--3"><div class="tableOfContents_dRcY thin-scrollbar theme-doc-toc-desktop"><ul class="table-of-contents table-of-contents__left-border"><li><a href="https://docs.mistral.ai/capabilities/completion/#no-streaming" class="table-of-contents__link toc-highlight">No streaming</a></li><li><a href="https://docs.mistral.ai/capabilities/completion/#with-streaming" class="table-of-contents__link toc-highlight">With streaming</a></li><li><a href="https://docs.mistral.ai/capabilities/completion/#with-async" class="table-of-contents__link toc-highlight">With async</a></li><li><a href="https://docs.mistral.ai/capabilities/completion/#chat-messages" class="table-of-contents__link toc-highlight">Chat messages</a></li></ul></div></div></div></div></main></div></div></div><footer class="footer footer--dark"><div class="container container-fluid"><div class="row footer__links"><div class="col footer__col"><div class="footer__title">Documentation</div><ul class="footer__items clean-list"><li class="footer__item"><a class="footer__link-item" href="https://docs.mistral.ai/">Documentation</a></li><li class="footer__item"><a class="footer__link-item" href="https://docs.mistral.ai/guides/contribute/">Contributing</a></li></ul></div><div class="col footer__col"><div class="footer__title">Community</div><ul class="footer__items clean-list"><li class="footer__item"><a href="https://discord.gg/mistralai" target="_blank" rel="noopener noreferrer" class="footer__link-item">Discord<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_yPTG"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></li><li class="footer__item"><a href="https://twitter.com/MistralAI" target="_blank" rel="noopener noreferrer" class="footer__link-item">X<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_yPTG"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></li><li class="footer__item"><a href="https://github.com/mistralai" target="_blank" rel="noopener noreferrer" class="footer__link-item">GitHub<svg width="13.5" height="13.5" aria-hidden="true" viewBox="0 0 24 24" class="iconExternalLink_yPTG"><path fill="currentColor" d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></a></li></ul></div></div><div class="footer__bottom text--center"><div class="footer__copyright">Copyright © 2024 Mistral AI.</div></div></div></footer></div>
<!-- Cloudflare Pages Analytics --><script defer="" src="./Text generation _ Mistral AI Large Language Models_files/beacon.min.js.download" data-cf-beacon="{"token": "f43ca8e80d85407ea6ca57cd621eacc6"}"></script><!-- Cloudflare Pages Analytics --><script defer="" src="./Text generation _ Mistral AI Large Language Models_files/vef91dfe02fce4ee0ad053f6de4f175db1715022073587" integrity="sha512-sDIX0kl85v1Cl5tu4WGLZCpH/dV9OHbA4YlKCuCiMmOQIk4buzoYDZSFj+TvC71mOBLh8CDC/REgE0GX0xcbjA==" data-cf-beacon="{"rayId":"88972f6e398eab5d","version":"2024.4.1","token":"36b4216ae2dc4d5488c249161e71fe1e"}" crossorigin="anonymous"></script>
</body></html>