Skip to content

feat(ai): add chunk formatting capabilities#509

Merged
harbournick merged 5 commits intomainfrom
feat/init-ai-formatted
May 21, 2025
Merged

feat(ai): add chunk formatting capabilities#509
harbournick merged 5 commits intomainfrom
feat/init-ai-formatted

Conversation

@palmer-cl
Copy link
Copy Markdown
Collaborator

Adds real-time formatting to editor coming from streaming API

  • adds formatRegistry that can be extended to all format types, currently starts with bold text as that is the only current contract set by insights endpoint API as **_____**
  • Updates handleChunk to format document
  • Format document function seeks to optimistically find match in one node, and if that fails, formats across nodes
  • Updates HandleDone function to wait for any pending formats to be completed, and calls format one single time to account for the last node being rendered

@palmer-cl palmer-cl changed the title Feat/init ai formatted feat(ai): add chunk formatting capabilities May 17, 2025
@palmer-cl
Copy link
Copy Markdown
Collaborator Author

@harbournick this can be combined with #501 or kept separate

@harbournick harbournick requested a review from artem-harbour May 18, 2025 21:56
Base automatically changed from chore/spike/new-loader-mark to main May 19, 2025 15:28
Copy link
Copy Markdown
Collaborator

@harbournick harbournick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@harbournick harbournick merged commit b532163 into main May 21, 2025
@harbournick harbournick deleted the feat/init-ai-formatted branch May 21, 2025 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants