You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add -w/--webui switch for llama-cpp webui integration (#15)
* Add -w switch for llama-cpp webui integration
- Add -w/--webui CLI flag to enable webui and open browser
- Add llama.cpp as git submodule (sparse checkout for webui only)
- Add /props endpoint for llama.cpp webui compatibility
- Add webui serving with gzip decompression and CSS injection
- Make 'model' field optional in chat completion requests
- Add Makefile targets: submodules, webui, build-with-webui
- Update build-portable.sh to include webui resources
- Update .gitignore for webui build artifacts
The webui uses OpenAI-compatible endpoints (/v1/chat/completions,
/v1/models, /health) which are already implemented. CSS injection
hides the attachment button since AFM doesn't support file uploads.
Note: Most webui settings (penalties, top-k, etc.) have no effect
as Apple Foundation Model only supports temperature parameter.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Add Homebrew distribution support for webui
- Add Homebrew-style paths to webui discovery (/usr/local/share/afm/webui/,
/opt/homebrew/share/afm/webui/)
- Update create-distribution.sh to include webui in tarball
- Update portable install script to install webui to share directory
This ensures the webui works when installed via Homebrew tap or
portable distribution package.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
* Add AFM branding and pin llama.cpp submodule version
- Inject JavaScript to rebrand webui ("Apple Foundation Models" instead of "llama.cpp")
- Change subtitle to "Type a message to get started" (removes upload reference)
- Update Makefile to document pinned llama.cpp commit
- Add submodule-status target to show pinned versions
- Remove --recursive flag (not needed for webui-only sparse checkout)
The llama.cpp submodule is pinned to commit 0e4ebeb05 for reproducible builds.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
0 commit comments