What's New
Bug Fixes
- Improved error handling for context window exceeded errors - When the conversation exceeds Apple Foundation Models' 4096 token limit, the WebUI now displays a clear, formatted error message in the chat instead of silently stopping
- Errors are shown as visible assistant messages with emoji formatting
- Proper stream termination ensures the WebUI exits its waiting state
Changes
- Added
contextWindowExceeded error type with token count extraction
- Error messages include specific token counts when available
- OpenAI-compatible
context_length_exceeded error type for API responses
Installation
Homebrew (recommended)
brew tap scouzi1966/tap
brew install afm
Manual
tar -xzf afm-v0.9.1-arm64.tar.gz
cd afm-v0.9.1-arm64
./install.sh
Requirements
- macOS 26+ with Apple Intelligence enabled
- Apple Silicon Mac (M1/M2/M3/M4 series)