Add macOS LLM model engine support and environment setup
This commit is contained in:
+13
-4
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user