fix(message): correct delta/message selection when both exist in stream#297
fix(message): correct delta/message selection when both exist in stream#297gene9831 wants to merge 1 commit intoopentiny:developfrom
Conversation
- Add objectDataIsValid helper to detect non-empty objects with truthy values
- Prefer choice.delta over choice.message when delta has valid data
- Fallback to choice.delta || choice.message || {} when neither is valid
WalkthroughA TypeScript utility file in the Vue message module is updated to add an internal validation helper and refine message data selection logic. The new Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
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 |
📦 Package Previewpnpm add https://pkg.pr.new/opentiny/tiny-robot/@opentiny/tiny-robot@6d226b2 pnpm add https://pkg.pr.new/opentiny/tiny-robot/@opentiny/tiny-robot-kit@6d226b2 pnpm add https://pkg.pr.new/opentiny/tiny-robot/@opentiny/tiny-robot-svgs@6d226b2 commit: 6d226b2 |

Summary by CodeRabbit