From the source
Hugging Face introduced AnyLanguageModel, a Swift package that provides a unified API for local and remote LLMs on
Apple platforms, supporting multiple providers including Apple Foundation Models, Core ML, MLX, llama.cpp, Ollama,
OpenAI,
Anthropic, Google Gemini, and Hugging Face Inference Providers.





