Repository navigation
fix: emit claude message_delta for usage-only final stream chunk - #4090
Conversation
|
Caution Review failedPull request was closed or merged during review WalkthroughThis PR introduces cache-creation token normalization across the Claude relay layer and service conversion code. A new utility function Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Poem
🚥 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🧪 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 |
fix: emit claude message_delta for usage-only final stream chunk
…sage fix: emit claude message_delta for usage-only final stream chunk
…sage fix: emit claude message_delta for usage-only final stream chunk
💡 沟通提示 / Pre-submission
📝 变更描述 / Description
修复 Claude Messages -> OpenAI Compatible 情况下,message_delta的chunk块在部分情况下会丢失的问题。
仅返回给客户端的响应usage问题,后台日志计费仍正常。
🚀 变更类型 / Type of change
🔗 关联任务 / Related Issue
✅ 提交前检查项 / Checklist
📸 运行证明 / Proof of Work
Summary by CodeRabbit
Bug Fixes
Tests