forked from lidge-jun/opencodex
-
Notifications
You must be signed in to change notification settings - Fork 0
fix(openai-chat): bound reasoning_details snapshots and account them to TranslatorBudget #412
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
luvs01
wants to merge
20
commits into
Dev
Choose a base branch
from
codex/fix-memory-exhaustion-vulnerability-in-parser
base: Dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
d35592b
merge dev into main for the v2.32.1 release
lidge-jun 71c57ea
release: v2.32.1
lidge-jun d560ac6
merge dev into main for the v2.33.0 release
lidge-jun 08ada6f
Merge pull request #2553 from lidge-jun/codex/promote-main-2330
lidge-jun ec51e42
release: v2.33.0
lidge-jun e25b653
merge dev into main for the v2.34.0 release
lidge-jun 80fff9a
Merge pull request #2760 from lidge-jun/codex/promote-main-2340
lidge-jun fc4de77
Merge pull request #2826 from lidge-jun/codex/promote-main-2350
lidge-jun c7d8407
Merge pull request #3002 from lidge-jun/codex/promote-main-2360
lidge-jun 54e2274
Merge pull request #3037 from lidge-jun/codex/promote-main-2370
lidge-jun 2c4dca1
merge dev into the promotion branch for v2.38.0
lidge-jun a34e8b7
merge dev into the promotion branch for v2.38.0 (picks up the ReDoS fix)
lidge-jun ebb4d55
Merge pull request #3073 from lidge-jun/codex/promote-main-2380
lidge-jun 682112e
Merge remote-tracking branch 'origin/dev' into codex/promote-main-2390
lidge-jun af6113a
merge dev into main for the v2.39.0 release
lidge-jun 847f4f1
merge dev into main for the v2.40.0 release
ac78647
Merge pull request #3261 from lidge-jun/codex/promote-main-2400
lidge-jun aaa9eaf
fix(release): pass the bump job's permissions through the reusable-wo…
lidge-jun 35ff3a4
Merge pull request #3263 from lidge-jun/codex/promote-main-2400-relfix
lidge-jun c3a289d
fix(openai-chat): bound reasoning detail snapshots
luvs01 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For a non-streaming MiniMax completion that omits
reasoning_contentand supplies onlyreasoning_details,parseResponsealso calls this shared helper at line 2131, even though that path discards every key and retains only the extracted text. Consequently, an otherwise valid response containing an ID over 1,024 bytes now throwsTranslatorBudgetExceededErrorand loses the entire completion, despite the complete response already being charged to the translator budget. Apply the ID validation only in the streaming snapshot path, or let the helper skip key validation when keys are not needed.AGENTS.md reference: src/AGENTS.md:L19-L19
Useful? React with 👍 / 👎.