UNPKG

node-llama-cpp

Version:

Run AI models locally on your machine with node.js bindings for llama.cpp. Enforce a JSON schema on the model output on the generation level

15 lines 365 B
import process from "process"; export function getPlatform() { switch (process.platform) { case "win32": case "cygwin": return "win"; case "linux": case "android": return "linux"; case "darwin": return "mac"; } return process.platform; } //# sourceMappingURL=getPlatform.js.map