{"full_name":"huggingface/AnyLanguageModel","owner":"huggingface","name":"AnyLanguageModel","shard":"1","url":"https://github.com/huggingface/AnyLanguageModel","description":"An API-compatible, drop-in replacement for Apple's Foundation Models framework with support for custom language model providers.","homepage":"","topics":[],"tag_pages":[],"language":"Swift","license":"Apache-2.0","avatar":"https://avatars.githubusercontent.com/u/25720743?v=4","created_at":"2025-10-05T12:32:00Z","pushed_at":"2026-11-25T13:50:56Z","metrics":{"stars":993,"forks":111,"watchers":12,"issues":87,"prs":352,"releases":41,"issues_open":4,"issues_closed":83,"prs_open":5,"prs_closed":52,"prs_merged":295,"discussions":0},"growth":{"day":{"stars":0,"forks":0,"base_day":"2026-11-27"},"week":{"stars":3,"forks":1,"base_day":"2026-11-21"}},"history":{"dates":["2026-11-21","2026-11-22","2026-11-23","2026-11-24","2026-11-25","2026-11-26","2026-11-27","2026-11-28"],"stars":[990,990,989,990,991,991,993,993],"forks":[110,110,110,111,111,111,111,111],"watchers":[null,12,12,12,12,12,12,12],"issues_open":[null,4,4,4,4,4,4,4],"prs_open":[null,5,5,5,5,5,5,5]},"boards":{},"same_owner":[{"full_name":"huggingface/transformers","name":"transformers","shard":"1","boards":{"total":55}},{"full_name":"huggingface/accelerate","name":"accelerate","shard":"1","boards":{}},{"full_name":"huggingface/agents-course","name":"agents-course","shard":"1","boards":{}},{"full_name":"huggingface/alignment-handbook","name":"alignment-handbook","shard":"1","boards":{}},{"full_name":"huggingface/diffusers","name":"diffusers","shard":"1","boards":{"daily_watchers":84}},{"full_name":"huggingface/parler-tts","name":"parler-tts","shard":"1","boards":{}},{"full_name":"huggingface/pytorch-image-models","name":"pytorch-image-models","shard":"1","boards":{}},{"full_name":"huggingface/sentence-transformers","name":"sentence-transformers","shard":"1","boards":{}},{"full_name":"huggingface/smolagents","name":"smolagents","shard":"1","boards":{}},{"full_name":"huggingface/transformers.js","name":"transformers.js","shard":"1","boards":{}},{"full_name":"huggingface/trl","name":"trl","shard":"1","boards":{}}],"issues":[{"number":210,"title":"Roadmap: 1.0 (Foundation Models 26) and 2.0 (Foundation Models 27)","comments":7,"created_at":"2026-09-02T13:27:09Z"},{"number":114,"title":"Feature Request: Automatic Context Window Management / Trimming","comments":5,"created_at":"2026-02-05T21:02:58Z"},{"number":302,"title":"Support the Gemini Interactions API in GeminiLanguageModel","comments":2,"created_at":"2026-10-06T10:32:59Z"},{"number":38,"title":"Audio input support?","comments":2,"created_at":"2025-11-23T07:12:09Z"}],"discussions":[],"latest_release":{"name":"1.4.1","tag":"1.4.1","published_at":"2026-11-20T11:27:06Z","body":"This release fixes how AnyLanguageModel sends instructions to Anthropic and Gemini. Both providers used to get a session's instructions as a user message, so the model read them as something the user said. `AnthropicLanguageModel` now sends them in the top-level `system` field (#433), and `GeminiLanguageModel` sends them in `systemInstruction` (#436). Sessions with instructions can respond differently than they did in 1.4.0. For Anthropic, a `system` value that you set in `extraBody` still wins.\n\n`OpenAILanguageModel` now sorts the keys of every request body at every level, so the same request always encodes to the same bytes, and the prompt prefix stays stable for prompt caching (#432, #437).\n\nThanks to @shura-v for the clear report and reproduction in #431, and to @gtokman for sorting the request keys (#432).\n\n## What's Changed\n* Send Anthropic instructions in the top-level system field by @mattt in https://github.com/huggingface/AnyLanguageModel/pull/433\n* Allow extra Foundation Models evaluations in a native session test by @mattt in https://github.com/huggingface/AnyLanguageModel/pull/434\n* Tell native evaluations of dynamic instructions from ours in a test by @mattt in https://github.com/huggingface/AnyLanguageModel/pull/435\n* OpenAI: sort request body keys so prompt caches can hit by @gtokman in https://github.com/huggingface/AnyLanguageModel/pull/432\n* Send Gemini instructions in the systemInstruction field by @mattt in https://github.com/huggingface/AnyLanguageModel/pull/436\n* Test sorted keys in recorded OpenAI request bodies by @mattt in https://github.com/huggingface/AnyLanguageModel/pull/437\n* Bump README install snippets to 1.4.1 by @mattt in https://github.com/huggingface/AnyLanguageModel/pull/438\n\n\n**Full Changelog**: https://github.com/huggingface/AnyLanguageModel/compare/1.4.0...1.4.1","is_prerelease":false},"readme":true,"readme_zh":false,"news":[],"stale":false,"snapshot_at":"2026-11-28T10:06:57Z","history_start":"2026-09-06"}