苹果公司正式推出 Foundation Models 框架,为开发者提供原生 Swift API,以便将大型语言模型直接集成至应用程序中 1。该框架不仅支持设备端的 Apple Foundation Models 及 Private Cloud Compute,还允许通过同一套 Swift API 接入 Claude、Gemini 等服务器端第三方模型 1。
在功能扩展方面,新框架引入了 Dynamic Profiles(动态配置文件)机制,使开发者能够动态更新会话中的模型、工具及指令配置 1。此外,框架内置评估系统用于测试提示词并验证功能特性,并在 macOS 27 中新增了名为 "fm" 的命令行工具 1。为了拓宽生态兼容性,苹果还发布了 Python SDK,将该框架的能力延伸至 Python 开发环境 1。针对 App Store 小型企业计划中下载量低于 200 万的开发者,苹果提供了免费访问 Private Cloud Compute 上 Apple Foundation Models 的权益 1。
Apple has released the Foundation Models framework, a native Swift API designed to integrate large language models directly into applications. 1 The framework supports on-device Apple Foundation Models and Private Cloud Compute, while also extending functionality to server-side models such as Claude and Gemini through the same Swift interface. 1
Key new features include Dynamic Profiles, which allow developers to update session models, tools, and instructions dynamically, and an Evaluations framework for testing prompts and validating features. 1 A new command-line tool named fm is included in macOS 27. 1 Additionally, a Python SDK extends the framework’s capabilities to the Python ecosystem. 1 Developers participating in the App Store Small Business Program with fewer than two million downloads are granted free access to Apple Foundation Models on Private Cloud Compute. 1
评论
还没有评论,欢迎留下第一条。