-
Notifications
You must be signed in to change notification settings - Fork 354
Expose ResponseContentPart.InputImageUrl
#874
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
Hi @crickman. Thanks very much for your contribution and your interest in improving the OpenAI developer experience. As discussed in #875, I think the proposed change aligns with the local and upstream REST API specs and agree this should be public. We appreciate your thorough and comprehensive approach to test validation. The implementation looks good to me. I'm going to ask @joseharriaga to make the final call, as he'll have a more complete understanding of the historical context. |
- Updated @typespec/http-client-csharp from 1.0.0-alpha.20251125.5 to 1.0.0-alpha.20251212.3 - Updated Microsoft.TypeSpec.Generator.ClientModel from 1.0.0-alpha.20251125.5 to 1.0.0-alpha.20251212.3 - Regenerated OpenAI SDK code with new generator version - Updated centrally managed package-lock.json file with new dependency versions
|
Hi @crickman - Please run the Export-API script to update the public API surface file. |
I'm getting this error: Is there a module I need to install (type-spec related maybe)? |
I think you can grab it from here https://github.com/dotnet/sdk/tree/main/src/Compatibility/GenAPI |
|
@christothes - Updated |
|
Unclear why Did noticed that related tests are marked as flaky. Others seem affected as well: https://github.com/openai/openai-dotnet/actions/workflows/release.yml |
- Updated @typespec/http-client-csharp from 1.0.0-alpha.20251125.5 to 1.0.0-alpha.20251219.2 - Updated Microsoft.TypeSpec.Generator.ClientModel from 1.0.0-alpha.20251125.5 to 1.0.0-alpha.20251219.2 - Regenerated OpenAI SDK code with new generator version - Updated centrally managed package-lock.json file with new dependency versions
…p-1.0.0-alpha.20251219.2 Succeeded with Issues: Update @typespec/http-client-csharp to 1.0.0-alpha.20251219.2
…p-1.0.0-alpha.20251212.3 Succeeded with Issues: Update @typespec/http-client-csharp to 1.0.0-alpha.20251212.3
…ient This adds handling for the `image_url` property in `input_image` response content. Since the OpenAI SDK doesn't yet expose this property publicly, we access it via: 1. Direct property reflection (for when the property becomes public) 2. SerializedAdditionalRawData dictionary (for internal SDK storage) 3. IJsonModel serialization fallback (to extract from JSON representation) See: openai/openai-dotnet#874 Includes a unit test that validates the image URL propagates through responses. Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
|
@crickman : It appears that your package.json and package-lock.json are out of sync, causing the "CodeGen Validation" check to fail. You shouldn't need to change those files as part of this PR, so I would recommend reverting those changes for simplicity. 🙂 |
| "@typespec/http-client-csharp": "1.0.0-alpha.20251125.5", | ||
| "@typespec/openapi": "1.6.0" | ||
| "@typespec/http": "1.7.0", | ||
| "@typespec/http-client-csharp": "1.0.0-alpha.20251212.3", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This package has been updated to version 1.0.0-alpha.20251223.2, so this part of the PR can be reverted. 🙂

Expose
InternalItemContentInputImage.ImageUrlas public property:ResponseContentPart.InputImageUrlAdded smoke validation all public
ResponseContentPartusage and serializationcloses #875