forked from Blendman974/faceclaw
Support Apple Intelligence as an on-device AI model for the voice assistant/etc
This commit is contained in:
1 parent
3c3aa31542
commit
4973fd2aea
22 files changed
+1551
-40
No files matched your search
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
# Run one assistant request against Apple's on-device model on this Mac (macOS 26.4+,
|
||||
# Apple Intelligence on), through the same Swift bridge the iOS app uses, with the
|
||||
# assistant's real tool list. Prints tool routing, tool calls and the streamed reply.
|
||||
# scripts/apple-llm-harness/run.sh "set a timer for five minutes" ["previous prompt"]
|
||||
set -euo pipefail
|
||||
here="$(cd "$(dirname "$0")" && pwd)"
|
||||
out="${TMPDIR:-/tmp}/faceclaw-apple-llm-harness"
|
||||
mkdir -p "$out"
|
||||
node "$here/extract-tools.cjs" > "$out/tools.json"
|
||||
swiftc -swift-version 5 -parse-as-library -target "$(uname -m)-apple-macos26.4" \
|
||||
"$here/../../App_Resources/iOS/src/FaceclawSystemLanguageModel.swift" "$here/main.swift" -o "$out/harness"
|
||||
"$out/harness" "$out/tools.json" "$@"
|
||||
Reference in new issue
Block a user