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

Fix message memoization, stop button, anthropic #874

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

bfischer1121
Copy link

@bfischer1121 bfischer1121 commented Mar 18, 2025

Why

Fix Messages memoization and Stop button functionality after recent switch from isLoading to status.
Fix this error when using Claude 3.7 (and possibly other providers):

invalid request error: all messages must have non-empty content except for the optional final assistant message

How

  • Revert React.memo condition from almost always true statement to prior logic.
  • Show StopButton when status is streaming
  • Copy text parts to content field before being sent to provider

Copy link

vercel bot commented Mar 18, 2025

@bfischer1121 is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@bfischer1121 bfischer1121 changed the title Fix message memoization and stop button Fix message memoization, stop button, anthropic Mar 18, 2025
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