Repository navigation
fix(inference): tolerate null role and tool_calls deltas - #1499
Merged
corbits-triage[bot] merged 1 commit intoOct 17, 2026
Merged
corbits-triage[bot] merged 1 commit into
corbits-triage[bot] merged 1 commit into
Conversation
Contributor
|
Triage: Pass No changes needed from you. A maintainer will review this pull request. |
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
nullfordelta.roleanddelta.tool_callson streamed SSE chunks and books them the same as those keys being absent, so vLLM-serializer-relayed endpoints (NEAR AI, Qwen3.8-Flash-Next on vast.ai 2xH200) no longer fail every streamed turn withprotocol_mismatch.role: 42still fail schema validation asProtocolMismatchError— only presence-as-null changes meaning.PATCHES.md,providers-ts-openai-null-delta-tolerance) with a matching marker comment; regression coverage insrc/provider/chat-completions-null-delta.test.tsproves null-equivalence event sequences end to end through the builtin and wrapper adapters.Verification
bun run checkpasses (lint, typecheck, dead-exports, build, projects-dir guard; sandboxed suite 9188 pass / 0 fail).bun run testpasses (9188 pass / 0 fail,--randomize --seed 424242).bin/vendor-patch-diffshows exactly the intended hunks forproviders/openai.ts;scripts/vendor-patch-ledger.test.tsis green.Refs CL-3010