Add macOS LLM model engine support and environment setup

This commit is contained in:
Adolfo Reyna
2026-08-07 18:23:38 -04:00
parent 62d805e565
commit 598d55e383
7 changed files with 378 additions and 11 deletions
+13 -4
View File
@@ -13,14 +13,23 @@ swiftc -O -parse-as-library SpeechHelper.swift -o speech-helper
echo "built $HERE/speech-helper"
if ./speech-helper --check >/dev/null 2>&1; then
echo "it runs — ./speech-helper --check for details"
echo "speech-helper runs — ./speech-helper --check for details"
else
status=$?
if [ "$status" -eq 137 ]; then
echo "built, but killed on launch (137): request binary approval for"
echo "built speech-helper, but killed on launch (137): request binary approval for"
echo " $HERE/speech-helper"
echo "then wait a few minutes for it to sync."
else
echo "built, but exited $status — run ./speech-helper --check to see why"
echo "built speech-helper, but exited $status — run ./speech-helper --check to see why"
fi
fi
if swiftc -O LLMHelper.swift -o llm-helper 2>/dev/null; then
echo "built $HERE/llm-helper"
if ./llm-helper --check >/dev/null 2>&1; then
echo "llm-helper runs — ./llm-helper --check for details"
fi
else
echo "could not build llm-helper with FoundationModels; fallback to Python MLX/PyObjC bridge will be available"
fi