Skip to content

feat: Preserve existing content during streaming response errors and enhance error message display #1588

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Emt-lin
Copy link
Collaborator

@Emt-lin Emt-lin commented Jun 28, 2025

Overview

now, when an error occurs during streaming response, it's not clear partial success response.

actual effect:

CleanShot 2025-06-29 at 00 38 32

issues

#1527

Key changes

  • Add <errorChunk>xxx</errorChunk> tags to mark error messages
  • Add errorPostProcessor to handle error message
  • keep a similar logic to think tag

…enhance error message display.

# Conflicts:
#	src/LLMProviders/chainRunner.ts
@Emt-lin Emt-lin requested a review from logancyang June 28, 2025 16:46
@logancyang
Copy link
Owner

Thanks for the PR! The seq thinking branch has a big change, it will be easier to rebase this one on top of that branch. Let's hold it for now.

@logancyang logancyang added the hold Blocked by other dependencies label Jun 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hold Blocked by other dependencies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants