functions/LemonAI-ListAllModels.ps1

function LemonAI-ListAllModels{
    $session = New-Object Microsoft.PowerShell.Commands.WebRequestSession
    $content=Invoke-WebRequest -UseBasicParsing -Uri "https://ollama.com/library?sort=popular"

    $content=($content.Links | Where-Object {$_.class -eq "group w-full"})
    foreach($item in $content){$item.href.Replace("/library/","")}
}