Skip to content

Commit 187627e

Browse files
authored
fix: build Metal by default for Apple silicone devices (#150)
1 parent cab617a commit 187627e

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ jobs:
181181
182182
if (process.env.ARTIFACT_NAME === "win" && arch === "arm64") {
183183
buildNodeVersion = windowsOnArmNodeVersion;
184+
} else if (process.env.ARTIFACT_NAME === "mac" && arch === "arm64") {
185+
additionalFlags.push("--metal");
184186
} else if (process.env.ARTIFACT_NAME === "mac" && arch === "x64") {
185187
additionalFlags.push("--no-metal");
186188
}

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@
8585
"grammar",
8686
"json-grammar",
8787
"json-schema-grammar",
88+
"functions",
89+
"function-calling",
90+
"embedding",
8891
"temperature",
8992
"topK",
9093
"topP",

0 commit comments

Comments
 (0)