Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(FR-433): wrap customTags contents with Collapse #3073

Open
wants to merge 1 commit into
base: feature/support-latex
Choose a base branch
from

Conversation

agatha197
Copy link
Contributor

@agatha197 agatha197 commented Jan 23, 2025

resolves #3066 (FR-433 / parent: FR-432)

Adds support for reasoning extraction and display in chat messages. This enhances the chat interface by showing AI model's thought process in collapsible sections.

Key changes:

  • Added middleware to extract reasoning content from "think" tags
  • Implemented collapsible reasoning panels in chat messages
  • Added loading state indicator during streaming
  • Updated translations for reasoning-related UI text
  • Upgraded AI SDK packages to support reasoning extraction

Screenshots:

image.png

image.png

image.png

Checklist:

  • Documentation
  • Test case(s) to demonstrate the difference of before/after

Copy link
Contributor Author

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • flow:merge-queue - adds this PR to the back of the merge queue
  • flow:hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has required the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

@github-actions github-actions bot added the size:L 100~500 LoC label Jan 23, 2025
@agatha197 agatha197 force-pushed the feature/hide-custom-tags branch from 3800926 to 986ecde Compare January 23, 2025 16:21
@agatha197 agatha197 force-pushed the feature/support-latex branch from fc8b122 to e29d712 Compare January 31, 2025 03:30
@agatha197 agatha197 force-pushed the feature/hide-custom-tags branch 2 times, most recently from 2a97278 to cbea0a7 Compare January 31, 2025 04:31
@github-actions github-actions bot added area:ux UI / UX issue. area:i18n Localization labels Jan 31, 2025
@agatha197 agatha197 marked this pull request as ready for review January 31, 2025 04:38
@agatha197 agatha197 force-pushed the feature/support-latex branch from e29d712 to 78f8376 Compare January 31, 2025 07:18
@agatha197 agatha197 force-pushed the feature/hide-custom-tags branch 2 times, most recently from f609c6b to 46a640e Compare January 31, 2025 07:20
@agatha197 agatha197 force-pushed the feature/support-latex branch from 78f8376 to 3baabc2 Compare January 31, 2025 07:46
@agatha197 agatha197 force-pushed the feature/hide-custom-tags branch from 46a640e to b496b86 Compare January 31, 2025 07:46
@agatha197 agatha197 force-pushed the feature/support-latex branch from 3baabc2 to 445dd03 Compare January 31, 2025 07:47
@agatha197 agatha197 force-pushed the feature/hide-custom-tags branch from b496b86 to 368f253 Compare January 31, 2025 07:48
@agatha197 agatha197 force-pushed the feature/hide-custom-tags branch from 368f253 to ef473d5 Compare January 31, 2025 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:i18n Localization area:ux UI / UX issue. size:L 100~500 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant