Skip to content

Commit

Permalink
Update PowerShell_Ollama_AI_Manifests.mkape
Browse files Browse the repository at this point in the history
Trailing spaces fix.
  • Loading branch information
DReneau authored Oct 26, 2024
1 parent f39e2dd commit 5911dca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/Apps/PowerShell_Ollama_AI_Manifests.mkape
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ Version: 1.0
Id: 48146441-174c-43a6-8dd0-8c317f1004e2
ExportFormat: txt
Processors:
-
-
Executable: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
CommandLine: "$destinationPath = '%destinationDirectory%\\ollama_combined_manifests.txt'; Remove-Item -Path $destinationPath -ErrorAction SilentlyContinue; $users = Get-ChildItem -Path '%SourceDirectory%\\Users' -Directory; foreach ($user in $users) { $ollamaPath = Join-Path $user.FullName '.ollama'; if (Test-Path $ollamaPath) { $modelsPath = Join-Path $ollamaPath 'models\\manifests'; if (Test-Path $modelsPath) { Get-ChildItem -Path $modelsPath -Recurse -File | ForEach-Object { $modelName = $_.Name; $fileContent = Get-Content -Path $_.FullName -Raw -ErrorAction SilentlyContinue; if ($fileContent -match '\"mediaType\"') { $entry = ('{0} | {1}' -f $_.FullName, $fileContent); Add-Content -Path $destinationPath -Value $entry; Add-Content -Path $destinationPath -Value \"`r`n`r`n\"; } } } } }"
ExportFormat: txt

# Documentation
# Documentation
# https://ollama.com/blog | https://github.com/ollama/ollama | https://hub.docker.com/r/ollama/ollama
# Ollama is used for self-hosted AI inference, and it supports many models out of the box.
# Ollama serves as the backend for common AI projects such as OpenWebUI, among others.
Expand Down

0 comments on commit 5911dca

Please sign in to comment.