Skip to content

Conversation

@joseharriaga
Copy link
Collaborator

No description provided.

Copy link

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 performs a systematic renaming of two types and a property in the image generation API to improve naming consistency and clarity:

  • ImageGenerationToolInputFidelityLevel renamed to ImageGenerationToolInputFidelity
  • Property GeneratedImageBytes renamed to ImageResultBytes
  • Parameter inputFidelityLevel renamed to inputFidelity

Reviewed Changes

Copilot reviewed 10 out of 15 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tspCodeModel.json Updates property name from GeneratedImageBytes to ImageResultBytes in the code model
tests/Responses/ResponsesTests.cs Updates test assertions to use renamed property and parameter names
src/Generated/Models/Responses/ImageGenerationToolInputFidelity.cs Renames struct from ImageGenerationToolInputFidelityLevel to ImageGenerationToolInputFidelity
src/Generated/Models/Responses/ImageGenerationTool.cs Updates constructor and property to use renamed type and parameter
src/Generated/Models/Responses/ImageGenerationTool.Serialization.cs Updates serialization logic to use renamed property
src/Generated/Models/Responses/ImageGenerationCallResponseItem.cs Renames property from GeneratedImageBytes to ImageResultBytes
src/Generated/Models/Responses/ImageGenerationCallResponseItem.Serialization.cs Updates serialization code for renamed property
src/Custom/Responses/Tools/ResponseTool.cs Updates factory method parameter name
src/Custom/Responses/Tools/ImageGenerationToolInputFidelity.cs Updates struct declaration with new name
src/Custom/Responses/Tools/ImageGenerationTool.cs Removes obsolete custom member mapping
specification/client/responses.client.tsp Updates TypeSpec client name annotation
examples/Responses/Example08_OutputAdditionalPropertiesAsync.cs Updates example to use renamed property ResultBytes
examples/Responses/Example08_OutputAdditionalProperties.cs Updates example to use renamed property ResultBytes
api/OpenAI.netstandard2.0.cs Updates API surface for renamed types and properties
api/OpenAI.net8.0.cs Updates API surface for renamed types and properties

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@joseharriaga joseharriaga merged commit d4ba95c into main Oct 30, 2025
2 checks passed
@joseharriaga joseharriaga deleted the joseharriaga/ImageRenames branch October 30, 2025 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants