Skip to content

Conversation

@stephentoub
Copy link
Member

@stephentoub stephentoub commented Sep 17, 2025

When no file IDs are present, we're outputting the wrong JSON.

Microsoft Reviewers: Open in CodeFlow

When no file IDs are present, we're outputting the wrong JSON.
Copilot AI review requested due to automatic review settings September 17, 2025 21:55
@stephentoub stephentoub requested a review from a team as a code owner September 17, 2025 21:55
@github-actions github-actions bot added the area-ai Microsoft.Extensions.AI libraries label Sep 17, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a JSON formatting issue in the HostedCodeInterpreterTool when no file IDs are present, ensuring proper OpenAI API compliance.

  • Fixed incorrect JSON structure for code interpreter tool when container type is "auto"
  • Added integration test to validate code interpreter functionality

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
OpenAIResponsesChatClient.cs Fixed JSON structure for code interpreter tool container configuration
OpenAIResponseClientIntegrationTests.cs Added test to verify code interpreter tool produces expected results

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@stephentoub stephentoub merged commit df41bfa into dotnet:main Sep 18, 2025
7 checks passed
@stephentoub stephentoub deleted the fixresponsecodeinterpreter branch September 18, 2025 10:40
This was referenced Oct 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-ai Microsoft.Extensions.AI libraries

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants