Skip to content

Commit 9275622

Browse files
github-actions[bot]actions-userjorgerangel-msft
authored
Update @typespec/http-client-csharp to 1.0.0-alpha.20251009.7 (#742)
* Update @typespec/http-client-csharp to 1.0.0-alpha.20251003.2 - Updated @typespec/http-client-csharp from 1.0.0-alpha.20251003.1 to 1.0.0-alpha.20251003.2 - Updated Microsoft.TypeSpec.Generator.ClientModel from 1.0.0-alpha.20251003.1 to 1.0.0-alpha.20251003.2 - Regenerated OpenAI SDK code with new generator version - Updated centrally managed package-lock.json file with new dependency versions * bump to 1.0.0-alpha.20251009.7 * make property public * add roundtrip test --------- Co-authored-by: GitHub Action <[email protected]> Co-authored-by: Jorge Rangel <[email protected]>
1 parent fb7c8db commit 9275622

File tree

54 files changed

+21564
-14032
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+21564
-14032
lines changed

codegen/generator/src/OpenAI.Library.Plugin.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
</PropertyGroup>
99

1010
<ItemGroup>
11-
<PackageReference Include="Microsoft.TypeSpec.Generator.ClientModel" Version="1.0.0-alpha.20251003.1" />
11+
<PackageReference Include="Microsoft.TypeSpec.Generator.ClientModel" Version="1.0.0-alpha.20251009.7" />
1212
</ItemGroup>
1313

1414
<!-- Copy output to package dist path for local execution and -->

codegen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"dependencies": {
3131
"@open-ai/plugin": "file:",
3232
"@azure-tools/typespec-client-generator-core": "0.60.0",
33-
"@typespec/http-client-csharp": "1.0.0-alpha.20251003.1",
33+
"@typespec/http-client-csharp": "1.0.0-alpha.20251009.7",
3434
"@typespec/http": "1.4.0",
3535
"@typespec/openapi": "1.4.0"
3636
},

package-lock.json

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Custom/Batch/BatchClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ namespace OpenAI.Batch;
1414
/// <summary> The service client for OpenAI batch operations. </summary>
1515
[CodeGenType("Batches")]
1616
[CodeGenSuppress("BatchClient", typeof(ClientPipeline), typeof(Uri))]
17-
[CodeGenSuppress("CreateBatch", typeof(string), typeof(InternalCreateBatchRequestEndpoint), typeof(string), typeof(IDictionary<string, string>), typeof(CancellationToken))]
18-
[CodeGenSuppress("CreateBatchAsync", typeof(string), typeof(InternalCreateBatchRequestEndpoint), typeof(string), typeof(IDictionary<string, string>), typeof(CancellationToken))]
17+
[CodeGenSuppress("CreateBatch", typeof(string), typeof(InternalCreateBatchRequestEndpoint), typeof(IDictionary<string, string>), typeof(CancellationToken))]
18+
[CodeGenSuppress("CreateBatchAsync", typeof(string), typeof(InternalCreateBatchRequestEndpoint), typeof(IDictionary<string, string>), typeof(CancellationToken))]
1919
[CodeGenSuppress("CreateBatch", typeof(BinaryContent), typeof(RequestOptions))]
2020
[CodeGenSuppress("CreateBatchAsync", typeof(BinaryContent), typeof(RequestOptions))]
2121
[CodeGenSuppress("GetBatch", typeof(string), typeof(CancellationToken))]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace OpenAI.Containers;
2+
3+
public partial class ContainerResourceExpiresAfter
4+
{
5+
// CUSTOM: Convert to a string for back compatibility.
6+
public string Anchor { get; }
7+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace OpenAI.Containers;
2+
3+
public partial class CreateContainerBodyExpiresAfter
4+
{
5+
// CUSTOM: Make public property for back compatibility.
6+
public string Anchor { get; } = "last_active_at";
7+
}

src/Custom/Containers/internal/GeneratorStubs.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22

33
[CodeGenType("ContainerListResource")] internal partial class InternalContainerListResource { }
44
[CodeGenType("ContainerFileListResource")] internal partial class InternalContainerFileListResource { }
5+
[CodeGenType("ContainerResourceExpiresAfterAnchor")] internal partial struct InternalContainerResourceExpiresAfterAnchor { }

src/Custom/Responses/Internal/GeneratorStubs.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ namespace OpenAI.Responses;
107107
[CodeGenType("LogProb")] internal partial class InternalLogProb {}
108108
[CodeGenType("TopLogProb")] internal partial class InternalTopLogProb {}
109109
[CodeGenType("ImageGenToolCallItemParam")] internal partial class InternalImageGenToolCallItemParam {}
110+
[CodeGenType("ImageGenToolModel")] internal partial struct InternalImageGenToolModel { }
110111
[CodeGenType("CodeInterpreterToolCallItemParam")] internal partial class InternalCodeInterpreterToolCallItemParam {}
111112
[CodeGenType("LocalShellToolCallItemParam")] internal partial class InternalLocalShellToolCallItemParam {}
112113
[CodeGenType("LocalShellExecAction")] internal partial class InternalLocalShellExecAction {}

src/Custom/Responses/Tools/ImageGenerationTool.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,7 @@ public partial class ImageGenerationTool
2525
// CUSTOM:Renamed.
2626
[CodeGenMember("PartialImages")]
2727
public int? PartialImageCount { get; set; }
28+
29+
// CUSTOM: Convert to string to ensure backwards compatibility.
30+
public string Model { get; set; }
2831
}

src/Generated/Models/Assistants/RunStepFileSearchResultContent.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@ public partial class RunStepFileSearchResultContent
1313
{
1414
private protected IDictionary<string, BinaryData> _additionalBinaryDataProperties;
1515

16-
internal RunStepFileSearchResultContent(RunStepFileSearchResultContentKind kind, string text)
16+
internal RunStepFileSearchResultContent(string text)
1717
{
18-
Kind = kind;
1918
Text = text;
2019
}
2120

0 commit comments

Comments
 (0)