fix(openai-adapters): map reasoning-delta to reasoning_content#11089
Open
MumuTW wants to merge 2 commits intocontinuedev:mainfrom
Open
fix(openai-adapters): map reasoning-delta to reasoning_content#11089MumuTW wants to merge 2 commits intocontinuedev:mainfrom
MumuTW wants to merge 2 commits intocontinuedev:mainfrom
Conversation
Contributor
|
All contributors have signed the CLA ✍️ ✅ |
132933e to
c41e8c3
Compare
Contributor
Author
|
I have read the CLA Document and I hereby sign the CLA |
The `as typeof X & Y` type assertion was ambiguous to the TypeScript parser without parentheses, causing TS1005 errors. Simplify to `as any` since this is a test assertion. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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
reasoning-deltastream parts todelta.reasoning_contentinstead ofdelta.contentchatChunkFromDeltafor reasoning chunksvercelStreamConvertertest to assertreasoning_contentoutputTesting
cd packages/openai-adapters && npm test -- src/test/vercelStreamConverter.test.tsFixes #11069
Continue Tasks: 🔄 7 running — View all
Summary by cubic
Map "reasoning-delta" to "reasoning_content" in the Vercel stream converter so reasoning tokens go to the correct delta field. Switched reasoning chunks to use chatChunkFromDelta and updated tests. Fixes #11069.
Written for commit 37794f4. Summary will update on new commits.