Skip to content

Commit

Permalink
Update PowerShell_Ollama_AI_Blobs.mkape
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRathbun authored Oct 26, 2024
1 parent e49e861 commit a5187f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Modules/Apps/PowerShell_Ollama_AI_Blobs.mkape
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Processors:
CommandLine: "$destinationPath = '%DestinationDirectory%\\ollama_combined_blobs.txt'; $usersPath = Join-Path '%SourceDirectory%' 'Users'; Get-ChildItem -Path $usersPath -Directory | ForEach-Object { $modelsPath = Join-Path $_.FullName '.ollama\\models\\blobs'; if (Test-Path $modelsPath) { Get-ChildItem -Path $modelsPath -File | Where-Object { $_.Length -lt 2KB } | ForEach-Object { $fileContent = Get-Content -Path $_.FullName -Raw -ErrorAction SilentlyContinue; if ($fileContent -match '\"model_format\"') { $entry = ('{0} | {1}' -f $_.Name, $fileContent); Add-Content -Path $destinationPath -Value $entry; Add-Content -Path $destinationPath -Value \"`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 a5187f1

Please sign in to comment.