Skip to content

Comments

Add content summarization feature using FoundationModels#12

Open
Tavernari wants to merge 2 commits intoRychillie:mainfrom
Tavernari:ai-summarizer
Open

Add content summarization feature using FoundationModels#12
Tavernari wants to merge 2 commits intoRychillie:mainfrom
Tavernari:ai-summarizer

Conversation

@Tavernari
Copy link

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

- 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant