fix: responses schema normalization#1255
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces response streaming checks based on success status codes and adds a request body sanitization mechanism for specific GPT-5.6 models to normalize message-like inputs by ensuring they have a type field set to 'message'. The review feedback correctly points out that the current sanitization logic discards extra fields (such as id, phase, or tool-related fields) by rebuilding the message map from scratch. It is recommended to mutate the existing JSON object in-place to preserve these fields, and to update the test assertions accordingly.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1255 +/- ##
==========================================
+ Coverage 60.29% 60.75% +0.46%
==========================================
Files 46 46
Lines 10476 10609 +133
==========================================
+ Hits 6316 6445 +129
- Misses 4160 4164 +4 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
No description provided.