tsfm:在 macOS 上通过 TypeScript 调用 Apple 端侧基础模型
meteorologicalballoonfronttooth549/tsfm · Provide on-device Apple Foundation Models inference in TypeScript with streaming, structured output, and chat-style APIs for secure, local AI processing.
tsfm 是一个基于 TypeScript 和 Node.js 的工具库,用于在 macOS 26 及以上系统中访问 Apple 的端侧 Foundation Models,实现本地 AI 推理。它支持流式输出、结构化输出与聊天式 API,数据保留在设备本地以保护隐私,可用于构建虚拟助手、语言翻译、文本摘要和定制 AI 工作流等场景。
评论 · 分享第一个看法