AnyLanguageModel reaches 1.0 with expanded provider support
Brief by TrendCue AI · Dates refer to the original sources.
Hugging Face announced AnyLanguageModel 1.0, a Swift package that lets developers use local and hosted language models through an API compatible with Apple’s Foundation Models framework. The release arrives alongside swift-huggingface 1.0 and swift-xet 1.0.
A broader shared API
Hugging Face says tool calling and guided generation now work with every provider. Image prompts use Foundation Models 27 syntax, including with the system model on iOS, macOS and visionOS 27. On OS 27, the package also supports models conforming to Foundation Models’ LanguageModel protocol, including Core AI models. The original release described tool calling across providers and guided generation as work still underway.
Local and hosted options
The same session code supports the system model, open-weight models through llama.cpp, MLX and Core ML, and hosted providers. These include OpenAI, Anthropic, Gemini, Ollama and Hugging Face Inference Providers. Hosted models support guided generation, streaming tool calls and response token usage, according to the announcement. Reasoning blocks are omitted from requests when a newly selected provider cannot replay them.
Downloads and migration
Hugging Face says swift-huggingface and swift-xet bring accelerated Hub model downloads to Swift apps. Existing users are directed to the release notes for migration guidance. The package also runs on Linux, allowing the same code to work on a server.
Original sources
Original websites and X posts open in a new tab.