fix: openAI function to gemini function field adjusted to whitelist mode - #2667
Conversation
WalkthroughRefactors Gemini OpenAPI schema sanitization by introducing whitelist-based field filtering and depth-limited recursive cleaning. Replaces permissive field copying with strict whitelisting and adds shallow fallback handling when maximum recursion depth is reached to prevent attacks via deeply nested schemas. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
📜 Recent review detailsConfiguration used: Organization UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (2)📚 Learning: 2025-08-08T17:12:43.157ZApplied to files:
📚 Learning: 2025-06-21T03:37:41.726ZApplied to files:
🔇 Additional comments (5)
✏️ Tip: You can disable this entire section by setting 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 |
…t-field fix: openAI function to gemini function field adjusted to whitelist mode
fix #2665
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.