Add content summarization feature using FoundationModels#12
Open
Tavernari wants to merge 2 commits intoRychillie:mainfrom
Open
Add content summarization feature using FoundationModels#12Tavernari wants to merge 2 commits intoRychillie:mainfrom
Tavernari wants to merge 2 commits intoRychillie:mainfrom
Conversation
- Implement SummarizationService with local FoundationModels - Add ContentSummary data model - Update HomeViewModel with summary state management - Update HomeView with pink/purple UI and toggle logic - Check device support for FoundationModels - Generate single paragraph summaries from all content - Button disappears when summarizing, shows summary instead - Click summary to remove and show button again Features: - ✨ Icon button below number (left side) - Pink/Purple gradient theme - Loading indicator in summary box - Single paragraph output (no markdown) - Push navigation - Error handling with retry
The brain.head button in the top-left navigation bar was unnecessary. Users can see FoundationModels availability through the banner that shows when the device doesn't support it. - Removed brain.head button from toolbar - Removed foundationModelsInfoSheet() function - Removed showingFoundationModelsInfo state variable - Kept foundationModelsBanner for user notification when unsupported - Simplified the UI, keeping only essential features
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.
Sobre
Este PR adiciona a funcionalidade de resumir um post.
Este PR não precisa necessariamente ser "merged", pois ele é mas um teste de um cli que tenho feito para lidar com projetos swift, o SwiftZilla CLI. Infelizmente ele ainda não ta pronto pra produção mas pretendo colocá-lo em breve como opensource. Ele usa como base o https://swiftzilla.dev
Aqui tem o link do video dele trabalhando por 34 minutos -> https://youtu.be/irMVhttRrmU
Evidência
example_full_app-compressed.mp4