OpenAI-DotNet 8.8.8 - #514
Merged
Merged
Conversation
- Allow setting Responses.TextContent.Type to OutputText for Role.Assistant messages
This was
linked to
issues
Dec 10, 2025
There was a problem hiding this comment.
Pull request overview
This release (version 8.8.8) includes bug fixes and enhancements for the OpenAI .NET SDK, primarily focusing on streaming event handling, MCP (Model Context Protocol) tool support, and model updates. Key improvements include fixing stream consumption issues when debug logging is enabled, correcting error object deserialization in server-sent events, and adding new GPT-5.x model definitions.
- Fixed stream consumption bug where debug logging would consume the stream before it could be read
- Enhanced error handling in streaming endpoints to properly unwrap nested error objects
- Added constructor for MCPApprovalResponse to enable manual instantiation for MCP tool approvals
- Updated default model from GPT-4o Realtime to GPT-5 Mini
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| OpenAI-DotNet/Threads/ThreadsEndpoint.cs | Added proper error object unwrapping for streaming server-sent events |
| OpenAI-DotNet/Responses/TextContent.cs | Enhanced constructor to accept OutputText type with validation for Role.Assistant messages |
| OpenAI-DotNet/Responses/ResponsesEndpoint.cs | Added proper error object unwrapping for streaming server-sent events |
| OpenAI-DotNet/Responses/Message.cs | Automatically sets content type based on role (OutputText for Assistant, InputText otherwise) |
| OpenAI-DotNet/Responses/MCPToolCall.cs | Changed Error property from string to JsonNode for flexible deserialization |
| OpenAI-DotNet/Responses/MCPApprovalResponse.cs | Added constructor and changed properties to use private setters for instantiation support |
| OpenAI-DotNet/Responses/CreateResponseRequest.cs | Updated default model from GPT4oRealtime to GPT5_Mini |
| OpenAI-DotNet/Models/Model.cs | Added GPT-5.2-Pro, GPT-5.2, GPT-5.1-Codex-Max, GPT-5.1-Codex, and GPT-5.1-Codex-Mini models |
| OpenAI-DotNet/Extensions/BaseEndpointExtensions.cs | Added stream buffering when debug logging is enabled to prevent stream consumption issues |
| .editorconfig | Strengthened accessibility modifier requirements from interface-specific to all members |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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.
Uh oh!
There was an error while loading. Please reload this page.