Repository navigation
feat(chat): Suggest replies with the on-device language model - #2798
Draft
karlitschek wants to merge 2 commits into
Draft
karlitschek wants to merge 2 commits into
karlitschek wants to merge 2 commits into
Conversation
When the last message in a chat is a text message from somebody else,
up to three short reply suggestions are shown above the input bar.
Tapping one puts it into the text field, so it can still be changed
before sending. The row disappears as soon as something is typed.
The suggestions are generated with Apple's Foundation Models framework,
entirely on the device, from the last few text messages of the chat.
Nothing is sent to the server or anywhere else. The feature is only
available on iOS 26 with Apple Intelligence enabled and a supported
language, and can be turned off in Settings ("Suggested replies").
Guided generation keeps the output to three replies, which are then
trimmed, deduplicated and limited in length.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Frank Karlitschek <karlitschek@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Frank Karlitschek <karlitschek@users.noreply.github.com>
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.
When the last message in a chat is a text message from somebody else, up to three short reply suggestions are shown above the input bar. Tapping one only puts it into the text field, so it can be changed before sending. The row disappears as soon as something is typed.
Notes
mainonce feat: Widgets, Spotlight, haptics, double tap reactions and thermal aware calls聽#2788 is merged.Testing
UnitSmartRepliesTest(prompt, filtering; not the model output itself)generic/platform=iOS(iPhone, iPad, Mac "Designed for iPad") and for watchOS hardware馃 Generated with Claude Code