fix: handle empty reasoning_content from non-standard APIs#330
Conversation
Some non-standard APIs may return an empty string for `reasoning_content` even when the model does not support deep reasoning. This change improves compatibility by tolerating that response shape.
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 56 minutes and 7 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ 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@8fe48f6 pnpm add https://pkg.pr.new/@opentiny/tiny-robot-kit@8fe48f6 pnpm add https://pkg.pr.new/@opentiny/tiny-robot-svgs@8fe48f6 commit: 8fe48f6 |
|
@coderabbitai you can review now |
|
The PR description images show the bug clearly:
Sure, I'll kick off a new review now! ✅ Actions performedReview triggered.
|
|
The two PR description images illustrate the bug and the fix clearly:
I'll kick off a review of the changes now! ✅ Actions performedReview triggered.
|
🧹 Preview Cleaned UpThe preview deployment has been removed. |

Some non-standard APIs may return an empty string for
reasoning_contenteven when the model does not support deep reasoning. This change improves compatibility by tolerating that response shape.非标准 API 中,不支持深度思考,仍然可能返回空字符串的


reasoning_content。导致渲染了没有内容的“思考过程”修改前:
修改后: