Repository navigation
[AISAGE-706] feat(ai-gateway): log Reflection reasoning placeholder mutations - #8054
Merged
Merged
Conversation
Contributor
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummaryThe change threads the requested model through Files Reviewed (3 files)
Reviewed by deepseek-v4.1-flash-1017 · Input: 42K · Output: 5.2K · Cached: 225.5K Review guidance: REVIEW.md from base branch |
johnnyeric
approved these changes
Oct 19, 2026
iscekic
approved these changes
Oct 19, 2026
This was referenced Oct 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #8018. Jira: AISAGE-706.
This PR logs a warning whenever the gateway adds Reflection reasoning placeholders to a request. That shows how often clients send Reflection history without reasoning, which happens after a model switch, compaction, or with clients that drop reasoning.
[removeNonSensicalMaxTokens],[applyProviderSpecificLogic] Removed unsupported request-level service tier):console.warnwith a structured payload.The per-API placeholder helpers now return how many placeholders they added.
addReflectionReasoningPlaceholderstakes the requested model so the log can include it.Verification
Visual Changes
N/A
Reviewer Notes
The log uses
console.warn, like the other request-mutation logs.console.infowould also be reasonable, since placeholders are expected during normal operation.