You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inference-gateway/schemas#331 changes the documented shape of chat completion stream chunks to match what OpenAI-compatible providers actually send: choices[].finish_reason and choices[].logprobs can be null, and choices[].delta.role / delta.content are optional (role only in the first delta, an empty delta in the final chunk). delta.content and delta.refusal can be null.
Acceptance Criteria
Pages that describe or show streaming chat completion chunks (API reference, streaming examples) reflect the nullable / optional fields
Example chunks show "finish_reason": null on non-final chunks
Streaming example: non-final chunks show "finish_reason": null and "logprobs": null. Added a mid-stream chunk whose delta has no role. The final chunk has an empty delta {}.
New short list under the example explaining which fields are nullable or optional.
ChatCompletionStreamChoice: logprobs is now object | null, and the finish_reason description says it is null until the final chunk.
ChatCompletionStreamResponseDelta: every field is optional, content is string | null, and I added refusal (string | null).
Not changed: the Python SDK note in sdks.md that says the generated CreateChatCompletionStreamResponse model rejects these chunks. It stays true until the Python SDK is regenerated from the updated schema, so it should be removed then.
| Branch
Activity
edenreich commentedon Nov 17, 2026
@claude can you document this?
inference-gateway-maintainer commentedon Nov 17, 2026
Claude finished @edenreich's task in 1m 20s —— View job •
docs/issue-1263-20261117-2021• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-1263-20261117-2021?quick_pull=1&title=Issue%20%231263%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%231263%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Done
api-reference.mdshows chunk JSON and the chunk schema tables)Changes in
api-reference.md:"finish_reason": nulland"logprobs": null. Added a mid-stream chunk whose delta has norole. The final chunk has an empty delta{}.ChatCompletionStreamChoice:logprobsis nowobject | null, and thefinish_reasondescription says it isnulluntil the final chunk.ChatCompletionStreamResponseDelta: every field is optional,contentisstring | null, and I addedrefusal(string | null).Not changed: the Python SDK note in
sdks.mdthat says the generatedCreateChatCompletionStreamResponsemodel rejects these chunks. It stays true until the Python SDK is regenerated from the updated schema, so it should be removed then.| Branch
inference-gateway-releaser commentedon Nov 17, 2026
🎉 This issue has been resolved in version 0.9.27 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀