1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4034],{4409:(e,t,r)=>{"use strict";r.d(t,{QuickstartsFilterableGrid:()=>u});var o=r(34697),n=r(83805),i=r(12750),a=r(85713),s=r(62561),l=r(96365),d=r(33838),c=r(32002);function u(){let{categories:e}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,c.useLingo)(),[r,u]=(0,n.useState)("all"),x=null!=e?e:["vibe-work","vibe-code","studio","developer","admin"],m=[{id:"vibe-work",label:"Vibe Work"},{id:"vibe-code",label:"Vibe Code"},{id:"studio",label:"Studio"},{id:"developer",label:"API"},{id:"admin",label:"Admin"}].filter(e=>x.includes(e.id)),g=m.length>1?[{id:"all",label:t.text("All",{context:"Quickstarts filter label for all categories"})},...m]:m,h={"vibe-work":{text:"group-hover:text-[#FA500F]",bg:"group-hover:bg-[#FA500F]"},"vibe-code":{text:"group-hover:text-[#FA500F]",bg:"group-hover:bg-[#FA500F]"},studio:{text:"group-hover:text-[#0082E6]",bg:"group-hover:bg-[#0082E6]"},developer:{text:"group-hover:text-[#0082E6]",bg:"group-hover:bg-[#0082E6]"},admin:{text:"group-hover:text-[#4a4a5e]",bg:"group-hover:bg-[#4a4a5e]"}},p=[{category:"vibe-work",title:t.text("Run your first Vibe Work task",{context:"Quickstart title about running a first Vibe Work task"}),description:t.text("Open Vibe Work, run a multi-step task end-to-end, and review the result.",{context:"Quickstart description about running a first Vibe Work task"}),time:"5 min",href:"/getting-started/quickstarts/vibe-work/first-task",logo:d.jI["vibe-work"],alt:"Vibe Work",activeBorder:"hover:border-[#FA500F]/50"},{category:"vibe-work",title:t.text("Analyze a dataset",{context:"Quickstart title about analyzing data in Vibe Work"}),description:t.text("Upload a spreadsheet and ask questions in plain language. Work writes and runs code.",{context:"Quickstart description about analyzing data in Vibe Work"}),time:"10 min",href:"/getting-started/quickstarts/vibe-work/analyze-data",logo:d.jI["vibe-work"],alt:"Vibe Work",activeBorder:"hover:border-[#FA500F]/50"},{category:"vibe-work",title:t.text("Create your first Skill",{context:"Quickstart title about creating a first Skill in Vibe Work"}),description:t.text("Package a repeatable method into a Skill so Work applies the same procedure every time.",{context:"Quickstart description about creating a first Skill in Vibe Work"}),time:"10 min",href:"/getting-started/quickstarts/vibe-work/create-first-skill",logo:d.jI["vibe-work"],alt:"Vibe Work",activeBorder:"hover:border-[#FA500F]/50"},{category:"vibe-code",title:t.text("Install the Vibe CLI",{context:"Quickstart title about installing the Vibe CLI"}),description:t.text("Install the CLI, configure your API key, and send your first prompt from the terminal.",{context:"Quickstart description about installing the Vibe CLI"}),time:"5 min",href:"/getting-started/quickstarts/vibe-code/install-cli",logo:d.jI["vibe-code"],alt:"Vibe Code",activeBorder:"hover:border-[#FA500F]/50"},{category:"vibe-code",title:t.text("Scaffold a project with Vibe Code",{context:"Quickstart title about scaffolding a project with Vibe Code"}),description:t.text("Describe a project in natural language and let Vibe Code generate the files and structure.",{context:"Quickstart description about scaffolding a project with Vibe Code"}),time:"10 min",href:"/getting-started/quickstarts/vibe-code/scaffold-a-project",logo:d.jI["vibe-code"],alt:"Vibe Code",activeBorder:"hover:border-[#FA500F]/50"},{category:"studio",title:t.text("Activate Studio and generate an API key",{context:"Quickstart title about activating Studio and generating an API key"}),description:t.text("Activate Studio in Free mode and generate your first API key.",{context:"Quickstart description about activating Studio and generating an API key"}),time:"5 min",href:"/getting-started/quickstarts/studio/activate-and-generate-api-key",logo:d.jI.studio,alt:"Studio",activeBorder:"hover:border-[#0082E6]/50"},{category:"studio",title:t.text("Test a model in the API playground",{context:"Quickstart title about testing an AI model in the Studio playground"}),description:t.text("Send prompts, adjust parameters, and compare model outputs in the Studio playground.",{context:"Quickstart description about testing an AI model in the Studio playground"}),time:"5 min",href:"/getting-started/quickstarts/studio/test-model-playground",logo:d.jI.studio,alt:"Studio",activeBorder:"hover:border-[#0082E6]/50"},{category:"studio",title:t.text("Create a reusable Prompt",{context:"Quickstart title about creating a reusable Prompt in Studio"}),description:t.text("Save a prompt template with versions and a clear usage description.",{context:"Quickstart description about creating a reusable Prompt in Studio"}),time:"5 min",href:"/getting-started/quickstarts/studio/create-reusable-prompt",logo:d.jI.studio,alt:"Studio",activeBorder:"hover:border-[#0082E6]/50"},{category:"studio",title:t.text("Create a Skill in Studio",{context:"Quickstart title about creating a Skill in Studio"}),description:t.text("Package reusable instructions and files into a Skill for repeated tasks.",{context:"Quickstart description about creating a Skill in Studio"}),time:"10 min",href:"/getting-started/quickstarts/studio/create-skill",logo:d.jI.studio,alt:"Studio",activeBorder:"hover:border-[#0082E6]/50"},{category:"developer",title:t.text("Send your first API request",{context:"Quickstart title about send your first API request quickstart (used as browser tab title and on"}),description:t.text("Install the SDK, set your API key, and get a model response.",{context:"Quickstart description about sending the first API request"}),time:"5 min",href:"/getting-started/quickstarts/developer/first-api-request",logo:d.jI.studio,alt:"Studio",activeBorder:"hover:border-[#0082E6]/50"},{category:"developer",title:t.text("Build an agent with tools",{context:"Quickstart title about build an agent with tools quickstart (used as browser tab title and on"}),description:t.text("Define tools, let the model call functions, and return real-world data.",{context:"Quickstart description about building an agent with tools"}),time:"10 min",href:"/getting-started/quickstarts/developer/build-an-agent",logo:d.jI.studio,alt:"Studio",activeBorder:"hover:border-[#0082E6]/50"},{category:"developer",title:t.text("Set up RAG with document search",{context:"Quickstart title about setting up RAG with document search"}),description:t.text("Upload documents and query them with retrieval-augmented generation.",{context:"Quickstart description about setting up RAG with document search"}),time:"15 min",href:"/getting-started/quickstarts/developer/rag-document-search",logo:d.jI.studio,alt:"Studio",activeBorder:"hover:border-[#0082E6]/50"},{category:"developer",title:t.text("Build a workflow",{context:"Quickstart title about building a workflow"}),description:t.text("Scaffold a durable AI pipeline, run a worker, and trigger your first execution.",{context:"Quickstart description about building a workflow"}),time:"15 min",href:"/getting-started/quickstarts/developer/build-a-workflow",logo:d.jI.studio,alt:"Studio",activeBorder:"hover:border-[#0082E6]/50"},{category:"admin",title:t.text("Create your organization",{context:"Quickstart title about create your organization quickstart (used as browser tab title and on"}),description:t.text("Set up billing, workspaces, and invite your first team members.",{context:"Quickstart description about creating a Mistral organization"}),time:"15 min",href:"/getting-started/quickstarts/admin/create-organization",logo:d.jI.admin,alt:"Admin",activeBorder:"hover:border-[#4a4a5e]/50"},{category:"admin",title:t.text("Configure SSO",{context:"Quickstart title about configure SSO quickstart (used as browser tab title and on"}),description:t.text("Set up SAML Single Sign-On for enterprise authentication.",{context:"Quickstart description about configuring SAML SSO"}),time:"15 min",href:"/getting-started/quickstarts/admin/configure-sso",logo:d.jI.admin,alt:"Admin",activeBorder:"hover:border-[#4a4a5e]/50"},{category:"admin",title:t.text("Manage workspaces & API keys",{context:"Quickstart title about managing workspaces and API keys"}
1),description:t.text("Create isolated workspaces, generate keys, and set usage limits.",{context:"Quickstart description about managing workspaces and API keys"}),time:"10 min",href:"/getting-started/quickstarts/admin/manage-workspaces",logo:d.jI.admin,alt:"Admin",activeBorder:"hover:border-[#4a4a5e]/50"}].filter(e=>x.includes(e.category)),f="all"===r?p:p.filter(e=>e.category===r);return(0,o.jsxs)(o.Fragment,{children:[g.length>1&&(0,o.jsx)("div",{className:"flex flex-wrap justify-end gap-2",children:g.map(e=>(0,o.jsx)("button",{type:"button",onClick:()=>u(e.id),className:(0,l.cn)("cursor-pointer px-3 py-1.5 rounded-full text-xs font-semibold tracking-wide uppercase transition-colors border",r===e.id?"bg-foreground text-background border-foreground":"bg-card text-muted-foreground border-border hover:border-foreground/40 hover:text-foreground"),children:e.label},e.id))}),(0,o.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:f.map(e=>(0,o.jsxs)(i.Link,{href:e.href,className:(0,l.cn)("group relative overflow-hidden rounded-xl border bg-card p-6 transition-all hover:shadow-lg hover:-translate-y-1 flex flex-col no-underline hover:no-underline",e.activeBorder),children:[(0,o.jsx)("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-10 transition-opacity duration-300 pointer-events-none bg-gradient-to-br from-transparent to-current"}),(0,o.jsxs)("div",{className:"flex flex-col h-full gap-3 relative z-10",children:[(0,o.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,o.jsx)("div",{className:"mb-2",children:(0,o.jsx)(a.default,{src:e.logo,alt:e.alt,width:"admin"===e.category?39:36,height:"admin"===e.category?39:36,className:"rounded-lg"})}),(0,o.jsx)("div",{className:(0,l.cn)("shrink-0 flex items-center justify-center size-8 rounded-full bg-secondary text-secondary-foreground group-hover:text-white transition-colors transition-transform duration-300 group-hover:scale-110",h[e.category].bg),children:(0,o.jsx)(s.fl,{className:"size-4 -rotate-45 group-hover:rotate-0 transition-transform duration-300"})})]}),(0,o.jsx)("h3",{className:(0,l.cn)("font-bold text-xl tracking-tight leading-tight text-foreground transition-colors",h[e.category].text),children:e.title}),(0,o.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed flex-1 mt-1",children:e.description}),(0,o.jsxs)("div",{className:"flex items-center gap-2 mt-4 pt-3 border-t border-border/50",children:[(0,o.jsx)(s.O4,{className:"size-3.5 text-muted-foreground/70"}),(0,o.jsx)("span",{className:"text-xs font-medium text-muted-foreground tracking-wide uppercase",children:t.text("{time} to complete",{values:{time:e.time},context:"Estimated time to finish a quickstart"})})]})]})]},e.href))})]})}},8440:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});var o=r(34697);r(83805);let n=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...e,children:(0,o.jsx)("path",{fill:"currentColor",d:"M19.111 19.111h-1.888v-1.888h1.888v1.888ZM17.223 17.223h-1.89v-1.889h1.889v1.889ZM13.444 7.776H9.667v1.891h1.889v1.889h1.888v-.557V11 7.776h1.889l.001 5.668H13.44l.004.002v1.889H9.667v-.002H7.778v-1.89.001h-1.89v-1.888l.011-.002h-.01V7.776h1.888l.001-1.887 5.666-.001v1.888Z"})})},10899:(e,t,r)=>{"use strict";r.r(t),r.d(t,{InferenceOverview:()=>u});var o=r(34697),n=r(12750),i=r(62561),a=r(24223),s=r(3436),l=r(68630),d=r(33838),c=r(32002);function u(e){let{showHeader:t=!0}=e,r=(0,c.useLingo)(),u="fr"===(0,n.useLocale)()?r.text("API",{context:"Title of the Inference landing card linking to the API reference"}):"API Reference",x=[{title:r.text("Models",{context:"Title of the Inference landing card linking to the model catalog"}),description:r.text("View all models with specifications, benchmarks, and feature comparison.",{context:"Description of the Inference landing card linking to the model catalog"}),href:"/models"},{title:r.text("Pricing",{context:"Title of the Inference landing card linking to model pricing"}),description:r.text("Compare model pricing by family.",{context:"Description of the Inference landing card linking to model pricing"}),href:"/inference/pricing"},{title:r.text("Model lifecycle policy",{context:"Title of the Inference landing card linking to the model lifecycle policy"}),description:r.text("Plan for model maturity stages, aliases, deprecations, and retirement.",{c
1ontext:"Description of the Inference landing card linking to the model lifecycle policy"}),href:"/inference/model-lifecycle"},{title:r.text("Regional inference",{context:"Title of the Inference landing card linking to regional inference"}),description:r.text("Route inference requests to a specific region.",{context:"Description of the Inference landing card linking to regional inference"}),href:"/inference/regional-inference",status:r.text("GA",{context:"Lifecycle status label for a generally available inference feature"}),statusVariant:"outline"},{title:r.text("Priority tier",{context:"Title of the Inference landing card linking to Priority tier"}),description:r.text("Route eligible API requests through a priority queue.",{context:"Description of the Inference landing card linking to Priority tier"}),href:"/inference/priority-tier",status:r.text("Public Preview",{context:"Lifecycle status label for a public preview inference feature"}),statusVariant:"yellow"},{title:r.text("Labs",{context:"Title of the Inference landing card linking to Labs"}),description:r.text("Explore experimental model releases.",{context:"Description of the Inference landing card linking to Labs"}),href:"/inference/labs"},{title:r.text("Prompting",{context:"Title of the Inference landing card linking to prompting guidance"}),description:r.text("Design prompts for model requests.",{context:"Description of the Inference landing card linking to prompting guidance"}),href:"/inference/prompting"},{title:r.text("Sampling",{context:"Title of the Inference landing card linking to sampling guidance"}),description:r.text("Tune generation parameters.",{context:"Description of the Inference landing card linking to sampling guidance"}),href:"/inference/sampling"},{title:u,description:r.text("Review endpoint details.",{context:"Description of the Inference landing card linking to the API reference"}),href:"/api"}];return(0,o.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,o.jsx)("p",{className:"text-muted-foreground text-base leading-relaxed max-w-3xl",children:r.text("Mistral inference is the serving layer for running models through the API. Use it to choose the right model, send low-latency requests, route traffic by region, and control generation behavior with prompting and sampling parameters.",{context:"Introductory description for the Inference landing page"})}),(0,o.jsx)(s.SectionTab,{sectionId:"inference-explore",children:r.text("Explore",{context:"Heading for model-related documentation"})}),(0,o.jsx)("p",{className:"text-muted-foreground text-base",children:r.text("Find reference material for model choice, pricing, lifecycle, regional routing, and request behavior.",{context:"Intro text for Inference landing page cards"})}),(0,o.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:x.map(e=>{let t=i.sj;return(0,o.jsxs)(n.Link,{href:e.href,className:"group relative overflow-hidden rounded-xl border bg-card p-6 transition-all hover:shadow-lg hover:-translate-y-1 hover:border-[#6F6F84]/50 flex flex-col no-underline hover:no-underline",children:[(0,o.jsx)("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-10 transition-opacity duration-300 pointer-events-none bg-gradient-to-br from-transparent to-current"}),(0,o.jsxs)("div",{className:"flex flex-col h-full gap-3 relative z-10",children:[(0,o.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,o.jsx)("div",{className:"p-2 rounded-lg ".concat(d.DV.docs.bg," ").concat(d.DV.docs.text," mb-2"),children:(0,o.jsx)(t,{className:"size-5"})}),(0,o.jsx)("div",{className:"shrink-0 flex items-center justify-center size-8 rounded-full bg-secondary text-secondary-foreground group-hover:bg-[#6F6F84] group-hover:text-white transition-colors transition-transform duration-300 group-hover:scale-110",children:(0,o.jsx)(i.fl,{className:"size-4 -rotate-45 group-hover:rotate-0 transition-transform duration-300"})})]}),(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)("h3",{className:"font-bold text-xl tracking-tight leading-tight text-foreground group-hover:text-[#6F6F84] transition-colors",children:e.title}),"status"in e&&e.status&&(0,o.jsx)(a.E,{variant:e.statusVariant,size:"xs",className:"font-mono uppercase text-[11px]",children:e.status})]}),(0,o.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed flex-1 mt-1",children:e.description})]})]},e.href)})}),(0,o.jsx)(s.SectionTab,{sectionId:"latest-models",children:r.text("Latest models",{context:"Heading for the latest models section on the Inference landing page"})}),(0,o.jsx)(l.LatestModelCards,{count:6})]})}},11327:(e,t,r)=>{"use strict";r.r(t),r.d(t,{DevelopersOverview:()=>u});var o=r(34697),n=r(12750),i=r(4409),a=r(62561),s=r(85713),l=r(33838),d=r(3436),c=r(32002);function u(e){let{showCta:t=!1,showHeader:r=!0}=e,u=(0,c.useLingo)(),x=[{title:u.text("API Reference",{context:"Title of a documentation card about API Reference"}),description:u.text("Explore the Mistral API: endpoints, authentication, request/response schemas, and error handling.",{context:"Description of a documentation card about API Reference"}),icon:a.sj,href:"/api",color:l.DV.api},{title:u.text("SDKs",{context:"Title of a documentation card about SDKs"}),description:u.text("Install official SDKs for Python, TypeScript, and other languages to integrate Mistral models.",{context:"Description of a documentation card about SDKs"}),icon:a.sj,href:"/resources/sdks",color:l.DV.developer},{title:u.text("Cookbooks",{context:"Title of a documentation card about Cookbooks"}),description:u.text("Build with step-by-step code walkthroughs for RAG, function calling, fine-tuning, and other integration patterns.",{context:"Description of a documentation card about Cookbooks"}),icon:a.sj,href:"/resources/cookbooks",color:l.DV.developer},{title:u.text("Changelogs",{context:"Title of a documentation card about Changelogs"}),description:u.text("Track API updates, new model releases, deprecations, and breaking changes.",{context:"Description of a documentation card about Changelogs"}),icon:a.sj,href:"/resources/changelogs",color:l.DV.developer},{title:u.text("Vibe Code",{context:"Title of a documentation card linking to Vibe Code from the developers overview"}),description:u.text("Mistral's coding mode. CLI, VS Code extension, and remote web sessions to write code with an agent.",{c
1ontext:"Description of the Vibe Code card on the developers overview"}),icon:a.sj,href:"/vibe/code/overview",color:l.DV.developer}];return(0,o.jsxs)("div",{className:"flex flex-col gap-8",children:[r&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex items-center gap-4",children:[(0,o.jsx)(s.default,{src:l.Vj.developer,alt:u.text("Developers",{context:"Alt text for the Developers section logo"}),width:40,height:40}),(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{className:"font-bold text-2xl tracking-tight text-foreground",children:u.text("Developers",{context:"Heading for developer documentation"})}),(0,o.jsx)("p",{className:"text-muted-foreground text-base",children:u.text("Build with Mistral models using the API, SDKs, and code examples.",{context:"Subtitle for developer documentation"})})]})]}),(0,o.jsx)("p",{className:"text-muted-foreground text-base leading-relaxed max-w-3xl",children:u.text("Start with a quickstart to send your first API request, then explore the full API reference, install an SDK, or browse cookbooks for production-ready patterns.",{context:"Introductory description of developer docs"})})]}),(0,o.jsx)(d.SectionTab,{sectionId:"developers-explore",children:u.text("Explore",{context:"Heading for developer documentation links"})}),(0,o.jsx)("p",{className:"text-muted-foreground text-base",children:u.text("Endpoint specifications, client SDKs for every language, and cookbook examples for common integration patterns.",{context:"Intro text for developer documentation links"})}),(0,o.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:x.map(e=>{let t=e.icon;return(0,o.jsxs)(n.Link,{href:e.href,className:"group relative overflow-hidden rounded-xl border bg-card p-6 transition-all hover:shadow-lg hover:-translate-y-1 hover:border-[#0082E6]/50 flex flex-col no-underline hover:no-underline",children:[(0,o.jsx)("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-10 transition-opacity duration-300 pointer-events-none bg-gradient-to-br from-transparent to-current"}),(0,o.jsxs)("div",{className:"flex flex-col h-full gap-3 relative z-10",children:[(0,o.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,o.jsx)("div",{className:"p-2 rounded-lg ".concat(e.color.bg," ").concat(e.color.text," mb-2"),children:(0,o.jsx)(t,{className:"size-5"})}),(0,o.jsx)("div",{className:"shrink-0 flex items-center justify-center size-8 rounded-full bg-secondary text-secondary-foreground group-hover:bg-[#0082E6] group-hover:text-white transition-colors transition-transform duration-300 group-hover:scale-110",children:(0,o.jsx)(a.fl,{className:"size-4 -rotate-45 group-hover:rotate-0 transition-transform duration-300"})})]}),(0,o.jsx)("h3",{className:"font-bold text-xl tracking-tight leading-tight text-foreground group-hover:text-[#0082E6] transition-colors",children:e.title}),(0,o.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed flex-1 mt-1",children:e.description})]})]},e.href)})}),(0,o.jsx)(d.SectionTab,{sectionId:"developers-quickstarts",children:u.text("Quickstarts",{context:"Heading for developer quickstarts"})}),(0,o.jsx)("p",{className:"text-muted-foreground text-base",children:u.text("Hands-on guides to activate Studio, send your first request, build agents, run RAG, and wire workflows. Most take 15 minutes or less.",{context:"Intro text for developer quickstarts on the developers overview page"})}),(0,o.jsx)(i.QuickstartsFilterableGrid,{categories:["developer","studio"]}),t&&(0,o.jsxs)(n.Link,{href:"/resources",className:"inline-flex items-center gap-2 text-sm font-semibold text-primary hover:underline mt-2",children:["Go to Resources",(0,o.jsx)(a.fl,{className:"size-4"})]})]})}},19010:(e,t,r)=>{"use strict";r.d(t,{ReleaseNotesList:()=>f});var o=r(34697),n=r(83805),i=r(85713),a=r(24223),s=r(12750),l=r(62561);let d=new Intl.DateTimeFormat("en",{month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function c(e){let{children:t}=e;return(0,o.jsx)(a.E,{variant:"outline",size:"sm",className:"border-border/80 bg-background/80 text-muted-foreground",children:t})}function u(e){let{children:t}=e,r=t.split(/(`[^`]+`)/g);return(0,o.jsx)(o.Fragment,{children:r.map((e,t)=>e.startsWith("`")&&e.endsWith("`")?(0,o.jsx)("code",{className:"rounded bg-muted px-1 py-0.5 font-mono text-[0.85em] text-foreground",children:e.slice(1,-1)},"".concat(e,"-").concat(t)):(0,o.jsx)("span",{children:e},"".concat(e,"-").concat(t)))})}function x(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";return e.startsWith("http")||e.startsWith("/")?e:"/assets/releases/".concat(t,"/").concat(e)}function m(e){var t,r,n;let{note:a,locale:m="en"}=e,g=a.getStarted;return(0,o.jsx)("article",{className:"overflow-hidden rounded-xl border border-border bg-card p-6",children:(0,o.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,o.jsxs)("header",{className:"flex flex-col gap-5 lg:flex-row lg:items-start lg:justify-between",children:[(0,o.jsxs)("div",{className:"flex max-w-3xl flex-col gap-3",children:[(0,o.jsx)("p",{className:"m-0 font-mono text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:(0,o.jsx)("time",{dateTime:a.date,children:(n=a.date,d.format(new Date("".concat(n,"T00:00:00.000Z"))))})}),(0,o.jsx)("h2",{className:"m-0 text-2xl font-black leading-tight tracking-tight text-foreground md:text-3xl",children:a.title}),(0,o.jsx)("p",{className:"m-0 text-base leading-7 text-muted-foreground",children:a.summary})]}),(0,o.jsxs)("div",{className:"flex shrink-0 flex-wrap items-center gap-2 lg:max-w-72 lg:justify-end",children:[(0,o.jsx)(c,{children:a.type}),(0,o.jsx)(c,{children:a.area}),(0,o.jsx)(c,{children:a.availability}),(0,o.jsx)(c,{children:a.hosting})]})]}),(0,o.jsxs)("details",{className:"group/details [&_summary::-webkit-details-marker]:hidden",children:[(0,o.jsxs)("summary",{className:"inline-flex w-fit cursor-pointer select-none rounded-md border border-border bg-background px-4 py-2 text-sm font-semibold text-foreground transition-colors hover:bg-accent hover:text-accent-foreground",children:[(0,o.jsx)("span",{className:"group-open/details:hidden",children:"Learn more"}),(0,o.jsx)("span",{className:"hidden group-open/details:inline",children:"Show less"})]}),(0,o.jsxs)("div",{className:"mt-6 flex flex-col gap-6",children:[(null==(t=a.media)?void 0:t.type)==="image"&&(0,o.jsxs)("figure",{className:"relative m-0 overflow-hidden rounded-xl border border-border/70 bg-muted",children:[(0,o.jsx)(i.default,{src:x(a.media.url,m),alt:"",width:1200,height:675,"aria-hidden":"true",className:"absolute inset-0 h-full w-full scale-125 object-cover opacity-45 blur-3xl",sizes:"(min-width: 1024px) 896px, 100vw"}),(0,o.jsx)("div",{className:"absolute inset-0 bg-background/20"}),(0,o.jsx)(i.default,{src:x(a.media.url,m),alt:null!=(r=a.media.alt)?r:a.title,width:1200,height:675,className:"relative max-h-[28rem] w-full object-contain",sizes:"(min-width: 1024px) 896px, 100vw"})]}),(0,o.jsxs)("div",{className:"grid gap-6 lg:grid-cols-[minmax(0,1fr)_minmax(16rem,0.8fr)]",children:[(0,o.jsxs)("section",{className:"rounded-xl border border-border/70 bg-background/60 p-5",children:[(0,o.jsx)("h3",{className:"m-0 text-sm font-bold uppercase tracking-wide text-muted-foreground",children:"What's new"}),(0,o.jsx)("p",{className:"mb-0 mt-3 text-sm leading-relaxed text-foreground
1/85",children:(0,o.jsx)(u,{children:a.whatsNew})})]}),(0,o.jsxs)("section",{className:"rounded-xl border border-border/70 bg-background/60 p-5",children:[(0,o.jsx)("h3",{className:"m-0 text-sm font-bold uppercase tracking-wide text-muted-foreground",children:"Key capabilities"}),(0,o.jsx)("ul",{className:"m-0 mt-3 flex list-none flex-col gap-3 p-0",children:a.keyCapabilities.map(e=>(0,o.jsxs)("li",{className:"flex gap-3 text-sm leading-relaxed text-foreground/85",children:[(0,o.jsx)("span",{className:"mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full bg-[#0082E6]/10 text-[#0082E6]",children:(0,o.jsx)(l.Sr,{className:"size-3"})}),(0,o.jsx)("span",{children:(0,o.jsx)(u,{children:e})})]},e))})]})]}),g&&(0,o.jsxs)("div",{className:"flex flex-col gap-3 rounded-xl border border-border/70 bg-background/60 p-5",children:[(0,o.jsx)("h3",{className:"m-0 text-sm font-bold uppercase tracking-wide text-muted-foreground",children:"Get started"}),(0,o.jsx)("p",{className:"m-0 text-sm leading-relaxed text-foreground
1/85",children:(0,o.jsx)(u,{children:g.label})}),g.href&&(0,o.jsxs)(s.Link,{href:g.href.url,className:"inline-flex w-fit items-center gap-2 rounded-md bg-primary px-4 py-2 text-sm font-semibold text-primary-foreground no-underline transition-colors hover:bg-primary/90 hover:no-underline",target:g.href.url.startsWith("http")?"_blank":void 0,rel:g.href.url.startsWith("http")?"noopener noreferrer":void 0,children:[(0,o.jsx)("span",{children:g.href.label}),(0,o.jsx)("span",{className:"flex size-4 items-center justify-center",children:(0,o.jsx)(l.fl,{className:"size-4"})})]})]})]})]})]})})}let g=[{id:"type",label:"Type"},{id:"area",label:"Area"},{id:"availability",label:"Availability"},{id:"hosting",label:"Hosting"}],h=[{id:"newest",label:"Newest first"},{id:"oldest",label:"Oldest first"}],p={type:"all",area:"all",availability:"all",hosting:"all"};function f(e){let{notes:t,locale:r="en"}=e,[i,a]=(0,n.useState)(p),[s,l]=(0,n.useState)("newest"),d=(0,n.useMemo)(()=>Object.fromEntries(g.map(e=>{var r;return[e.id,(r=e.id,Array.from(new Set(t.map(e=>e[r]))).sort())]})),[t]),c=(0,n.useMemo)(()=>[...t.filter(e=>g.every(t=>{let r=i[t.id];return"all"===r||e[t.id]===r}))].sort((e,t)=>{let r=t.date.localeCompare(e.date);return"newest"===s?r:-r}),[i,t,s]);return(0,o.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,o.jsxs)("div",{className:"flex flex-col gap-3 rounded-xl border border-border bg-card p-4",children:[(0,o.jsx)("div",{className:"grid gap-3 md:grid-cols-4",children:g.map(e=>(0,o.jsxs)("label",{className:"flex flex-col gap-1.5",children:[(0,o.jsx)("span",{className:"font-mono text-xs font-semibold uppercase tracking-wide text-muted-foreground",children:e.label}),(0,o.jsxs)("select",{value:i[e.id],onChange:t=>a(r=>({...r,[e.id]:t.target.value})),className:"h-9 cursor-pointer rounded-md border border-border bg-background px-3 text-sm text-foreground outline-none transition-colors hover:bg-accent focus:border-foreground
1/40",children:[(0,o.jsx)("option",{value:"all",children:"All"}),d[e.id].map(e=>(0,o.jsx)("option",{value:e,children:e},e))]})]},e.id))}),(0,o.jsx)("div",{className:"flex flex-wrap gap-2 md:justify-end",children:h.map(e=>(0,o.jsx)("button",{type:"button",onClick:()=>l(e.id),className:s===e.id?"cursor-pointer rounded-full border border-foreground bg-foreground px-3 py-1.5 text-xs font-semibold uppercase tracking-wide text-background transition-colors":"cursor-pointer rounded-full border border-border bg-background px-3 py-1.5 text-xs font-semibold uppercase tracking-wide text-muted-foreground transition-colors hover:bg-accent hover:text-foreground",children:e.label},e.id))})]}),(0,o.jsx)("div",{className:"flex flex-col gap-6",children:c.map(e=>(0,o.jsx)(m,{note:e,locale:r},"".concat(e.date,"-").concat(e.title)))})]})}},21226:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ExplorerTab:()=>h,ExplorerTabItem:()=>p,ExplorerTabs:()=>g});var o=r(34697),n=r(83805),i=r(96365),a=r(3710),s=r(52530),l=r(19798),d=r(62561),c=r(29414);let u=(0,n.createContext)(null);function x(e){let{children:t,parentTabId:r,tabDepth:n=0,rootExplorerId:i,tabPath:a=[]}=e;return(0,o.jsx)(u.Provider,{value:{parentTabId:r,tabDepth:n,rootExplorerId:i,tabPath:a},children:t})}var m=r(32002);function g(e){let{id:t,className:r,children:g,mode:h="default"}=e,p=(0,m.useLingo)(),f=(0,s.usePathname)(),v=(0,n.useContext)(u),b=n.Children.toArray(g).filter(e=>n.isValidElement(e)),j=t?"explorer-tabs-".concat(t):void 0,y=(null==v?void 0:v.rootExplorerId)||j,w=v?v.tabDepth+1:0,k=(null==v?void 0:v.tabPath)||[],[N,I]=n.useState(()=>{var e,t;if(y){let e=window.location.hash.replace(/^#/,""),t=new URLSearchParams(window.location.search).get("tab");if(e===y&&t){let e=t.split("_");if(e.length>w){let t=e[w],r=b.find(e=>e.props.value===t);if(r)return r.props.value}}}return null!=(t=null==(e=b[0])?void 0:e.props.value)?t:"empty"}),A=n.useRef(null),[S,P]=n.useState(!1),[T,C]=n.useState(!1),D=n.useCallback(()=>{let e=A.current;e&&(P(e.scrollLeft>0),C(e.scrollLeft+e.clientWidth<e.scrollWidth-1))},[]);return n.useEffect(()=>{let e=A.current;if(!e)return;D(),e.addEventListener("scroll",D,{passive:!0});let t=new ResizeObserver(D);return t.observe(e),()=>{e.removeEventListener("scroll",D),t.disconnect()}},[D]),(0,o.jsxs)(a.Tabs,{id:j,activationMode:"manual",value:N,onValueChange:e=>{if(I(e),f){let e=new URL(f,window.location.origin);e.searchParams.delete("tab"),window.history.replaceState({},"",e.toString())}},className:(0,i.cn)("w-full mt-6 flex flex-col gap-0",r),children:[(0,o.jsxs)("div",{className:"relative flex items-center group/tabs",children:[S&&(0,o.jsx)("div",{className:"absolute left-0 top-0 bottom-0 w-8 bg-gradient-to-r from-background to-transparent z-10 pointer-events-none"}),T&&(0,o.jsx)("div",{className:"absolute right-0 top-0 bottom-0 w-8 bg-gradient-to-l from-background to-transparent z-10 pointer-events-none"}),(0,o.jsxs)(a.TabsList,{ref:A,className:"h-9 gap-2 group/explorer-tabs",variant:"tertiary",children:[b.map(e=>{var t;return(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsx)(a.TabsTrigger,{"data-state":N===e.props.value?"active":"inactive","aria-selected":N===e.props.value,disabled:N===e.props.value,variant:"tertiary",size:"sm",value:e.props.value,className:(0,i.cn)("justify-start text-sm gap-2",y&&"data-[state=active]:pr-10"),children:(0,o.jsx)("span",{className:"truncate",children:e.props.label})}),N===e.props.value&&y?(0,o.jsx)("span",{className:"absolute border-l border-foreground
1/10 inline-flex items-center justify-center right-px top-px bottom-0 w-8",children:(0,o.jsx)(l.i,{value:(e=>{if(!y||!f)return"";let t=new URL(f,window.location.origin),r=[...k,e];return t.searchParams.set("tab",r.join("_")),t.hash=y,t.toString()})(null!=(t=e.props.tabId)?t:e.props.value),CopyIcon:e=>{let{copyState:t}=e;return(0,o.jsx)(o.Fragment,{children:"idle"!==t?(0,o.jsx)(d.Sr,{className:"size-3.5 text-primary-soft"}):(0,o.jsx)(d.Td,{className:"size-3.5 text-current"})})},className:"p-0 hover:bg-foreground/10 rounded-tr-[7px] justify-center size-full"})}):null]},e.props.value)}),"close"===h&&"empty"!==N&&(0,o.jsx)(a.TabsTrigger,{variant:"tertiary",size:"sm",value:"empty",className:"ml-auto justify-start text-sm gap-2",onClick:e=>{e.preventDefault(),e.stopPropagation(),I(void 0)},children:p.text("Close",{context:"Command to close the current tab"})})]})]}),(0,o.jsx)("div",{className:"space-y-2",children:(0,o.jsxs)("div",{"data-slot":"tabs-content-wrapper",className:(0,i.cn)("rounded-lg rounded-tl-none border-foreground
1/10 border bg-background p-4 text-muted-foreground prose max-w-none min-h-14","empty"!==N&&"rounded-tr-none"),children:[(0,o.jsx)(a.TabsContent,{value:"empty",className:"px-2",children:(0,o.jsx)("div",{className:"flex items-center not-prose gap-2",children:(0,o.jsx)("p",{className:"text-base text-foreground/50",children:p.text("Select a tab above to see its content.",{context:"Prompt to select a tab"})})})}),b.map(e=>{var t;return(0,o.jsx)(a.TabsContent,{value:e.props.value,id:null!=(t=e.props.tabId)?t:e.props.value,"data-language":e.props.value,className:(0,i.cn)("relative pt-2","[&:hover>.tab-copy]:opacity-100","[&:hover>.tab-copy]:pointer-events-auto",'[&:has([data-slot="tabs-content-wrapper"]:hover)>.tab-copy]:opacity-0','[&:has([data-slot="tabs-content-wrapper"]:hover)>.tab-copy]:pointer-events-none','[&:has([data-slot="tabs-content-wrapper"]:focus-within)>.tab-copy]:opacity-0','[&:has([data-slot="tabs-content-wrapper"]:focus-within)>.tab-copy]:pointer-events-none',"[&:has(pre:hover)>.tab-copy]:opacity-0"),children:(0,o.jsx)(x,{parentTabId:e.props.value,tabDepth:w,rootExplorerId:y,tabPath:[...k,e.props.value],children:(0,o.jsx)(c.s,{children:e.props.children})})},e.props.value)})]})})]})}function h(e){return null}h.isExplorerTab=!0,h.displayName="ExplorerTab";let p=h},23913:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ModelTable:()=>x});var o=r(34697);r(83805);var n=r(96365),i=r(24223),a=r(97062),s=r(62561),l=r(12750),d=r(14684),c=r(32002);function u(e){var t,r,s,c,u;let{data:x,l:m,isDeprecated:g}=e,h=(null==(t=x.metadata)?void 0:t.retirementDate)&&new Date(x.metadata.retirementDate)<new Date,p=(null==(r=x.metadata)?void 0:r.deprecationDate)&&new Date(x.metadata.deprecationDate)<new Date,f=x.identifiers.apiNames[0],v={dateStyle:void 0,year:"numeric",month:"numeric",day:"numeric"},b=(0,n.cn)("transition-opacity duration-200",(g||h||p)&&"opacity-85"),j=(0,n.cn)("font-mono text-xs w-fit",(g||h)&&"text-muted-foreground font-semibold uppercase"),y=(0,d.Th)(x);return y?(0,o.jsxs)(a.TableRow,{className:b,children:[(0,o.jsx)(a.TableCell,{className:"font-medium p-2",children:(0,o.jsxs)(l.Link,{href:y,target:"_blank",className:"relative font-semibold text-foreground after:absolute after:-inset-2 hover:text-primary-soft transition-colors",children:[x.name," ",(0,o.jsx)("span",{className:"font-mono",children:"â"})]})}),(0,o.jsx)(a.TableCell,{className:"p-2 text-end",children:(0,o.jsx)("code",{className:(0,n.cn)("text-xs 2xl:text-sm font-mono"),children:x.version})}),(0,o.jsx)(a.TableCell,{className:"p-2",children:f?(0,o.jsx)(i.E,{variant:"outline",className:j,children:f}):null}),(0,o.jsx)(a.TableCell,{className:(0,n.cn)("text-xs 2xl:text-sm p-2 text-foreground/70 hidden lg:table-cell"),children:(0,o.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,o.jsx)("span",{className:"text-foreground/70",children:(null==(s=x.metadata)?void 0:s.deprecationDate)&&m.date(new Date(x.metadata.deprecationDate),v)}),(0,o.jsx)("span",{className:"text-foreground/70",children:(null==(c=x.metadata)?void 0:c.retirementDate)&&m.date(new Date(x.metadata.retirementDate),v)})]})}),(0,o.jsx)(a.TableCell,{className:(0,n.cn)("text-xs 2xl:text-sm p-2 text-foreground/70 hidden lg:table-cell text-end"),children:(null==(u=x.metadata)?void 0:u.replacement)?(()=>{var e;let t=d.Jn.find(e=>{var t;return e.name===(null==(t=x.metadata)?void 0:t.replacement)}),r=(0,o.jsx)(i.E,{variant:"outline",className:j,children:null==(e=x.metadata)?void 0:e.replacement});return t?(0,o.jsx)(l.Link,{href:(0,d.Th)(t),children:r}):r})():null})]}):null}function x(e){let{slugs:t,className:r,showAll:i=!1,onToggleShowAll:l,forceDeprecated:x=!1,defaultVisible:m=6}=e,g=(0,c.useLingo)(),h=new Set(t),p=d.Jn.filter(e=>h.has(e.slug));return(0,o.jsx)("div",{className:(0,n.cn)("w-full space-y-4",r),children:(0,o.jsxs)("div",{className:"relative",children:[(0,o.jsx)("div",{className:"bg-background rounded-t-md",children:(0,o.jsx)(a.Table,{className:"border-spacing-x-2",children:(0,o.jsx)(a.TableHeader,{children:(0,o.jsxs)(a.TableRow,{className:"border-none",children:[(0,o.jsx)(a.TableHead,{className:"min-w-[180px] sm:w-[190px] font-bold text-foreground text-xs 2xl:text-sm border-none",children:g.text("Model",{context:"Table heading for the AI model name"})}),(0,o.jsx)(a.TableHead,{className:"min-w-[60px] sm:w-[80px] font-bold text-foreground text-xs 2xl:text-sm border-none",children:g.text("Version",{context:"Table heading for the AI model version"})}),(0,o.jsx)(a.TableHead,{className:"min-w-[140px] sm:w-[190px] font-bold text-foreground text-xs 2xl:text-sm border-none text-center",children:g.text("API",{context:"Table heading for the AI model API identifier"})}),(0,o.jsx)(a.TableHead,{className:"min-w-[180px] sm:w-[220px] hidden sm:table-cell font-bold text-foreground text-xs 2xl:text-sm border-none",children:(0,o.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[g.text("Deprecation",{context:"Table heading for the AI model deprecation date"}),(0,o.jsx)("svg",{className:"w-8 h-4 text-foreground",viewBox:"0 0 32 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M32 3L27 0.113249V5.88675L32 3ZM0 3V3.5H2V3V2.5H0V3ZM6 3
1V3.5H10V3V2.5H6V3ZM14 3V3.5H18V3V2.5H14V3ZM22 3V3.5H26V3V2.5H22V3Z",fill:"currentColor"})}),g.text("Retirement",{context:"Table heading for the AI model retirement date"})]})}),(0,o.jsx)(a.TableHead,{className:"hidden lg:table-cell min-w-[140px] sm:min-w-[180px] font-bold text-foreground text-xs 2xl:text-sm text-end border-none",children:g.text("Alternative",{context:"Table heading for the replacement AI model"})})]})})})}),(0,o.jsxs)("div",{className:"relative rounded-b-md group",children:[(0,o.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-6 flex items-end justify-center pb-1 pointer-events-none opacity-0 transition-opacity z-10",style:{display:"none"},id:"scroll-hint",children:(0,o.jsxs)("div",{className:"flex items-center gap-1 text-xs text-muted-foreground bg-background/90 px-2 py-0.5 rounded-t-sm",children:[(0,o.jsx)("span",{children:g.text("Scroll for more",{context:"Hover hint at the bottom of the model table indicating more rows are scrollable"})}),(0,o.jsx)(s.Mt,{className:"w-3 h-3 rotate-180"})]})}),(0,o.jsx)("div",{className:"max-h-[400px] overflow-y-auto scrollable-container relative z-0",onScroll:e=>{let t=e.target,r=document.getElementById("scroll-hint");r&&(t.scrollTop+t.clientHeight>=t.scrollHeight-1?(r.style.opacity="0",setTimeout(()=>r.style.display="none",300)):(r.style.display="flex",r.style.opacity="1"))},onMouseEnter:e=>{let t=e.currentTarget,r=document.getElementById("scroll-hint");r&&t.scrollTop+t.clientHeight<t.scrollHeight-1&&(r.style.display="flex",r.style.opacity="1")},onMouseLeave:e=>{e.currentTarget;let t=document.getElementById("scroll-hint");t&&(t.style.opacity="0",setTimeout(()=>t.style.display="none",300))},children:(0,o.jsx)(a.Table,{className:"border-spacing-x-2 group/model-table min-w-full",children:(0,o.jsx)(a.TableBody,{children:p.map((e,t)=>{var r;let n=!!(null==(r=e.metadata)?void 0:r.deprecationDate)&&new Date(e.metadata.deprecationDate)<new Date;return(0,o.jsx)(u,{data:e,l:g,isDeprecated:x||n},"".concat(e.name,"-").concat(t))})})})})]})]})})}},23928:(e,t,r)=>{"use strict";r.d(t,{Accordion:()=>s,AccordionContent:()=>c,AccordionItem:()=>l,AccordionTrigger:()=>d});var o=r(34697);r(83805);var n=r(27659),i=r(57588),a=r(96365);function s(e){let{...t}=e;return(0,o.jsx)(n.bL,{"data-slot":"accordion",...t})}function l(e){let{className:t,...r}=e;return(0,o.jsx)(n.q7,{"data-slot":"accordion-item",className:(0,a.cn)("border-b last:border-b-0",t),...r})}function d(e){let{className:t,children:r,...s}=e;return(0,o.jsx)(n.Y9,{className:"flex",children:(0,o.jsxs)(n.l9,{"data-slot":"accordion-trigger",className:(0,a.cn)("focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-transform outline-none hover:underline focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180",t),...s,children:[r,(0,o.jsx)(i.A,{className:"text-muted-foreground pointer-events-none size-4 shrink-0 translate-y-0.5 transition-transform duration-200"})]})})}function c(e){let{className:t,children:r,...i}=e;return(0,o.jsx)(n.UC,{"data-slot":"accordion-content",className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm",...i,children:(0,o.jsx)("div",{className:(0,a.cn)("pt-0 pb-4",t),children:r})})}},26144:(e,t,r)=>{"use strict";r.r(t),r.d(t,{CollabButton:()=>s});var o=r(34697),n=r(26366);r(83805);let i=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",...e,children:(0,o.jsx)("path",{d:"M16.904 5.065A6.931 6.931 0 0 1 21.81 7.1l.235.248A6.933 6.933 0 0 1 12 16.9l.014-.013-.015.003a6.93 6.93 0 0 1 4.905-11.825ZM6.59 5.093a6.93 6.93 0 0 1 4.64 1.357l.1.08-1.71 2.93a3.591 3.591 0 0 0-5.08-.001l.001.001a3.59 3.59 0 0 0 .01 5.07l-.01.01a3.59 3.59 0 0 0 5.08 0l1.68 2.92-.11.09a6.93 6.93 0 0 1-9-.65v-.011a6.93 6.93 0 0 1 0-9.788l.225-.216a6.931 6.931 0 0 1 4.174-1.792Zm10.31 3.304a3.593 3.593 0 0 0-2.54 6.133l-.007.036.028-.026a3.592 3.592 0 0 0 5.08-5.08l.005-.006-.026-.004a3.594 3.594 0 0 0-2.54-1.053Z"})});var a=r(32002);
1function s(e){let{colabUrl:t}=e,r=(0,a.useLingo)();return(0,o.jsx)(n.Button,{size:"sm",variant:"outline",className:"uppercase self-start not-prose",asChild:!0,children:(0,o.jsxs)("a",{href:t,target:"_blank",rel:"noopener noreferrer",children:[(0,o.jsx)(i,{className:"size-4 text-primary"}),(0,o.jsx)("span",{className:"max-md:hidden",children:r.text("Open in",{context:"Prefix for a link to Google Colab"})})," Colab â"]})})}},26956:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ProductsOverview:()=>u});var o=r(34697),n=r(12750),i=r(62561),a=r(85713),s=r(33838),l=r(3436),d=r(4409),c=r(32002);function u(e){let{showCta:t=!1,showHeader:r=!0}=e,u=(0,c.useLingo)(),x=[{title:"Vibe",description:u.text("Mistral's unified agent. Work mode for conversations and productivity in the web and mobile apps, Code mode for the terminal and editor.",{context:"Description of the Vibe product"}),logo:s.jI.vibe,href:"/vibe",color:s.DV.vibe,hoverBorder:"hover:border-[#FA500F]/50",hoverText:"group-hover:text-[#FA500F]",hoverBg:"group-hover:bg-[#FA500F]"},{title:"Studio",description:u.text("Prototype prompts and call Mistral models via API. Fine-tune on your data and monitor performance from a unified dashboard.",{context:"Description of the Studio product"}),logo:s.jI.studio,href:"/studio",color:s.DV.studio,hoverBorder:"hover:border-[#0082E6]/50",hoverText:"group-hover:text-[#0082E6]",hoverBg:"group-hover:bg-[#0082E6]"}];return(0,o.jsxs)("div",{className:"flex flex-col gap-8",children:[r&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex items-center gap-4",children:[(0,o.jsx)(a.default,{src:s.Vj.products,alt:u.text("Products",{context:"Alt text for the Products section logo"}),width:40,height:40}),(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{className:"font-bold text-2xl tracking-tight text-foreground",children:u.text("Products",{context:"Heading for product documentation"})}),(0,o.jsx)("p",{className:"text-muted-foreground text-base",children:u.text("Vibe and Studio.",{context:"Subtitle naming the main Mistral products"})})]})]}),(0,o.jsx)("p",{className:"text-muted-foreground text-base leading-relaxed max-w-3xl",children:u.text("Use Vibe to research, analyze documents, code, and run multi-step tasks across your tools. Build and deploy AI applications through the Studio API and Playground.",{context:"Introductory description of Mistral products"})})]}),(0,o.jsx)(l.SectionTab,{sectionId:"products-explore",children:u.text("Explore",{context:"Heading for product documentation links"})}),(0,o.jsx)("p",{className:"text-muted-foreground text-base",children:u.text("Browse the documentation for each product. Feature guides, configuration options, and integration patterns.",{context:"Intro text for product documentation links"})}),(0,o.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:x.map(e=>(0,o.jsxs)(n.Link,{href:e.href,className:"group relative overflow-hidden rounded-xl border bg-card p-6 transition-all hover:shadow-lg hover:-translate-y-1 flex flex-col no-underline hover:no-underline ".concat(e.hoverBorder),children:[(0,o.jsx)("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-10 transition-opacity duration-300 pointer-events-none bg-gradient-to-br from-transparent to-current"}),(0,o.jsxs)("div",{className:"flex flex-col h-full gap-3 relative z-10",children:[(0,o.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,o.jsx)("div",{className:"mb-2",children:(0,o.jsx)(a.default,{src:e.logo,alt:e.title,width:36,height:36,className:"rounded-lg"})}),(0,o.jsx)("div",{className:"shrink-0 flex items-center justify-center size-8 rounded-full bg-secondary text-secondary-foreground group-hover:text-white transition-colors transition-transform duration-300 group-hover:scale-110 ".concat(e.hoverBg),children:(0,o.jsx)(i.fl,{className:"size-4 -rotate-45 group-hover:rotate-0 transition-transform duration-300"})})]}),(0,o.jsx)("h3",{className:"font-bold text-xl tracking-tight leading-tight text-foreground transition-colors ".concat(e.hoverText),children:e.title}),(0,o.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed flex-1 mt-1",children:e.description})]})]},e.href))}),(0,o.jsx)(l.SectionTab,{sectionId:"products-quickstarts",children:u.text("Quickstarts",{context:"Heading for product quickstarts"})}),(0,o.jsx)("p",{className:"text-muted-foreground text-base",children:u.text("Hands-on guides to get you running on each product. Most take 15 minutes or less.",{context:"Intro text for product quickstarts on the products overview page"})}),(0,o.jsx)(d.QuickstartsFilterableGrid,{categories:["vibe-work","vibe-code","studio","developer"]}),t&&(0,o.jsxs)(n.Link,{href:"/products",className:"inline-flex items-center gap-2 text-sm font-semibold text-primary hover:underline mt-2",children:[u.text("Go to Products",{context:"Footer CTA link on the Products overview that navigates to the Products section"}),(0,o.jsx)(i.fl,{className:"size-4"})]})]})}},31145:(e,t,r)=>{"use strict";r.d(t,{uB:()=>f,Gj:()=>v,xL:()=>y,L$:()=>w,G7:()=>b,h_:()=>k,oI:()=>j});var o=r(34697);r(83805);var n=r(93992),i=r(32002),a=r(96365),s=r(51390),l=r(13270);function d(e){let{...t}=e;return(0,o.jsx)(s.bL,{"data-slot":"dialog",...t})}function c(e){let{...t}=e;return(0,o.jsx)(s.ZL,{"data-slot":"dialog-portal",...t})}function u(e){let{className:t,...r}=e;return(0,o.jsx)(s.hJ,{"data-slot":"dialog-overlay",className:(0,a.cn)("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",t),...r})}function x(e){let{className:t,children:r,showCloseButton:n=!0,...i}=e;return(0,o.jsxs)(c,{"data-slot":"dialog-portal",children:[(0,o.jsx)(u,{className:"z-[110]"}),(0,o.jsxs)(s.UC,{"data-slot":"dialog-content",className:(0,a.cn)("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 roun
1ded-lg border p-6 shadow-lg duration-200 sm:max-w-lg",t),...i,children:[r,n&&(0,o.jsxs)(s.bm,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[(0,o.jsx)(l.A,{}),(0,o.jsx)("span",{className:"sr-only",children:"Close"})]})]})]})}function m(e){let{className:t,...r}=e;return(0,o.jsx)("div",{"data-slot":"dialog-header",className:(0,a.cn)("flex flex-col gap-2 text-center sm:text-left",t),...r})}function g(e){let{className:t,...r}=e;return(0,o.jsx)(s.hE,{"data-slot":"dialog-title",className:(0,a.cn)("text-lg leading-none font-semibold",t),...r})}function h(e){let{className:t,...r}=e;return(0,o.jsx)(s.VY,{"data-slot":"dialog-description",className:(0,a.cn)("text-muted-foreground text-sm",t),...r})}var p=r(8440);function f(e){let{className:t,...r}=e;return(0,o.jsx)(n.uB,{"data-slot":"command",className:(0,a.cn)("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",t),...r})}function v(e){let{title:t,description:r,children:n,className:s,showCloseButton:l=!0,...c}=e,u=(0,i.useLingo)(),p=null!=t?t:u.text("Command Palette",{context:"Screen-reader-only title of the Cmd-K command palette dialog"}),v=null!=r?r:u.text("Search for a command to run...",{context:"Screen-reader-only description of the Cmd-K command palette dialog"});return(0,o.jsx)(d,{...c,children:(0,o.jsxs)(x,{className:(0,a.cn)("overflow-hidden p-0",s),showCloseButton:l,children:[(0,o.jsxs)(m,{className:"sr-only bg-input",children:[(0,o.jsx)(g,{children:p}),(0,o.jsx)(h,{children:v})]}),(0,o.jsx)(f,{shouldFilter:!1,className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:n})]})})}function b(e){let{className:t,...r}=e;return(0,o.jsxs)("div",{"data-slot":"command-input-wrapper",className:"flex items-center gap-2 border-b px-3 bg-input h-12",children:[(0,o.jsx)(p.A,{className:"size-6 shrink-0 opacity-50"}),(0,o.jsx)(n.uB.Input,{"data-slot":"command-input",className:(0,a.cn)("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-2 text-base outline-hidden disabled:cursor-not-allowed disabled:opacity-50",t),...r})]})}function j(e){let{className:t,...r}=e;return(0,o.jsx)(n.uB.List,{"data-slot":"command-list",className:(0,a.cn)("md:max-h-[300px] max-h-dull scroll-py-1 overflow-x-hidden overflow-y-auto scroll-p-0 scroll-m-0",t),...r})}function y(e){let{...t}=e;return(0,o.jsx)(n.uB.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...t})}function w(e){let{className:t,...r}=e;return(0,o.jsx)(n.uB.Group,{"data-slot":"command-group",className:(0,a.cn)("text-foreground [&_[cmdk-group-heading]]:font-mono [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",t),...r})}function k(e){let{className:t,...r}=e;return(0,o.jsx)(n.uB.Item,{"data-slot":"command-item",className:(0,a.cn)("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",t),...r})}},37190:(e,t,r)=>{"use strict";r.r(t),r.d(t,{AdminOverview:()=>x});var o=r(34697),n=r(12750);r(83805);var i=r(62561),a=r(85713),s=r(96365),l=r(33838),d=r(32002);function c(){let e=(0,d.useLingo)(),t={id:"admin",title:"Admin",logo:l.jI.admin,activeBorder:"hover:border-[#4a4a5e]/50",de
1scription:e.text("Choose a quickstart to begin. Each guide walks you through a key admin task.",{context:"Intro text for admin quickstarts"}),quickstarts:[{title:e.text("Create your organization",{context:"Quickstart title about create your organization quickstart (used as browser tab title and on"}),description:e.text("Set up billing, workspaces, and invite your first team members.",{context:"Quickstart description about creating a Mistral organization"}),time:"15 min",href:"/getting-started/quickstarts/admin/create-organization"},{title:e.text("Configure SSO",{context:"Quickstart title about configure SSO quickstart (used as browser tab title and on"}),description:e.text("Set up SAML Single Sign-On for enterprise authentication.",{context:"Quickstart description about configuring SAML SSO"}),time:"15 min",href:"/getting-started/quickstarts/admin/configure-sso"},{title:e.text("Manage workspaces & API keys",{context:"Quickstart title about managing workspaces and API keys"}),description:e.text("Create isolated workspaces, generate keys, and set usage limits.",{context:"Quickstart description about managing workspaces and API keys"}),time:"10 min",href:"/getting-started/quickstarts/admin/manage-workspaces"}]};return(0,o.jsx)("div",{className:"flex flex-col gap-8 my-8 w-full not-prose",children:(0,o.jsx)("div",{className:"flex flex-col gap-6 w-full",children:(0,o.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-5",children:t.quickstarts.map((r,l)=>(0,o.jsxs)(n.Link,{href:r.href,className:(0,s.cn)("group relative overflow-hidden rounded-xl border bg-card p-6 transition-all hover:shadow-lg hover:-translate-y-1 flex flex-col no-underline hover:no-underline",t.activeBorder),children:[(0,o.jsx)("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-10 transition-opacity duration-300 pointer-events-none bg-gradient-to-br from-transparent to-current"}),(0,o.jsxs)("div",{className:"flex flex-col h-full gap-3 relative z-10",children:[(0,o.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,o.jsx)("div",{className:"mb-2",children:(0,o.jsx)(a.default,{src:t.logo,alt:t.title,width:39,height:39,className:"rounded-lg"})}),(0,o.jsx)("div",{className:"shrink-0 flex items-center justify-center size-8 rounded-full bg-secondary text-secondary-foreground group-hover:bg-[#4a4a5e] group-hover:text-white transition-colors transition-transform duration-300 group-hover:scale-110",children:(0,o.jsx)(i.fl,{className:"size-4 -rotate-45 group-hover:rotate-0 transition-transform duration-300"})})]}),(0,o.jsx)("h3",{className:"font-bold text-xl tracking-tight leading-tight text-foreground group-hover:text-[#4a4a5e] transition-colors",children:r.title}),(0,o.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed flex-1 mt-1",children:r.description}),(0,o.jsxs)("div",{className:"flex items-center gap-2 mt-4 pt-3 border-t border-border/50",children:[(0,o.jsx)(i.O4,{className:"size-3.5 text-muted-foreground/70"}),(0,o.jsx)("span",{className:"text-xs font-medium text-muted-foreground tracking-wide uppercase",children:e.text("{time} to complete",{values:{time:r.time},context:"Estimated time to finish a quickstart"})})]})]})]},l))})})})}var u=r(3436);function x(e){let{showCta:t=!1,showHeader:r=!0}=e,s=(0,d.useLingo)(),x=[{title:s.text("Admin overview",{context:"Title of the card linking to the admin overview page"}),description:s.text("New to admin? See how organizations, workspaces, members, and access fit together.",{context:"Description of the card linking to the admin overview page"}),icon:i.sj,href:"/admin/overview",color:l.DV.admin},{title:s.text("Set up your organization",{context:"Title of the admin overview card for organization setup"}),description:s.text("Create your organization, configure settings, verify your domain, and choose a sign-in method.",{context:"Description of the admin overview card for organization setup"}),icon:i.sj,href:"/admin/set-up-organization/create-organization",color:l.DV.admin},{title:s.text("Identity and access (RBAC)",{context:"Title of the admin overview card for identity and access management"}),description:s.text("Manage users, roles and permissions, groups, and automated provisioning with SCIM.",{context:"Description of the admin overview card for identity and access management"}),icon:i.sj,href:"/admin/identity-access/user-management",color:l.DV.admin},{title:s.text("Workspaces",{context:"Title of the admin overview card for workspaces"}),description:s.text("Structure and govern work across workspaces in Studio and Vibe, with per-workspace usage and limits.",{context:"Description of the admin overview card for workspaces"}
1),icon:i.sj,href:"/admin/workspaces/your-first-workspace",color:l.DV.admin},{title:s.text("Billing and usage",{context:"Title of the admin overview card for billing and usage"}),description:s.text("Track usage, manage subscriptions and invoices, and set limits and rate tiers per workspace.",{context:"Description of the admin overview card for billing and usage"}),icon:i.sj,href:"/admin/billing-usage/subscriptions",color:l.DV.admin},{title:s.text("Automate administration",{context:"Title of the admin overview card for the Admin API"}),description:s.text("Manage users, workspaces, groups, and roles programmatically with the Admin API.",{context:"Description of the admin overview card for the Admin API"}),icon:i.sj,href:"/admin/admin-api/overview",color:l.DV.admin},{title:s.text("Monitor and comply",{context:"Title of the admin overview card for monitoring and compliance"}),description:s.text("Review audit logs and configure privacy and data controls.",{context:"Description of the admin overview card for monitoring and compliance"}),icon:i.sj,href:"/admin/monitor-comply/audit-logs/overview",color:l.DV.admin}];return(0,o.jsxs)("div",{className:"flex flex-col gap-6",children:[r&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex items-center gap-4",children:[(0,o.jsx)(a.default,{src:l.Vj.admin,alt:s.text("Admin",{context:"Alt text for the Admin section logo"}),width:40,height:40}),(0,o.jsxs)("div",{children:[(0,o.jsx)("h2",{className:"font-bold text-2xl tracking-tight text-foreground",children:s.text("Admin",{context:"Heading for admin documentation"})}),(0,o.jsx)("p",{className:"text-muted-foreground text-base",children:s.text("Organization setup, security, user management, and billing.",{context:"Subtitle for admin documentation"})})]})]}),(0,o.jsx)("p",{className:"text-muted-foreground text-base leading-relaxed max-w-3xl",children:s.text("The Admin Panel is where you set up your organization, configure SSO, manage API keys and users, and track billing. Use it to control access, enforce security policies, and monitor usage across workspaces.",{context:"Introductory description of the admin console"}).replace("admin console","admin panel")})]}),(0,o.jsx)(u.SectionTab,{sectionId:"admin-explore",children:s.text("Explore",{context:"Heading for admin documentation links"})}),(0,o.jsx)("p",{className:"text-muted-foreground text-base",children:s.text("SSO, API keys, roles and permissions, usage tracking, and billing across workspaces.",{context:"Intro text for admin documentation links"})}),(0,o.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:x.map(e=>{let t=e.icon;return(0,o.jsxs)(n.Link,{href:e.href,className:"group relative overflow-hidden rounded-xl border bg-card p-6 transition-all hover:shadow-lg hover:-translate-y-1 hover:border-[#4a4a5e]/50 flex flex-col no-underline hover:no-underline",children:[(0,o.jsx)("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-10 transition-opacity duration-300 pointer-events-none bg-gradient-to-br from-transparent to-current"}),(0,o.jsxs)("div",{className:"flex flex-col h-full gap-3 relative z-10",children:[(0,o.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,o.jsx)("div",{className:"p-2 rounded-lg ".concat(e.color.bg," ").concat(e.color.text," mb-2"),children:(0,o.jsx)(t,{className:"size-5"})}),(0,o.jsx)("div",{className:"shrink-0 flex items-center justify-center size-8 rounded-full bg-secondary text-secondary-foreground group-hover:bg-[#4a4a5e] group-hover:text-white transition-colors transition-transform duration-300 group-hover:scale-110",children:(0,o.jsx)(i.fl,{className:"size-4 -rotate-45 group-hover:rotate-0 transition-transform duration-300"})})]}),(0,o.jsx)("h3",{className:"font-bold text-xl tracking-tight leading-tight text-foreground group-hover:text-[#4a4a5e] transition-colors",children:e.title}),(0,o.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed flex-1 mt-1",children:e.description})]})]},e.href)})}),(0,o.jsx)(u.SectionTab,{sectionId:"admin-quickstarts",children:s.text("Quickstarts",{context:"Heading for admin quickstarts"})}),(0,o.jsx)("p",{className:"text-muted-foreground text-base",children:s.text("Hands-on guides to set up your organization, configure SSO, and manage workspaces. Most take 15 minutes or less.",{context:"Intro text for admin quickstarts on the admin overview page"}).replace("organization","Organization").replace("workspaces","Workspaces")}),(0,o.jsx)(c,{}),t&&(0,o.jsxs)(n.Link,{href:"/admin",className:"inline-flex items-center gap-2 text-sm font-semibold text-primary hover:underline mt-2",children:[s.text("Go to Admin",{context:"Call to open the admin console"}),(0,o.jsx)(i.fl,{className:"size-4"})]})]})}},40413:(e,t,r)=>{"use strict";r.d(t,{AM:()=>a,Wv:()=>s,hl:()=>l});var o=r(34697);r(83805);var n=r(17459),i=r(96365);function a(e){let{...t}=e;return(0,o.jsx)(n.bL,{"data-slot":"popover",...t})}function s(e){let{...t}=e;return(0,o.jsx)(n.l9,{"data-slot":"popover-trigger",...t})}function l(e){let{className:t,align:r="center",sideOffset:a=4,...s}=e;return(0,o.jsx)(n.ZL,{children:(0,o.jsx)(n.UC,{"data-slot":"popover-content",align:r,sideOffset:a,className:(0,i.cn)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",t),...s})})}},43406:(e,t,r)=>{"use strict";r.r(t),r.d(t,{InterfaceSection:()=>d,InterfaceSectionProvider:()=>l,useInterfaceSection:()=>s});var o=r(34697),n=r(83805),i=r(3436);let a=(0,n.createContext)({scrollToSection:()=>{},registerSection:()=>{}}),s=()=>(0,n.useContext)(a);function l(e){let{children:t}=e,r=(0,n.useRef)(new Map),i=(0,n.useCallback)((e,t)=>{r.current.set(e,t)},[]),s=(0,n.useCallback)(e=>{let t=r.current.get(e);null==t||t.scrollIntoView({behavior:"smooth",block:"start"})},[]);return(0,o.jsx)(a.Provider,{value:{scrollToSection:s,registerSection:i},children:t})}function d(e){let{id:t,title:r,children:a}=e,{registerSection:l}=s(),d=(0,n.useCallback)(e=>{e&&l(t,e)},[t,l]);return(0,o.jsxs)("div",{ref:d,children:[(0,o.jsx)(i.SectionTab,{as:"h2",sectionId:t,children:r}),a]})}},47571:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ModelsSelector:()=>Z});var o=r(34697),n=r(62325),i=r(68423),a=r(31145),s=r(14684),l=r(83805),d=r(58691),c=r(52608),u=r(42364),x=r(37468),m=r(62561);let g=e=>(0,o.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",...e,children:(0,o.jsx)("path",{fill:"currentColor",d:"M10 2h2v2h-2V2ZM10 12h2v2h-2v-2ZM10 16h2v2h-2v-2ZM10 20h2v2h-2v-2ZM10 18h2v2h-2v-2ZM8 4h2v2H8V4ZM14 4h2v2h-2V4ZM8 6h2v2H8V6ZM14 6h2v2h-2V6ZM8 8h2v2H8V8ZM14 8h2v2h-2V8ZM8 10h2v2H8v-2ZM4 10h2v2H4v-2ZM18 10h2v2h-2v-2ZM8 12h2v2H8v-2ZM8 16h2v2H8v-2ZM8 20h2v2H8v-2ZM4 12h2v2H4v-2ZM4 14h2v2H4v-2ZM6 16h2v2H6v-2ZM16 16h2v2h-2v-2ZM18 14h2v2h-2v-2ZM18 12h2v2h-2v-2ZM14 10h2v2h-2v-2ZM14 12h2v2h-2v-2ZM14 16h2v2h-2v-2ZM14 20h2v2h-2v-2ZM12 2h2v2h-2V2ZM12 12h2v2h-2v-2ZM12 16h2v2h-2v-2ZM12 20h2v2h-2v-2ZM12 18h2v2h-2v-2Z"})});var h=r(12750),p=r(96365),f=r(29414),v=r(33631),b=r(47131),j=r(95167),y=r(5611),w=r(88922),k=r(85713);function N(e){let{src:t,alt:r,width:n,className:i}=e,a="number"==typeof n&&!t.startsWith("data:"),s=(0,p.cn)("rounded-lg border border-border max-w-full h-auto",i);return a?(0,o.jsx)(k.default,{src:t,alt:r,width:n,height:0,className:s}):(0,o.jsx)("img",{src:t,alt:r,style:n?{width:"number"==typeof n?"".concat(n,"px"):n,maxWidth:"100%",height:"auto"}:void 0,className:s})}var I=r(18989);let A={h1:e=>{let{children:t,className:r,ref:i,...a}=e;return(0,o.jsx)(n.HeadingTitle,{as:"h1",className:r,...a,children:t})},h2:e=>{let{children:t,className:r,ref:i,...a}=e;return(0,o.jsx)(n.HeadingTitle,{as:"h2",className:r,...a,children:t})},h3:e=>{let{children:t,className:r,ref:i,...a}=e;return(0,o.jsx)(n.HeadingTitle,{as:"h3",className:r,...a,children:t})},h4:e=>{let{children:t,className:r,ref:i,...a}=e;return(0,o.jsx)(n.HeadingTitle,{as:"h4",className:r,...a,children:t})},h5:e=>{let{children:t,className:r,ref:i,...a}=e;return(0,o.jsx)(n.HeadingTitle,{as:"h5",className:r,...a,children:t})},h6:e=>{let{children:t,className:r,ref:i,...a}=e;return(0,o.jsx)(n.HeadingTitle,{as:"h6",className:r,...a,children:t})},p:e=>{let{children:t,className:r,ref:n,...i}=e;return(0,o.jsx)("p",{...i,className:(0,p.cn)("text-secondary-foreground/93",r),children:t})},strong:e=>{let{children:t,className:r,ref:n,...i}=e;return(0,o.jsx)("strong",{...i,className:(0,p.cn)("font-semibold text-foreground",r),children:t})},code:e=>{let{children:t,className:r,...n}=e;return(null==n?void 0:n["data-language"])||(null==r?void 0:r.includes("language-"))?(0,o.jsx)(j.CodeBlock,{className:r,language:null==n?void 0:n["data-language"],filename:null==n?void 0:n["data-filename"],highlight:null==n?void 0:n["data-highlight"],showLineNumbers:(null==n?void 0:n["data-line-numbers"])==="true",children:String(t).replace(/\n$/,"")}):(0,o.jsx)("code",{className:(0,p.cn)("relative mx-1 bg-background !text-[0.765em] ring-1 ring-offset-1 ring-offset-background ring-border font-mono after:hidden before:hidden inline-flex items-center justify-center gap-2 rounded text-xs font-semibold text-foreground px-1",r),...n,children:t})},pre:e=>{let{children:t,className:r,...n}=e;if("object"==typeof t&&t&&"props"in t){var i;let e=t.props||{},a=(null==(i=e.className)?void 0:i.replace("language-",""))||"text",s=(null==e?void 0:e.children)||"";return(0,o.jsx)(j.CodeBlock,{className:r,language:a,filename:null==n?void 0:n["data-filename"],highlight:null==n?void 0:n["data-highlight"],showLineNumbers:(null==n?void 0:n["data-line-numbers"])==="true",children:String(s).replace(/\n$/,"")})}return(0,o.jsx)("pre",{className:(0,p.cn)("mb-4 mt-6 overflow-x-auto rounded-lg border bg-muted p-4",r),...n,children:t})},li:e=>{let{children:t,className:r,ref:n,...i}=e;return(0,o.jsx)(I.ListItem,{className:r,...i,children:t})},a:e=>{let{children:t,className:r,href:n,ref:i,...a}=e;if(!n)return(0,o.jsx)("span",{className:(0,p.cn)("text-primary-soft hover:text-primary",r),...a,children:t});let s=n.startsWith("http");return(0,o.jsx)(h.Link,{className:(0,p.cn)("text-primary-soft hover:text-primary",r),href:n,target:s?"_blank":void 0,rel:s?"noopener noreferrer":void 0,children:t})},ul:e=>{let{children:t,className:r,ref:n,...i}=e;return(0,o.jsx)(I.UnorderedList,{className:r,...i,children:t})},ol:e=>{let{children:t,className:r,ref:n,...i}=e;return(0,o.jsx)(I.OrderedList,{className:r,...i,children:t})},Audio:w.AudioPlayer,Image:function(e){let{url:t,alt:r="",width:n,centered:i=!1,className:a,...s}=e;if(Array.isArray(t)){let[e,l]=t;return(0,o.jsxs)("div",{className:(0,p.cn)("my-4",i&&"flex justify-center",a),children:[(0,o.jsx)(N,{src:e,alt:r,width:n,className:"dark:hidden",...s}),(0,o.jsx)(N,{src:l,alt:r,width:n,className:"hidden dark:block",...s})]})}return(0,o.jsx)("div",{className:(0,p.cn)("my-4",i&&"flex justify-center",a),children:(0,o.jsx)(N,{src:t,alt:r,width:n,...s})})},...{table:e=>{let{children:t,className:r,...n}=e;return(0,o.jsx)(y.default,{"data-type":"table",direction:"x",gradientSize:56,className:"[&_table]:mt-0 [&_table]:mb-0 [&_table]:w-full",children:(0,o.jsx)("table",{className:r,...n,children:t})})},thead:e=>{let{children:t,className:r,...n}=e;return(0,o.jsx)("thead",{className:(0,p.cn)("[&_tr]:border-b [&_tr]:border-solid",r),...n,children:t})},tbody:e=>{let{children:t,className:r,...n}=e;return(0,o.jsx)("tbody",{className:(0,p.cn)("[&_tr]:border-dashed [&_tr]:hover:bg-muted/50 [&_tr:last-child]:border-0",r),...n,children:t})},tr:e=>{let{children:t,className:r,...n}=e;return(0,o.jsx)("tr",{className:(0,p.cn)("border-b transition-colors border-foreground data-[state=selected]:bg-muted text-sm",r),...n,children:t})},th:e=>{let{children:t,className:r,...n}=e;return(0,o.jsx)("th",{className:(0,p.cn)("px-4 py-4 text-left align-middle whitespace-nowrap font-bold text-muted-foreground [&:has([role=checkbox])]:pr-0 [&_tr]:border-dashed",r),...n,children:t})},td:e=>{let{children:t,className:r,...n}=e;return(0,o.jsx)("td",{className:(0,p.cn)("px-4 py-4 align-middle dark:text-foreground [&:has([role=checkbox])]:pr-0",r),...n,children:t})}}};var S=r(26366),P=r(75599),T=r(5470),C=r(32002);let D=e=>{var t;let{modelIdentifierOrSlug:r}=e,n=(0,C.useLingo)(),i=(0,l.useRef)(null),a=s.xM.find(e=>{var t;return!!(e.slug===r||e.identifiers.apiNames.includes(r)||(null==(t=e.identifiers.aliases)?void 0:t.includes(r)))}),[d,c]=(0,l.useState)(null),u=null==a?void 0:a.describe(n),g=(null==u?void 0:u.shortDe
1scription)||(null==u?void 0:u.description);if((0,l.useEffect)(()=>{if(!g)return void c(null);let e=!1;return(0,b.l)(g).then(t=>{e||c(t)}),()=>{e=!0}},[g]),!a)return(0,o.jsx)(q,{});let j=x.D[(null==(t=a.avatar)?void 0:t.backgroundColor)||(0,x.l)(a.name)],y=(0,s.Th)(a);return(0,o.jsxs)("div",{ref:i,className:"flex flex-col gap-6 w-full relative model-benchmark-item",style:{"--model-color":j},children:[(0,o.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,o.jsx)("div",{className:"mx-[5px]",children:(0,o.jsx)(_,{model:a})}),(0,o.jsx)("div",{className:"h-[48px] px-2 overflow-hidden",children:(0,o.jsx)(f.s,{className:"text-sm leading-normal text-foreground/50 line-clamp-3",children:d?(0,o.jsx)(v.m,{...d,components:A}):(0,o.jsx)("p",{children:g})})})]}),(0,o.jsxs)("div",{className:"flex flex-col gap-4 items-center py-2",children:[(0,o.jsxs)("div",{className:"flex flex-col gap-2 w-full min-h-[88px]",children:[y&&(0,o.jsx)(S.Button,{variant:"outline",size:"sm",asChild:!0,className:"justify-between",children:(0,o.jsxs)(h.Link,{href:y,children:[(0,o.jsx)("p",{className:"font-semibold text-sm text-foreground/70",children:n.text("Learn more",{context:"Button to open the full AI model page"})}),(0,o.jsx)(m.fl,{className:"size-3.5 opacity-50"})]})}),a.playground&&(0,o.jsx)(S.Button,{variant:"default",size:"sm",asChild:!0,className:"justify-between",children:(0,o.jsxs)("a",{href:a.playground,target:"_blank",rel:"noopener noreferrer",children:[(0,o.jsx)("p",{className:"font-semibold text-sm",children:n.text("Try in Playground",{context:"Button to test the AI model in the playground"})}),(0,o.jsx)(m.fl,{className:"w-[14px] h-[14px] text-primary-foreground"})]})})]}),(0,o.jsxs)("div",{className:"flex flex-col gap-4 w-full",children:[(0,o.jsxs)(M,{label:n.text("INFO",{context:"Section heading for benchmark summary"}),children:[(0,o.jsx)(z,{label:n.text("Speed",{context:"Row label for AI model speed"}),children:E(a.ratings.speed,4,m.ui)}),(0,o.jsx)(z,{label:n.text("PERFORMANCE",{context:"Row label for AI model capability level"}),labelClassName:"text-foreground",children:E(a.ratings.performance,4,m.eV,"primary")}),(0,o.jsx)(z,{label:n.text("INPUT",{context:"Row label for supported input types"}),children:L(a.capabilities.input,["text","image","audio","document"])}),(0,o.jsx)(z,{label:n.text("OUTPUT",{context:"Row label for supported output types"}),children:L(a.capabilities.output,["text","image","audio","embeddings","scores","reasoning"])})]}),(0,o.jsxs)(M,{label:" ",contentClassName:"min-h-[96px]",children:["custom"===a.pricing.type&&a.pricing.input.length>0?(0,o.jsx)(z,{label:n.text("INPUT",{context:"Row label for input token price"}),"data-benchmark-pricing":!0,children:(0,o.jsx)("div",{className:"flex flex-col items-end text-right",children:a.pricing.input.map((e,t)=>(0,o.jsx)("span",{"data-benchmark-pricing-index":t+1,className:"font-mono font-medium text-sm text-foreground/30",children:"$".concat(G(e.price)).concat(e.denominator||"")},t))})}):(0,o.jsx)(z,{label:n.text("INPUT",{context:"Row label for input token price"}),value:"$".concat(V(a))}),(0,o.jsx)(z,{label:n.text("OUTPUT",{context:"Row label for output token price"}),value:"$".concat(F(a))})]}),(0,o.jsx)(M,{label:n.text("FEATURES",{context:"Section heading for supported API features"}),children:B(a,n).map(e=>(0,o.jsx)(z,{label:e.name,disabled:!e.available,children:(0,o.jsx)(m.Sr,{className:(0,p.cn)("w-6 h-6",e.available?"text-foreground":"text-foreground/30")})},e.key))})]}),(0,o.jsx)(R,{model:a}),(0,o.jsx)("div",{className:"flex justify-center py-2",children:(0,o.jsx)(S.Button,{variant:"link",asChild:!0,className:"gap-1 text-sm text-foreground/70 hover:text-foreground",children:(0,o.jsxs)(h.Link,{href:y,children:[n.text("Learn more about this model",{context:"Link to the full AI model page"}),(0,o.jsx)(m.fl,{className:"size-3.5"})]})})})]})]})},M=e=>{let{label:t,children:r,className:n,contentClassName:i}=e;return(0,o.jsxs)("div",{className:(0,p.cn)("flex flex-col gap-4 p-2",n),children:[(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsx)("p",{className:"font-mono font-semibold text-xs text-foreground
1/30 uppercase tracking-[0.24px]",children:t}),(0,o.jsx)("div",{className:"h-px bg-foreground/10 w-full"})]}),(0,o.jsx)("div",{className:(0,p.cn)("flex flex-col gap-4",i),children:r})]})},z=e=>{let{label:t,value:r,children:n,labelClassName:i,valueClassName:a,className:s,disabled:l,...d}=e;return(0,o.jsxs)("div",{className:(0,p.cn)("flex items-center justify-between px-2 py-1",l&&"opacity-20",s),...d,children:[(0,o.jsx)("p",{className:(0,p.cn)("font-mono font-semibold text-sm uppercase flex-1",i||"text-foreground"),children:t}),n||(0,o.jsx)("p",{className:(0,p.cn)("font-mono font-medium text-sm text-foreground tracking-normal",a),children:r})]})},R=e=>{var t,r,n,i,a,s,l,d,c,u;let{model:x}=e,m=(0,C.useLingo)(),g=[...x.identifiers.apiNames,...x.identifiers.aliases||[]],h=g.length<=1?m.text("ID",{context:"Row label for a single API model identifier"}):m.text("IDS",{context:"Row label for multiple API model identifiers"});return(0,o.jsxs)(M,{label:m.text("Additional Info",{context:"Section heading for additional AI model metadata"}),className:"w-full",children:[(0,o.jsx)(z,{label:h,children:(0,o.jsx)("div",{className:"flex items-center gap-1 justify-end",children:g.length>0&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("code",{className:"bg-background ring-1 ring-border rounded px-1.5 py-0.5 text-xs font-mono font-semibold text-foreground",children:g[0]}),g.length>1&&(0,o.jsxs)(P.Tooltip,{children:[(0,o.jsx)(P.TooltipTrigger,{children:(0,o.jsx)(T.A,{})}),(0,o.jsx)(P.TooltipContent,{align:"end",side:"top",children:(0,o.jsxs)("div",{className:"flex flex-col gap-1 max-w-[200px]",children:[(0,o.jsx)("p",{className:"font-semibold",children:m.text("All IDs:",{context:"Tooltip heading for all API model identifiers"})}),g.map((e,t)=>{var r;return(0,o.jsxs)("p",{className:"text-xs",children:[e,(null==(r=x.identifiers.aliases)?void 0:r.includes(e))&&m.text(" (alias)",{context:"Suffix marking an API model identifier as an alias"})]},t)})]})})]})]})})}),(null==(r=x.weights)||null==(t=r[0])?void 0:t.license)&&(0,o.jsx)(z,{label:m.text("LICENSE",{context:"Row label for the open-weights license"}),children:(0,o.jsx)("div",{className:"flex flex-wrap gap-1 justify-end",children:x.weights[0].licenseUrl?(0,o.jsxs)("a",{href:x.weights[0].licenseUrl,target:"_blank",rel:"noopener noreferrer",className:"text-primary-soft hover:text-primary/80 transition-colors flex items-center gap-1",children:[x.weights[0].license,(0,o.jsx)("span",{className:"font-mono",children:"â"})]}):(0,o.jsx)("span",{children:x.weights[0].license})})}),(null==(i=x.weights)||null==(n=i[0])?void 0:n.name)&&(0,o.jsx)(z,{label:m.text("WEIGHTS",{context:"Row label for downloadable model weights"}),children:(0,o.jsx)("div",{className:"flex flex-wrap gap-1 justify-end",children:x.weights[0].url?(0,o.jsxs)("a",{href:x.weights[0].url,target:"_blank",rel:"noopener noreferrer",className:"text-primary-soft hover:text-primary/80 transition-colors flex items-center gap-1",children:[x.weights[0].name,(0,o.jsx)("span",{className:"font-mono",children:"â"})]}):(0,o.jsx)("span",{children:x.weights[0].name})})}),(null==(s=x.weights)||null==(a=s[0])?void 0:a.parameters)&&(0,o.jsx)(z,{label:m.text("PARAMETERS",{context:"Row label for total model parameters"}),children:(0,o.jsx)("div",{className:"flex flex-wrap gap-1 justify-end",children:(0,o.jsxs)("span",{children:[x.weights[0].parameters,"B"]})})}),(null==(d=x.weights)||null==(l=d[0])?void 0:l.active)&&(0,o.jsx)(z,{label:m.text("ACTIVE",{context:"Row label for active mixture-of-experts parameters"}),children:(0,o.jsx)("div",{className:"flex flex-wrap gap-1 justify-end",children:(0,o.jsxs)("span",{children:[x.weights[0].active,"B"]})})}),(null==(u=x.weights)||null==(c=u[0])?void 0:c.minGpuRam)&&(0,o.jsx)(z,{label:m.text("GPU RAM (GB)",{context:"Row label for minimum GPU memory required"}),children:(0,o.jsxs)("div",{className:"flex items-center gap-1 justify-end",children:[(0,o.jsx)("span",{children:(()=>{let e=[null!==x.weights[0].minGpuRam.bf16?parseFloat(x.weights[0].minGpuRam.bf16):null,null!==x.weights[0].minGpuRam.fp8?parseFloat(x.weights[0].minGpuRam.fp8):null,null!==x.weights[0].minGpuRam.fp4?parseFloat(x.weights[0].minGpuRam.fp4):null,null!==x.weights[0].minGpuRam.fp4_16?parseFloat(x.weights[0].minGpuRam.fp4_16):null].filter(e=>null!==e);return e.length>0?"".concat(Math.max(...e)," - ").concat(Math.min(...e)):"N/A"})()}),(0,o.jsxs)(P.Tooltip,{children:[(0,o.jsx)(P.TooltipTrigger,{className:"flex items-center gap-1 justify-end",children:(0,o.jsx)(T.A,{})}),(0,o.jsx)(P.TooltipContent,{align:"end",side:"top",arrowClassName:"",children:(0,o.jsxs)("div",{className:"flex flex-col gap-1 max-w-[160px]",children:[(0,o.jsx)("p",{className:"mt-3",children:m.text("Approximate minimum required GB for different quantization formats.",{context:"Intro text for minimum GPU memory by quantization format"})}),null!==x.weights[0].minGpuRam.bf16&&(0,o.jsxs)("p",{children:[(0,o.jsx)("strong",{children:m.text(" - BF16 & Full Context:",{context:"Label for BF16 memory at full context length"})})," ",x.weights[0].minGpuRam.bf16]}),null!==x.weights[0].minGpuRam.fp8&&(0,o.jsxs)("p",{children:[(0,o.jsx)("strong",{children:m.text(" - FP8 & 1/2 Context:",{context:"Label for FP8 memory at half context length"})})," ",x.weights[0].minGpuRam.fp8]}),null!==x.weights[0].minGpuRam.fp4&&(0,o.jsxs)("p",{children:[(0,o.jsx)("strong",{children:m.text(" - FP4 & 1/4 context:",{context:"Label for FP4 memory at quarter context length"})})," ",x.weights[0].minGpuRam.fp4]}),null!==x.weights[0].minGpuRam.fp4_16&&(0,o.jsxs)("p",{children:[(0,o.jsx)("strong",{children:m.text(" - FP4 & 16k context:",{context:"Label for FP4 memory at 16k context length"})})," ",x.weights[0].minGpuRam.fp4_16]})]})})]})]})})]})},V=e=>"flat"===e.pricing.type?G(e.pricing.price):"range"===e.pricing.type?G(e.pricing.input):"custom"===e.pricing.type&&e.pricing.input.length>0?e.pricing.input.map(e=>"".concat(G(e.price)).concat(e.denominator||"")).join(", "):"-",F=e=>"flat"===e.pricing.type?G(e.pricing.price):"range"===e.pricing.type?G(e.pricing.output):"custom"===e.pricing.type&&e.pricing.output.length>0?e.pricing.output.map(e=>"".concat(G(e.price)).concat(e.denominator||"")).join(", "):"-",E=(e,t,r,n)=>(0,o.jsx)("div",{className:"flex items-center space-x-1.5 md:-space-x-1 2xl:space-x-1.5",children:Array.from({length:t},(t,i)=>{let a=i<Math.floor(e);return(0,o.jsx)("div",{className:(0,p.cn)("w-[18px] h-[18px]",a&&"primary"===n?"text-primary":a?"text-foreground":"text-foreground
1/30"),children:(0,o.jsx)(r,{className:"w-full h-full"})},i)})}),L=(e,t)=>{let r={text:m.oy,image:m.Ql,vision:m.Ql,audio:g,reasoning:m.eV,document:m.v_,embeddings:m.d8,scores:m.o3};return(0,o.jsx)("div",{className:"flex gap-[6px] items-center",children:t.map(t=>{let n=r[t];if(!n)return null;let i=e.includes(t)||"image"===t&&e.includes("vision");return(0,o.jsx)(n,{className:(0,p.cn)("w-[18px] h-[18px]",i?"text-foreground":"text-foreground/30")},t)})})},B=(e,t)=>Object.keys(s.Y6).map(r=>{let o=e.capabilities.features.includes(r);return{key:r,name:(0,d.DB)(r,t).toUpperCase(),available:o}}),G=e=>e.toFixed(4).replace(/(\.\d*[1-9])0+$|\.0+$/,"$1").replace(/\.$/,""),q=()=>{let e=(0,C.useLingo)();return(0,o.jsx)("div",{className:"flex-1 h-full flex rounded-xl border-dashed border-2 border-border/70 relative",children:(0,o.jsx)("p",{className:"text-sm text-foreground/50 sticky top-(--header) h-12 w-full py-2 flex items-center justify-center",children:e.text("Select a model to see the benchmark",{context:"Prompt to choose an AI model for comparison"})})})},_=e=>{var t,r;let{model:n}=e,i="string"==typeof n?s.xM.find(e=>e.slug===n):n;if(!i)return null;let a=(null==(t=i.avatar)?void 0:t.icon)||(0,u.Jn)(i.name),l={"--model-color":x.D[(null==(r=i.avatar)?void 0:r.backgroundColor)||(0,x.l)(i.name)]},d=u.nN[a];return(0,o.jsx)("div",{className:"rounded-md h-[90px] overflow-hidden ring ring-model ring-offset-4 ring-offset-background sticky top-0",style:l,children:(0,o.jsxs)("div",{className:"bg-model h-full flex items-center pr-4",children:[(0,o.jsx)("div",{className:"size-15 flex-shrink-0",children:(0,o.jsx)(c.b,{src:d,alt:"".concat(i.name," icon"),className:"size-full shadow-none",size:"lg",style:l})}),(0,o.jsxs)("div",{className:"flex flex-col items-start",children:[(0,o.jsx)("h4",{className:"text-foreground text-lg font-bold 2xl:text-xl whitespace-nowrap",children:i.name}),(0,o.jsxs)("span",{className:"font-mono text-[15px] leading-none tracking-[-0.31px] text-foreground/50",children:["v",i.version]})]})]})})};var H=r(30455);let O=(0,H.Cp)({parse:e=>{if(!e)return null;let t=e.split(",").filter(Boolean);if(0===t.length)return null;let r=t.map(e=>(function(e){for(let r of s.Jn){var t;if(r.slug===e||r.identifiers.apiNames.includes(e)||(null==(t=r.identifiers.aliases)?void 0:t.includes(e)))return r.slug}return null})(e)).filter(e=>null!==e);return 0===r.length?null:r.slice(0,3)},serialize:e=>e.join(",")});function Z(){let[e,t]=(0,H.ZA)("models",O.withDefault(s.rD)),r=(()=>{if(e.length>=3)return e.slice(0,3);let t=s.rD.filter(t=>!e.includes(t));return[...e,...t].slice(0,3)})();return(0,o.jsxs)("div",{id:"benchmarks",className:"pt-4 not-prose space-y-14 scroll-mt-[calc(var(--header)+2rem)]",children:[(0,o.jsxs)(n.Heading,{className:"items-center gap-2 w-full",children:[(0,o.jsx)(n.HeadingTitle,{id:"compare-models",size:"h1",className:"leading-none",children:"Compare Models"}),(0,o.jsx)(n.HeadingSubtitle,{className:"text-center max-w-2xl w-full text-pretty!",children:"Compare models with each other to select the best one for your use case, from pricing to general performance, features, context size, and licensing."})]}),(0,o.jsx)("div",{className:"relative -mx-inner-sides",style:{"--mobile-width":"calc(100vw - var(--inner-sides) * 2)"},children:(0,o.jsx)("div",{className:(0,p.cn)("grid grid-cols-[var(--mobile-width)_var(--mobile-width)_var(--mobile-width)] md:grid-cols-3 gap-2 relative overflow-x-auto px-inner-sides snap-x snap-mandatory scroll-smooth [-webkit-overflow-scrolling:touch] scrollbar-none",'has-[div.model-benchmark-item_[data-benchmark-pricing-index="2"]]:[&_div[data-benchmark-pricing]]:h-11 has-[div.model-benchmark-item_[data-benchmark-pricing-index="2"]]:[&_div[data-benchmark-pricing]]:items-start'),children:r.map((e,n)=>{let l=r.filter((e,t)=>t!==n);return(0,o.jsxs)("div",{className:"col-span-1 flex flex-col gap-6 snap-center relative",children:[(0,o.jsx)(i.A,{className:"w-full uppercase font-mono",options:s.xM.map(e=>({value:e.slug,label:e.name})),value:e,onValueChange:e=>((e,o)=>{if(e){if(r.includes(e))return;let n=[...r];n[o]=e,t(n)}})(e,n),renderItem:e=>{let{isSelected:t,...r}=e;return(0,o.jsx)(a.h_,{...r,disabled:r.disabled||l.includes(r.option.value),
1children:(0,o.jsxs)("div",{className:"w-full flex justify-between items-center",children:[(0,o.jsx)("span",{className:"truncate",children:r.option.label}),(0,o.jsx)("div",{className:(0,p.cn)("size-2 bg-primary opacity-0",t&&"opacity-100",l.includes(r.option.value)&&"opacity-50")})]})})}}),(0,o.jsx)(D,{modelIdentifierOrSlug:e})]},n)})})})]})}},54930:(e,t,r)=>{"use strict";r.r(t),r.d(t,{ResourcesOverview:()=>v});var o=r(34697),n=r(12750),i=r(62561),a=r(3436);r(83805);var s=r(24607),l=r(96365),d=r(24223),c=r(62060);let u=(0,s.F)("relative group flex flex-col border border-border rounded-lg overflow-hidden transition-base p-4",{variants:{variant:{primary:"bg-model-red/5 hover:bg-model-red/30 border-model-red min-h-64 h-full",secondary:"bg-model-orange/5 hover:bg-model-orange/30 border-model-orange min-h-48 h-full",tertiary:"bg-model-yellow/5 hover:bg-model-yellow/30 border-model-yellow min-h-48 h-full"},size:{default:"p-4",compact:"p-3",large:"p-6"}},defaultVariants:{variant:"secondary",size:"default"}}),x=(0,s.F)("line-clamp-2 font-bold text-balance",{variants:{variant:{primary:"text-xl 2xl:text-2xl text-model-red",secondary:"text-xl 2xl:text-2xl text-model-orange",tertiary:"text-lg 2xl:text-xl leading-[1.1] text-foreground"}}});
1function m(e){let{cookbook:t,variant:r="secondary",size:i="default",showTags:a=!0,pixelEffect:s=!0,className:m,...g}=e,h=t.useCases.map(e=>({label:e,variant:"yellow"})),p=t.integrations.map(e=>({label:e,variant:"orange"})),f=[],v=[...h,...p];if(h.length>0&&f.push(h[0]),p.length>0&&f.length<2&&f.push(p[0]),f.length<2){let e=[...h.slice(+!!f.includes(h[0])),...p.slice(+!!f.includes(p[0]))],t=2-f.length;f.push(...e.slice(0,t))}let b=v.length-f.length;return(0,o.jsxs)(n.Link,{href:t.link||"/resources/cookbooks/".concat(t.slug),className:(0,l.cn)(u({variant:r,size:i}),m),...g,children:[s&&(0,o.jsx)(c.PixelGrid,{pixelSize:12,opacity:.5,speed:1.5,className:"mix-blend-screen dark:mix-blend-multiply dark:opacity-50"}),(0,o.jsxs)("div",{className:"flex flex-col gap-3 mt-auto z-2",children:[(0,o.jsx)("h3",{className:(0,l.cn)(x({variant:r})),children:t.title}),a&&f.length>0&&(0,o.jsxs)("div",{className:"flex flex-wrap gap-1 mt-auto",children:[f.map(e=>{let{label:t,variant:r}=e;return(0,o.jsx)(d.E,{size:"sm",variant:r,className:"md:not-group-hover:border-border md:not-group-hover:bg-background font-mono uppercase md:dark:not-group-hover:bg-background/70 md:dark:not-group-hover:text-foreground",children:t},t)}),b>0&&(0,o.jsxs)(d.E,{size:"sm",variant:"outline",className:"font-mono uppercase bg-background",children:["+",b]})]})]})]})}var g=r(90206);function h(e){let{count:t=6}=e,r=(g.KO.length>0?g.KO:g.tJ).slice(0,t);return 0===r.length?null:(0,o.jsx)("div",{className:"not-prose grid grid-cols-1 md:grid-cols-3 gap-4 my-6",children:r.map(e=>(0,o.jsx)(m,{cookbook:e,variant:"tertiary",size:"default",pixelEffect:!0,showTags:!0},e.slug))})}var p=r(33838),f=r(32002);function v(e){let{showHeader:t=!0}=e,r=(0,f.useLingo)(),s=[{title:"fr"===(0,n.useLocale)()?r.text("API",{context:"Title of the Resources landing card linking to the API reference"}):"API Reference",description:r.text("Explore endpoints, authentication, schemas, and errors.",{context:"Description of the Resources landing card linking to the API reference"}),href:"/api",color:p.DV.api},{title:r.text("SDKs",{context:"Title of the Resources landing card linking to SDKs"}),description:r.text("Install official SDKs for Python, TypeScript, and other languages.",{context:"Description of the Resources landing card linking to SDKs"}),href:"/resources/sdks",color:p.DV.developer},{title:r.text("Security advisories",{context:"Title of the Resources landing card linking to security advisories"}),description:r.text("Review security advisories and remediation guidance.",{context:"Description of the Resources landing card linking to security advisories"}),href:"/resources/security-advisories",color:p.DV.developer},{title:r.text("Release notes",{context:"Title of the Resources landing card linking to release notes"}),description:r.text("Follow shipped updates across Vibe, Studio, Admin, models, and the API.",{context:"Description of the Resources landing card linking to release notes"}),href:"/resources/release-notes",color:p.DV.developer},{title:r.text("Changelogs",{context:"Title of the Resources landing card linking to changelogs"}),description:r.text("Track API updates, model releases, deprecations, and breaking changes.",{context:"Description of the Resources landing card linking to changelogs"}),href:"/resources/changelogs",color:p.DV.developer},{title:r.text("Cookbooks",{context:"Title of the Resources landing card linking to cookbooks"}),description:r.text("Build with step-by-step examples for RAG, function calling, evaluation, and more.",{context:"Description of the Resources landing card linking to cookbooks"}),href:"/resources/cookbooks",color:p.DV.developer},{title:r.text("Ambassadors",{context:"Title of the Resources landing card linking to the ambassador program"}),description:r.text("Find community programs, examples, and contribution paths.",{context:"Description of the Resources landing card linking to the ambassador program"}),href:"/resources/ambassadors",color:p.DV.developer},{title:r.text("Mistral Events â",{context:"Title of the Resources landing card linking to Mistral events"}),description:r.text("Join Mistral events, meetups, and community sessions.",{context:"Description of the Resources landing card linking to Mistral events"}),href:"https://luma.com/mistral.ai",color:p.DV.developer},{title:r.text("Glossary",{context:"Title of the Resources landing card linking to the glossary"}),description:r.text("Look up platform, model, API, and billing terms.",{context:"Description of the Resources landing card linking to the glossary"}),href:"/resources/glossary",color:p.DV.developer},{title:r.text("Error glossary",{context:"Title of the Resources landing card linking to the error glossary"}),description:r.text("Map HTTP errors to causes and fixes.",{context:"Description of the Resources landing card linking to the error glossary"}),href:"/resources/error-glossary",color:p.DV.developer},{title:r.text("Known limitations",{context:"Title of the Resources landing card linking to known limitations"}),description:r.text("Review current platform, model, and API constraints.",{context:"Description of the Resources landing card linking to known limitations"}),href:"/resources/known-limitations",color:p.DV.developer},{title:r.text("Migration guides",{context:"Title of the Resources landing card linking to migration guides"}),description:r.text("Switch from another provider to the Mistral API with minimal code changes.",{context:"Description of the Resources landing card linking to migration guides"}),href:"/resources/migration-guides",color:p.DV.developer},{title:r.text("Observability integrations",{context:"Title of the Resources landing card linking to observability integrations"}),description:r.text("Connect Mistral traces and evaluations to third-party tools.",{context:"Description of the Resources landing card linking to observability integrations"}),href:"/resources/observability-integrations",color:p.DV.developer}];return(0,o.jsxs)("div",{className:"flex flex-col gap-6",children:[t&&(0,o.jsx)("p",{className:"text-muted-foreground text-base leading-relaxed max-w-3xl",children:r.text("Resources bring together the references, examples, and support material that help you build with Mistral. Start here when you need an SDK, a cookbook, a glossary definition, release notes, migration guidance, or a support reference.",{context:"Introductory description for the Resources landing page"})}),(0,o.jsx)(a.SectionTab,{sectionId:"resources-explore",children:r.text("Explore",{context:"Heading for developer documentation links"})}),(0,o.jsx)("p",{className:"text-muted-foreground text-base",children:r.text("Find material for implementation, troubleshooting, and migration work.",{context:"Intro text for Resources landing page cards"})}),(0,o.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-4",children:s.map(e=>{let t=i.sj;return(0,o.jsxs)(n.Link,{href:e.href,className:"group relative overflow-hidden rounded-xl border bg-card p-6 transition-all hover:shadow-lg hover:-translate-y-1 hover:border-[#0082E6]/50 flex flex-col no-underline hover:no-underline",children:[(0,o.jsx)("div",{className:"absolute inset-0 opacity-0 group-hover:opacity-10 transition-opacity duration-300 pointer-events-none bg-gradient-to-br from-transparent to-current"}),(0,o.jsxs)("div",{className:"flex flex-col h-full gap-3 relative z-10",children:[(0,o.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,o.jsx)("div",{className:"p-2 rounded-lg ".concat(e.color.bg," ").concat(e.color.text," mb-2"),children:(0,o.jsx)(t,{className:"size-5"})}),(0,o.jsx)("div",{className:"shrink-0 flex items-center justify-center size-8 rounded-full bg-secondary text-secondary-foreground group-hover:bg-[#0082E6] group-hover:text-white transition-colors transition-transform duration-300 group-hover:scale-110",children:(0,o.jsx)(i.fl,{className:"size-4 -rotate-45 group-hover:rotate-0 transition-transform duration-300"})})]}),(0,o.jsx)("h3",{className:"font-bold text-xl tracking-tight leading-tight text-foreground group-hover:text-[#0082E6] transition-colors",children:e.title}),(0,o.jsx)("p",{className:"text-muted-foreground text-sm leading-relaxed flex-1 mt-1",children:e.description})]})]},e.href)})}),(0,o.jsx)(a.SectionTab,{sectionId:"latest-cookbooks",children:r.text("Latest cookbooks",{context:"Heading for the latest cookbooks section on the Resources landing page"})}),(0,o.jsx)("p",{className:"text-muted-foreground text-base",children:r.text("Use recent examples to learn implementation patterns and adapt them to your project.",{c
1ontext:"Intro text for the latest cookbooks section on the Resources landing page"})}),(0,o.jsx)(h,{count:6})]})}},62850:(e,t,r)=>{"use strict";r.r(t),r.d(t,{InterfaceCards:()=>c});var o=r(34697);r(83805);var n=r(32002),i=r(43406),a=r(85713),s=r(69984),l=r(96365);function d(e){let{options:t,onChange:r,className:n}=e,i=2===t.length?"md:grid-cols-2":4===t.length?"md:grid-cols-4":"md:grid-cols-3";return(0,o.jsx)("div",{className:(0,l.cn)("grid grid-cols-1 gap-3 w-full",i,n),children:t.map(e=>{var t,n,i;let d=null!=(t=e.icon)?t:null;return(0,o.jsx)(s.P.button,{onClick:()=>null==r?void 0:r(e.id),whileHover:{y:-3,scale:1.02},transition:{type:"spring",stiffness:300,damping:20},className:(0,l.cn)("group flex flex-col items-center justify-center p-5 rounded-xl border border-border/40 bg-transparent text-center w-full relative overflow-hidden cursor-pointer hover:bg-card/50 hover:shadow-md focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",null!=(n=e.hoverBorder)?n:"hover:border-border/70"),children:(0,o.jsxs)("div",{className:"relative z-10 flex flex-col items-center w-full",children:[e.logo?(0,o.jsx)(a.default,{src:e.logo,alt:e.title,width:64,height:64,className:"rounded-lg transition-all duration-200 opacity-55 group-hover:opacity-100 group-hover:scale-105"}):d?(0,o.jsx)("div",{className:"p-2 rounded-lg transition-colors bg-muted group-hover:bg-muted/80",children:(0,o.jsx)(d,{className:(0,l.cn)("size-5",e.color||"text-muted-foreground")})}):null,(0,o.jsx)("h3",{className:(0,l.cn)("text-base font-semibold transition-colors mt-3 mb-0 text-center text-foreground/80",null!=(i=e.hoverText)?i:"group-hover:text-foreground"),children:e.title})]})},e.id)})})}function c(){let e=(0,n.useLingo)(),t=[{id:"vibe",title:"Vibe",logo:"/assets/logos/vibe.svg",audience:e.text("All users: chat in the web app, code in the terminal or editor",{context:"Intended audience for the Vibe product"}),audienceShort:e.text("Everyone",{context:"Short audience label for the Vibe product"}),color:"text-[#FA500F]",bgColor:"bg-[#FA500F]/10",borderColor:"border-[#FA500F]/20",hoverBorder:"hover:border-[#FA500F]/50",hoverText:"group-hover:text-[#FA500F]",activeBorder:"border-[#FA500F]/50",description:e.text("Mistral's unified agent. Work mode for the unified chat and work experience, Code mode for the terminal and editor.",{context:"Description of the Vibe product"}),href:"https://chat.mistral.ai",ctaText:e.text("Open Vibe",{context:"Call to open Vibe"})},{id:"studio",title:"Studio",logo:"/assets/logos/studio.svg",audience:e.text("Developers, data scientists, AI engineers",{context:"Intended audience for the Studio product"}),audienceShort:e.text("Developers & Engineers",{context:"Short audience label for developer-focused products"}),color:"text-[#0082E6]",bgColor:"bg-[#0082E6]/10",borderColor:"border-[#0082E6]/20",hoverBorder:"hover:border-[#0082E6]/50",hoverText:"group-hover:text-[#0082E6]",activeBorder:"border-[#0082E6]/50",description:e.text("The developer console. It provides everything you need to build, test, and optimize AI applications on the Mistral API.",{context:"Description of the Studio product"}),href:"https://console.mistral.ai",ctaText:e.text("Try Studio",{context:"Call to open Studio"})},{id:"admin",title:e.text("Admin",{context:"Name of the Mistral admin console"}),logo:"/assets/logos/admin.svg",audience:e.text("IT admins, billing managers, organization owners",{context:"Intended audience for the admin console"}),audienceShort:e.text("IT & Operations",{context:"Short audience label for the admin console"}),color:"text-[#4a4a5e]",bgColor:"bg-[#4a4a5e]/10",borderColor:"border-[#4a4a5e]/20",hoverBorder:"hover:border-[#4a4a5e]/50",hoverText:"group-hover:text-[#4a4a5e]",activeBorder:"border-[#4a4a5e]/50",description:e.text("The control plane. It manages your organization's account, team structure, billing, and security policies.",{context:"Description of the admin console"}),href:"https://admin.mistral.ai",ctaText:e.text("Go to Admin",{context:"Call to open the admin console"})}],{scrollToSection:r}=(0,i.useInterfaceSection)();return(0,o.jsx)("div",{className:"my-8 w-full not-prose",children:(0,o.jsx)(d,{options:t,onChange:r})})}},68423:(e,t,r)=>{"use strict";r.d(t,{A:()=>x,G:()=>u});var o=r(34697),n=r(83805),i=r(27247),a=r(36518),s=r(96365),l=r(26366),d=r(31145),c=r(40413);function u(e){let{options:t=[],value:r,onValueChange:a,placeholder:u="Select option...",searchPlaceholder:x="Search options...",emptyText:g="No option found.",disabled:h=!1,className:p,width:f,popoverClassName:v="",align:b="start",showChevron:j=!0,trigger:y,matchTriggerWidth:w=!0,renderItem:k}=e,[N,I]=n.useState(!1),A=t.find(e=>e.value===r),S=e=>{null==a||a(e===r?null:e),I(!1)},P=y||(0,o.jsxs)(l.Button,{variant:"outline",role:"combobox","aria-expanded":N,disabled:h,className:(0,s.cn)("justify-between",w?f:"",!A&&"text-muted-foreground",p),children:[(0,o.jsx)("span",{className:"truncate",children:A?A.label:u}),j&&(0,o.jsx)(i.A,{className:"ml-2 h-4 w-4 shrink-0 opacity-50"})]}),T=k||m;return(0,o.jsxs)(c.AM,{open:N,onOpenChange:I,children:[(0,o.jsx)(c.Wv,{asChild:!0,disabled:h,children:P}),(0,o.jsx)(c.hl,{className:(0,s.cn)("p-0",w&&"!w-[var(--radix-popover-trigger-width)]",!w&&v),align:b,side:"bottom",sideOffset:4,avoidCollisions:!1,children:(0,o.jsxs)(d.uB,{children:[(0,o.jsx)(d.G7,{placeholder:x,className:"h-9"}),(0,o.jsxs)(d.oI,{className:"scrollbar-none max-h-32",children:[(0,o.jsx)(d.xL,{children:g}),(0,o.jsx)(d.L$,{children:t.map(e=>(0,o.jsx)(T,{value:e.value,onSelect:S,option:e,isSelected:r===e.value,disabled:!!e.disabled},e.value))})]})]})})]})}let x=u,m=e=>{let{option:t,isSelected:r,disabled:n,onSelect:i,className:l,...c}=e;return(0,o.jsxs)(d.h_,{value:t.value,disabled:n,onSelect:i,className:(0,s.cn)(t.disabled&&"opacity-50 cursor-not-allowed",l),...c,children:[(0,o.jsx)("span",{className:"truncate",children:t.label}),(0,o.jsx)(a.A,{className:(0,s.cn)("ml-auto h-4 w-4",r?"opacity-100":"opacity-0")})]},t.value)}},68630:(e,t,r)=>{"use strict";r.r(t),r.d(t,{LatestModelCards:()=>l,ModelCardsBySlug:()=>s});var o=r(34697),n=r(32002),i=r(14684),a=r(65977);function s(e){let{slugs:t}=e,r=t.map(e=>(0,i.jD)(e)).filter(e=>!!e);return(0,o.jsx)(d,{models:r})}
1function l(e){let{count:t=6}=e,r=[...i.xM].filter(e=>e.releaseDate).sort((e,t)=>(t.releaseDate||"").localeCompare(e.releaseDate||"")).slice(0,t);return(0,o.jsx)(d,{models:r})}function d(e){let{models:t}=e,r=(0,n.useLingo)();return 0===t.length?null:(0,o.jsx)("div",{className:"not-prose grid grid-cols-1 md:grid-cols-2 gap-4 my-6",children:t.map(e=>(0,o.jsx)(a.O,{model:e,l:r,variant:"compact",showParameters:!0},e.name))})}},77014:(e,t,r)=>{"use strict";r.d(t,{p:()=>i});var o=r(34697);r(83805);var n=r(96365);function i(e){let{className:t,type:r,...i}=e;return(0,o.jsx)("input",{type:r,"data-slot":"input",className:(0,n.cn)("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input flex h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",t),...i})}},94627:(e,t,r)=>{Promise.resolve().then(r.t.bind(r,49790,23)),Promise.resolve().then(r.bind(r,38979)),Promise.resolve().then(r.bind(r,47571)),Promise.resolve().then(r.bind(r,89567)),Promise.resolve().then(r.bind(r,88922)),Promise.resolve().then(r.bind(r,95167)),Promise.resolve().then(r.bind(r,26144)),Promise.resolve().then(r.bind(r,21226)),Promise.resolve().then(r.bind(r,97e3)),Promise.resolve().then(r.bind(r,62850)),Promise.resolve().then(r.bind(r,43406)),Promise.resolve().then(r.bind(r,68630)),Promise.resolve().then(r.bind(r,54055)),Promise.resolve().then(r.bind(r,62060)),Promise.resolve().then(r.bind(r,5611)),Promise.resolve().then(r.bind(r,62325)),Promise.resolve().then(r.bind(r,3436)),Promise.resolve().then(r.bind(r,18989)),Promise.resolve().then(r.bind(r,22151)),Promise.resolve().then(r.bind(r,23913)),Promise.resolve().then(r.bind(r,19010)),Promise.resolve().then(r.bind(r,37190)),Promise.resolve().then(r.bind(r,11327)),Promise.resolve().then(r.bind(r,10899)),Promise.resolve().then(r.bind(r,26956)),Promise.resolve().then(r.bind(r,54930)),Promise.resolve().then(r.bind(r,23928)),Promise.resolve().then(r.bind(r,26366)),Promise.resolve().then(r.bind(r,97062)),Promise.resolve().then(r.bind(r,12750))},97e3:(e,t,r)=>{"use strict";r.r(t),r.d(t,{InteractiveGlossary:()=>x});var o=r(34697),n=r(83805),i=r(62561),a=r(77014),s=r(24223),l=r(23928);function d(e,t){return e.map(e=>(function(e,t){switch(e){case"vibe":return t.text("Vibe",{context:"Glossary category label"});case"api":return t.text("API",{context:"Glossary category label"});case"concepts":return t.text("Concepts",{context:"Glossary category label"});case"models":return t.text("Models",{context:"Glossary category label"});case"billing":return t.text("Billing",{context:"Glossary category label"});case"platform":return t.text("Platform",{context:"Glossary category label"})}})(e,t))}var c=r(32002);let u=["All",...Array.from({length:26},(e,t)=>String.fromCharCode(65+t))];function x(){let e=(0,c.useLingo)(),[t,r]=(0,n.useState)(""),[x,m]=(0,n.use
1State)("All"),g=(0,n.useMemo)(()=>[{term:e.text("Agent",{context:"Glossary term for an AI agent"}),definition:e.text("An AI assistant configured with specific instructions, tools, and an optional knowledge base. Agents behave consistently across conversations and can be shared across a team. In Vibe, the equivalent feature in Work is called a Skill. The legacy Chat tab is gone for most users, so use Skills in Work instead. Agents can also be built programmatically via the Agents API in Studio.",{context:"Definition of the Agent glossary term"}),categories:d(["vibe","api"],e)},{term:e.text("Context window",{context:"Glossary term for an AI model context limit"}),definition:(0,o.jsxs)(o.Fragment,{children:[e.text("The maximum number of tokens a model can process in a single request, including input (prompt and files) plus output combined. Earlier content is dropped when the limit is exceeded.",{context:"Definition of the Context window glossary term"})," ",(0,o.jsx)("em",{className:"text-foreground/50 not-italic text-xs",children:e.text("â Token",{context:"Cross-reference label from Context window to Token"})})]}),categories:d(["concepts"],e)},{term:e.text("Embeddings",{context:"Glossary term for vector embeddings"}),definition:(0,o.jsxs)(o.Fragment,{children:[e.text("Numerical vector representations of text that encode semantic meaning. Similar text produces similar vectors, enabling similarity search, clustering, and classification. Mistral Embed produces 1024-dimensional vectors.",{context:"Definition of the Embeddings glossary term"})," ",(0,o.jsx)("em",{className:"text-foreground/50 not-italic text-xs",children:e.text("Used in: RAG, search, recommendations.",{context:"Short note about how Embeddings is used"})})]}),categories:d(["models","concepts"],e)},{term:e.text("Free mode",{context:"Glossary term for the default free Studio API access tier"}),definition:(0,o.jsxs)(o.Fragment,{children:[e.text("Default Mistral access mode. No credit card required. Includes monthly usage with rate limits suitable for evaluation and prototyping.",{context:"Definition of the Free mode glossary term"})," ",(0,o.jsx)("em",{className:"text-foreground/50 not-italic text-xs",children:e.text("â Pay-as-you-go",{context:"Cross-reference label from Free mode to Pay-as-you-go"})})]}),categories:d(["billing"],e)},{term:e.text("FIM",{context:"Glossary term for fill-in-the-middle code completion"}),definition:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"text-foreground/60 text-xs",children:e.text("(fill-in-the-middle)",{context:"Expansion of the FIM acronym"})})," ",e.text("A code generation mode where the model generates text based on both preceding (prefix) and following (suffix) context. Used for mid-function completion in IDEs. Available in Codestral.",{context:"Definition of the FIM glossary term"})]}),categories:d(["models","concepts"],e)},{term:e.text("Function calling",{context:"Glossary term for model-initiated tool or API calls"}),definition:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"text-foreground/60 text-xs",children:e.text("(tool use)",{context:"Alternate term for Function calling"})})," ",e.text("A capability that lets the model request execution of external functions or APIs mid-conversation. Your application executes the function and returns the result, allowing the model to incorporate real-world data into its response.",{context:"Definition of the Function calling glossary term"})]}),categories:d(["api","concepts"],e)},{term:e.text("Guardrailing",{context:"Glossary term for output safety and policy controls"}),definition:e.text("Policies applied at the system level to restrict or shape model output, enforcing content policies, defining permitted output formats, and setting behavioral constraints without modifying the underlying model.",{context:"Definition of the Guardrailing glossary term"}),categories:d(["concepts"],e)},{term:e.text("Inference",{context:"Glossary term for running a trained AI model"}),definition:e.text("Running a trained model to generate a response. Calling the API is running inference, as distinct from training, which modifies model weights.",{context:"Definition of the Inference glossary term"}),categories:d(["concepts"],e)},{term:e.text("Studio",{context:"Glossary term for Mistral's developer platform"}),definition:e.text("Mistral AI's SaaS API and developer platform at console.mistral.ai. Provides API access, the Studio developer console, and model management tools.",{context:"Definition of the Studio glossary term"}),categories:d(["platform"],e)},{term:e.text("OCR",{context:"Glossary term for optical character recognition"}),definition:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"text-foreground
1/60 text-xs",children:e.text("(optical character recognition)",{context:"Expansion of the OCR acronym"})})," ",e.text("Extracting structured text and images from document files. Mistral OCR processes PDFs and scanned documents, preserving reading order and layout structure.",{context:"Definition of the OCR glossary term"})]}),categories:d(["api","concepts"],e)},{term:e.text("RAG",{context:"Glossary term for retrieval-augmented generation"}),definition:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"text-foreground/60 text-xs",children:e.text("(retrieval-augmented generation)",{context:"Expansion of the RAG acronym"})})," ",e.text("A technique that improves factual accuracy by retrieving relevant documents from an external knowledge base and including them in the prompt context. Reduces hallucinations and enables models to answer from proprietary or up-to-date data.",{context:"Definition of the RAG glossary term"})," ",(0,o.jsx)("em",{className:"text-foreground/50 not-italic text-xs",children:e.text("Used with: Embeddings, Agents.",{context:"Short note about how RAG is used"})})]}),categories:d(["concepts"],e)},{term:e.text("Pay-as-you-go",{context:"Glossary term for pay-as-you-go usage"}),definition:(0,o.jsxs)(o.Fragment,{children:[e.text("Optional usage billing beyond included monthly usage. Billed by token with no monthly commitment. Suitable for workloads above Free mode limits.",{context:"Definition of the Pay-as-you-go glossary term"})," ",(0,o.jsx)("em",{className:"text-foreground/50 not-italic text-xs",children:e.text("â Free mode",{context:"Cross-reference label from Pay-as-you-go to Free mode"})})]}),categories:d(["billing"],e)},{term:e.text("Streaming",{context:"Glossary term for streaming model output"}),definition:e.text("A response delivery mode where tokens are sent as they are generated rather than as a single complete response. Reduces perceived latency in interactive applications such as chat interfaces.",{context:"Definition of the Streaming glossary term"}),categories:d(["api","concepts"],e)},{term:e.text("System prompt",{context:"Glossary term for the instruction that sets model behavior"}),definition:e.text("An instruction at the start of a conversation that shapes model behavior throughout the session. Defines persona, output format, constraints, and context. Not shown to end users, but consumes tokens toward the context window limit.",{context:"Definition of the System prompt glossary term"}),categories:d(["concepts"],e)},{term:e.text("Temperature",{context:"Glossary term for a model sampling parameter"}),definition:e.text("A parameter (0.0 - 1.0) that controls output randomness. Lower values (0.2) produce focused, deterministic output. Higher values (0.8) produce more varied and creative output. Set to 0 for tasks where consistency and reproducibility are critical.",{context:"Definition of the Temperature glossary term"}),categories:d(["api","concepts"],e)},{term:e.text("Token",{context:"Glossary term for the text units used by language models"}),definition:e.text("The basic unit of text models process: subword fragments, not full words. Roughly 1 token â 0.75 English words â 4 characters. Token count determines API pricing and context window consumption.",{context:"Definition of the Token glossary term"}),categories:d(["billing","concepts"],e)},{term:e.text("Vibe",{context:"Glossary term for Mistral's unified agent"}),definition:e.text("Mistral's unified agent. Runs in two modes: Work (the unified chat and work experience in the web and mobile apps at chat.mistral.ai) and Code (CLI, VS Code extension, or remote web sessions at code.mistral.ai). Legacy Chat features such as Agents and Memories have equivalents in Work, and the legacy Chat tab remains available only to some Enterprise organizations during the migration window.",{context:"Definition of the Vibe glossary term"}),categories:d(["vibe"],e)},{term:e.text("Workspace",{context:"Glossary term for an isolated Mistral organization environment"}),definition:e.text("An isolated environment within a Mistral organization. Each workspace has its own API keys, usage metrics, and billing bucket. Use workspaces to separate development and production, or to isolate usage and spending by team or project.",{c
1ontext:"Definition of the Workspace glossary term"}),categories:d(["platform","billing"],e)}],[e]),h=(0,n.useMemo)(()=>g.filter(e=>{let r=e.term.toLowerCase().includes(t.toLowerCase()),o="All"===x||e.term.toUpperCase().startsWith(x);return r&&o}),[t,x]);return(0,o.jsxs)("div",{className:"flex flex-col gap-6 my-8 w-full",children:[(0,o.jsxs)("div",{className:"sticky top-16 z-10 -mx-4 px-4 py-4 md:static md:mx-0 md:p-0 md:bg-transparent bg-background/80 backdrop-blur-sm",children:[(0,o.jsxs)("div",{className:"relative mb-4",children:[(0,o.jsx)(i.WI,{className:"absolute left-3 top-1/2 h-5 w-5 -translate-y-1/2 text-muted-foreground"}),(0,o.jsx)(a.p,{placeholder:e.text("Search glossary terms... (e.g. RAG, OCR)",{context:"Placeholder in the glossary search box"}),value:t,onChange:e=>{r(e.target.value),e.target.value&&m("All")},className:"pl-10 h-12 text-lg shadow-sm w-full bg-background"})]}),(0,o.jsx)("div",{className:"flex gap-2 overflow-x-auto pb-2 scrollbar-hide snap-x",children:u.map(e=>"All"===e||g.some(t=>t.term.toUpperCase().startsWith(e))?(0,o.jsx)(s.E,{variant:x===e?"default":"outline",className:"snap-start cursor-pointer transition-all hover:bg-primary/90 text-sm whitespace-nowrap px-3 py-1.5 ".concat(x===e?"shadow-md scale-105":"hover:scale-105"),onClick:()=>{m(e),"All"!==e&&r("")},children:e},e):null)})]}),0===h.length?(0,o.jsxs)("div",{className:"py-20 text-center flex flex-col items-center justify-center opacity-70",children:[(0,o.jsx)("p",{className:"text-xl font-medium text-muted-foreground",children:e.text('No terms found matching "{query}"',{values:{query:t},context:"Empty-state message when the glossary search returns no results"})}),(0,o.jsx)("p",{className:"mt-2 text-sm text-muted-foreground",children:e.text("Try adjusting your filters or search query.",{context:"Secondary hint in the glossary empty state"})})]}):(0,o.jsx)(l.Accordion,{type:"multiple",className:"w-full not-prose",children:h.map(e=>{let t=e.term.toLowerCase().replace(/[^a-z0-9\s-]/g,"").trim().replace(/\s+/g,"-");return(0,o.jsxs)(l.AccordionItem,{value:t,className:"group border-none",children:[(0,o.jsx)(l.AccordionTrigger,{id:t,className:"flex w-full items-center justify-between gap-4 rounded-none py-3 text-left hover:no-underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/50 [&[data-state=open]>div_svg]:rotate-180",children:(0,o.jsxs)("div",{className:"flex min-w-0 items-center gap-3",children:[(0,o.jsx)("span",{className:"font-bold text-base text-foreground leading-tight",children:e.term}),(0,o.jsx)("div",{className:"flex flex-wrap gap-1",children:e.categories.map(e=>(0,o.jsx)("span",{className:"inline-flex items-center rounded-sm bg-muted px-1.5 py-0.5 text-[10px] uppercase font-medium text-muted-foreground",children:e},e))})]})}),(0,o.jsx)(l.AccordionContent,{className:"pt-1 pb-3 border-t border-foreground
1/10",children:(0,o.jsx)("div",{className:"text-sm text-muted-foreground leading-relaxed",children:e.definition})})]},e.term)})})]})}}},e=>{e.O(0,[9051,9097,5028,2002,6307,9984,8219,9790,1461,8122,1463,9562,5147,149,8229,8591,4492,2561,1677,6642,7120,2894,7520,5254,1397,7358],()=>e(e.s=94627)),_N_E=e.O()}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.