AnyLanguageModel

AnyLanguageModel

Drop-in replacement for Apple's Foundation Models

Description

Apple's Foundation Models framework is nice but limited to the system model. AnyLanguageModel from Hugging Face is an API-compatible drop-in replacement for Apple's Foundation Models supporting any provider.

Change one import to use local models or cloud providers like OpenAI and Anthropic through the same API.

Features



Compatible:One-line swap.

Any model:Local and cloud.

Swift:Native.

Hugging Face:Official.