1import{n as e,o as t}from"./rolldown-runtime-CMxvf4Kt.js";import{F as n,L as r,R as i}from"../vendor/vendor-data-runtime-nLFaCKB0.js";import{Ao as a,jo as o}from"./app-const-BzFqCjOv.js";import{Do as s,bo as c,vo as l,wo as u}from"./ScrollArea-CdDxdn_v.js";import{$a as d,Za as f,ir as p,jn as m,n as h}from"./es-D7HWafs1.js";import{k as g,n as _}from"./es-D3_QMuVV.js";import{n as v,r as y}from"./base-ui-Bi3Dz7GG.js";import{lr as b,mr as x}from"./index-Doip7UYu.js";var S,C,w,T,E,D=e((()=>{b(),h(),v(),_(),c(),f(),S=t(o()),n(),C=t(a()),w=`ant`,T=u(({css:e,cssVar:t})=>({steps:e` 2 margin-block-start: 32px; 3 &.${w}-steps-small .${w}-steps-item-title { 4 margin-block-end: 16px; 5 font-size: 16px; 6 font-weight: bold; 7 } 8 9 .${w}-steps-item-description { 10 margin-block-end: 24px; 11 } 12 13 .${w}-steps-icon { 14 color: var(--steps-icon-color, ${t.colorText}) !important; 15 } 16 `})),E=(0,S.memo)(()=>{let e=(0,S.useMemo)(()=>{if(typeof window>`u`)return`#fff`;let e=s.colorPrimary,t=e.match(/var\((--[^),\s]+)/)?.[1];return d((t?getComputedStyle(document.documentElement).getPropertyValue(t).trim():e)||`#1677ff`)},[]),{t}=r(`components`);return(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(x,{provider:`ollama`,size:30,style:{marginBottom:-8,marginLeft:4}}),(0,C.jsx)(y,{items:[{children:(0,C.jsx)(g,{className:T.steps,direction:`vertical`,size:`small`,style:{"--steps-icon-color":e},items:[{description:(0,C.jsx)(i,{i18nKey:`OllamaSetupGuide.install.description`,ns:`components`,components:[(0,C.jsx)(`span`,{},`0`),(0,C.jsx)(`a`,{href:`https://ollama.com/download`,rel:`noreferrer`,target:`_blank`},`1`)]}),status:`process`,title:t(`OllamaSetupGuide.install.title`)},{description:(0,C.jsxs)(l,{gap:8,children:[t(`OllamaSetupGuide.cors.description`),(0,C.jsxs)(l,{gap:8,children:[t(`OllamaSetupGuide.cors.macos`),(0,C.jsx)(m,{language:`bash`,children:`launchctl setenv OLLAMA_ORIGINS "*"`}),t(`OllamaSetupGuide.cors.reboot`)]})]}),status:`process`,title:t(`OllamaSetupGuide.cors.title`)}]}),key:`macos`,label:`macOS`},{children:(0,C.jsx)(g,{className:T.steps,direction:`vertical`,size:`small`,style:{"--steps-icon-color":e},items:[{description:(0,C.jsx)(i,{i18nKey:`OllamaSetupGuide.install.description`,ns:`components`,components:[(0,C.jsx)(`span`,{},`0`),(0,C.jsx)(`a`,{href:`https://ollama.com/download`,rel:`noreferrer`,target:`_blank`},`1`)]}),status:`process`,title:t(`OllamaSetupGuide.install.title`)},{description:(0,C.jsxs)(l,{gap:8,children:[t(`OllamaSetupGuide.cors.description`),(0,C.jsx)(`div`,{children:t(`OllamaSetupGuide.cors.windows`)}),(0,C.jsx)(`div`,{children:t(`OllamaSetupGuide.cors.reboot`)})]}),status:`process`,title:t(`OllamaSetupGuide.cors.title`)}]}),key:`windows`,label:t(`OllamaSetupGuide.install.windowsTab`)},{children:(0,C.jsx)(g,{className:T.steps,direction:`vertical`,size:`small`,style:{"--steps-icon-color":e},items:[{description:(0,C.jsxs)(l,{gap:8,children:[t(`OllamaSetupGuide.install.linux.command`),(0,C.jsx)(m,{language:`bash`,children:`curl -fsSL https://ollama.com/install.sh | sh`}),(0,C.jsx)(`div`,{children:(0,C.jsx)(i,{i18nKey:`OllamaSetupGuide.install.linux.manual`,ns:`components`,components:[(0,C.jsx)(`span`,{},`0`),(0,C.jsx)(`a`,{href:`https://github.com/ollama/ollama/blob/main/docs/linux.md`,rel:`noreferrer`,target:`_blank`},`1`)]})})]}),status:`process`,title:t(`OllamaSetupGuide.install.title`)},{description:(0,C.jsxs)(l,{gap:8,children:[(0,C.jsx)(`div`,{children:t(`OllamaSetupGuide.cors.description`)}),(0,C.jsx)(`div`,{children:t(`OllamaSetupGuide.cors.linux.systemd`)}),(0,C.jsx)(m,{language:`bash`,children:` sudo systemctl edit ollama.service`}),t(`OllamaSetupGuide.cors.linux.env`),(0,C.jsx)(p,{fullFeatured:!0,showLanguage:!0,fileName:`ollama.service`,language:`bash`,children:`[Service] 17 18Environment="OLLAMA_ORIGINS=*"`}),t(`OllamaSetupGuide.cors.linux.reboot`)]}),status:`process`,title:t(`OllamaSetupGuide.cors.title`)}]}),key:`linux`,label:`Linux`},{children:(0,C.jsx)(g,{className:T.steps,direction:`vertical`,size:`small`,style:{"--steps-icon-color":e},items:[{description:(0,C.jsxs)(l,{gap:8,children:[t(`OllamaSetupGuide.install.description`),(0,C.jsx)(`div`,{children:t(`OllamaSetupGuide.install.docker`)}),(0,C.jsx)(m,{language:`bash`,children:`docker pull ollama/ollama`})]}),status:`process`,title:t(`OllamaSetupGuide.install.title`)},{description:(0,C.jsxs)(l,{gap:8,children:[t(`OllamaSetupGuide.cors.description`),(0,C.jsx)(p,{fullFeatured:!0,showLanguage:!0,fileName:`ollama.service`,language:`bash`,children:`docker run -d --gpus=all -v ollama:/root/.ollama -e OLLAMA_ORIGINS="*" -p 11434:11434 --name ollama ollama/ollama`})]}),status:`process`,title:t(`OllamaSetupGuide.cors.title`)}]}),key:`docker`,label:`Docker`}],style:{width:`500px`}})]})})}));export{D as n,E as t};
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.