Repository navigation
Add Apple's on-device model through Polhem.AI.Apple 0.1.0, and a Claude template - #122
Merged
Merged
Conversation
On macOS, Settings > Models gains an Apple Intelligence template that uses the model built into macOS through Polhem.AI.Apple's IChatClient: nothing to install, no key, nothing leaves the computer. The model takes no tools, so its requests go without them from the first one. A model without tools is now told so in place of the instructions about the tools, instead of after them. Before, it was told both to call propose_edits and that it had no tools, and a small model would claim to have proposed edits.
jeff377
enabled auto-merge (squash)
December 5, 2026 05:56
Claude's OpenAI-compatible endpoint at https://api.anthropic.com/v1 takes the requests the app already sends, so the template only fills in the address and claude-opus-5-5. It comes second, after OpenAI.
auto-merge was automatically disabled
December 5, 2026 06:08
Pull Request is not mergeable
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
apple:on-device). It uses the model built into macOS throughPolhem.AI.Apple0.1.0 (nuget.org): nothing to install, no key, and nothing leaves the computer. It needs macOS 26 or later on Apple Silicon with Apple Intelligence on.ToolFallbackChatClientcan start with tools off and its requests go without them from the first one.NoToolsText. Before,NoToolsTextwas appended after instructions that still said to callpropose_edits, and the on-device model answered that it had proposed edits when it had not.https://api.anthropic.com/v1withclaude-opus-5-5.Tests
dotnet buildanddotnet test(Release): 552 passed, 3 skipped.apple:on-devicecounts as a complete address and is recognized case-insensitively.