Skip to content

Add support for Apple Foundation Models (fm) provider - #6

Merged
evilmarty merged 1 commit into
mainfrom
fm-provider
Sep 17, 2026
Merged

evilmarty merged 1 commit into
mainfrom
fm-provider

Conversation

@evilmarty

Copy link
Copy Markdown
Owner

This pull request introduces support for the fm provider, enabling the use of Apple Foundation Models on macOS 27+ via the built-in fm CLI.

  • Added fm provider implementation for macOS, utilizing the fm respond CLI for local model inference.
  • Introduced --fm shorthand for the fm provider and updated CLI documentation.
  • Implemented platform-specific handling:
  • On macOS, the fm provider is fully supported.
  • On non-macOS platforms, selecting fm results in a clear error message.
  • Updated README.md to document the fm provider and its usage.
  • Added unit tests for fm provider functionality on macOS and non-macOS platforms.
  • Refactored provider factory logic to include fm as a valid provider option.

- Introduced `fm` provider for macOS 27+ using the built-in Apple Foundation Models CLI.
- Added `--fm` shorthand and updated documentation to reflect new provider support.
- Implemented platform-specific handling: `fm` is only available on macOS, with clear errors on unsupported platforms.
@evilmarty
evilmarty merged commit 152af3c into main Sep 17, 2026
2 checks passed
@evilmarty
evilmarty deleted the fm-provider branch September 17, 2026 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant