feat(streaming): log unrecognized chunks - #1512
Merged
Merged
Conversation
Add logger.warn() calls to capture unrecognized streaming chunks for Anthropic, Google, OpenAI, AWS Bedrock, and unknown providers. Includes context like provider, model, and event/part details for debugging. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Contributor
WalkthroughAdds runtime warnings for unrecognized streaming data across multiple LLM providers (Anthropic, Google, OpenAI, AWS Bedrock) in the streaming transformation utility, and adds a detailed warning when an empty streaming response is detected during streaming. Also deduplicates an import statement in a UI component. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add logger.warn() for empty streaming responses to help debug issues like Google AI Studio returning no content. Logs include token counts, content length, and chunk metadata. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
steebchen
enabled auto-merge
January 27, 2026 19:19
steebchen
added this pull request to the merge queue
Jan 29, 2026
steebchen
added a commit
that referenced
this pull request
Jan 29, 2026
Add logger.warn() calls to capture unrecognized streaming chunks from all providers (Anthropic, Google, OpenAI, AWS Bedrock) and unknown providers. Logs include context like provider name, model, and event/part details for easier debugging. This helps identify edge cases and new streaming formats. 🤖 Generated with Claude Code <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Added runtime diagnostic warnings for unrecognized streaming data and empty streaming responses across AI providers (Anthropic, Google/Vertex, OpenAI, AWS Bedrock), including contextual details (provider, model, event/type, data keys) to aid debugging. * Cleaned up and re-ordered imports for improved code maintainability. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add logger.warn() calls to capture unrecognized streaming chunks from all providers (Anthropic, Google, OpenAI, AWS Bedrock) and unknown providers. Logs include context like provider name, model, and event/part details for easier debugging. This helps identify edge cases and new streaming formats.
🤖 Generated with Claude Code
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.