import Downloader from './downloader' import Signup from './signup' export default async function Download() { const res = await fetch('https://api.github.com/repos/jmorganca/ollama/releases', { next: { revalidate: 60 } }) const data = await res.json() if (data.length === 0) { return null } const latest = data[0] const assets = latest.assets || [] if (assets.length === 0) { return null } // todo: get the correct asset for the current arch/os const asset = assets.find( (a: any) => a.name.toLowerCase().includes('darwin') && a.name.toLowerCase().includes('.zip') ) if (!asset) { return null } return (

Downloading Ollama

Problems downloading?{' '} Try again

Sign up for updates

) }