Skip to content

Commit 0be817f

Browse files
committed
Update @typespec/http-client-csharp to 1.0.0-alpha.20251021.4
- Updated @typespec/http-client-csharp from 1.0.0-alpha.20251020.2 to 1.0.0-alpha.20251021.4 - Updated Microsoft.TypeSpec.Generator.ClientModel from 1.0.0-alpha.20251020.2 to 1.0.0-alpha.20251021.4 - Regenerated OpenAI SDK code with new generator version - Updated centrally managed package-lock.json file with new dependency versions
1 parent 8ee1d9a commit 0be817f

17 files changed

+113
-57
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.20251020.2" />
11+
<PackageReference Include="Microsoft.TypeSpec.Generator.ClientModel" Version="1.0.0-alpha.20251021.4" />
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.61.0",
33-
"@typespec/http-client-csharp": "1.0.0-alpha.20251020.2",
33+
"@typespec/http-client-csharp": "1.0.0-alpha.20251021.4",
3434
"@typespec/http": "1.5.0",
3535
"@typespec/openapi": "1.5.0"
3636
},

package-lock.json

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

src/Generated/AssistantClient.RestClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ internal virtual PipelineMessage CreateGetAssistantsRequest(int? limit, string o
2121
uri.AppendPath("/assistants", false);
2222
if (limit != null)
2323
{
24-
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
24+
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
2525
}
2626
if (order != null)
2727
{

src/Generated/BatchClient.RestClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ internal virtual PipelineMessage CreateGetBatchesRequest(string after, int? limi
3939
}
4040
if (limit != null)
4141
{
42-
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
42+
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
4343
}
4444
PipelineMessage message = Pipeline.CreateMessage(uri.ToUri(), "GET", PipelineMessageClassifier200);
4545
PipelineRequest request = message.Request;

src/Generated/ChatClient.RestClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ internal virtual PipelineMessage CreateGetChatCompletionsRequest(string after, i
2626
}
2727
if (limit != null)
2828
{
29-
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
29+
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
3030
}
3131
if (order != null)
3232
{
@@ -40,7 +40,7 @@ internal virtual PipelineMessage CreateGetChatCompletionsRequest(string after, i
4040
// Plugin customization: Properly handle metadata query parameters
4141
uri.AppendQuery($"metadata[{@param.Key}]", @param.Value, true);
4242
}
43-
// Plugin customization: remove unnecessary AppendQueryDelimited for metadata
43+
uri.AppendQueryDelimited("metadata", list, ",", escape: true);
4444
}
4545
if (model != null)
4646
{
@@ -121,7 +121,7 @@ internal virtual PipelineMessage CreateGetChatCompletionMessagesRequest(string c
121121
}
122122
if (limit != null)
123123
{
124-
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
124+
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
125125
}
126126
if (order != null)
127127
{

src/Generated/ContainerClient.RestClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ internal virtual PipelineMessage CreateGetContainersRequest(int? limit, string o
2121
uri.AppendPath("/containers", false);
2222
if (limit != null)
2323
{
24-
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
24+
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
2525
}
2626
if (order != null)
2727
{
@@ -103,7 +103,7 @@ internal virtual PipelineMessage CreateGetContainerFilesRequest(string container
103103
uri.AppendPath("/files", false);
104104
if (limit != null)
105105
{
106-
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
106+
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
107107
}
108108
if (order != null)
109109
{

src/Generated/EvaluationClient.RestClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ internal virtual PipelineMessage CreateGetEvalsRequest(string after, int? limit,
2828
}
2929
if (limit != null)
3030
{
31-
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
31+
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
3232
}
3333
if (order != null)
3434
{
@@ -113,7 +113,7 @@ internal virtual PipelineMessage CreateGetEvalRunsRequest(string evalId, string
113113
}
114114
if (limit != null)
115115
{
116-
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
116+
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
117117
}
118118
if (order != null)
119119
{
@@ -206,7 +206,7 @@ internal virtual PipelineMessage CreateGetEvalRunOutputItemsRequest(string evalI
206206
}
207207
if (limit != null)
208208
{
209-
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
209+
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
210210
}
211211
if (status != null)
212212
{

src/Generated/FineTuningClient.RestClient.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ internal virtual PipelineMessage CreateGetFineTuningCheckpointPermissionsRequest
2727
}
2828
if (limit != null)
2929
{
30-
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
30+
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
3131
}
3232
if (order != null)
3333
{
@@ -100,7 +100,7 @@ internal virtual PipelineMessage CreateGetPaginatedFineTuningJobsRequest(string
100100
}
101101
if (limit != null)
102102
{
103-
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
103+
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
104104
}
105105
PipelineMessage message = Pipeline.CreateMessage(uri.ToUri(), "GET", PipelineMessageClassifier200);
106106
PipelineRequest request = message.Request;
@@ -149,7 +149,7 @@ internal virtual PipelineMessage CreateGetFineTuningJobCheckpointsRequest(string
149149
}
150150
if (limit != null)
151151
{
152-
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
152+
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
153153
}
154154
PipelineMessage message = Pipeline.CreateMessage(uri.ToUri(), "GET", PipelineMessageClassifier200);
155155
PipelineRequest request = message.Request;
@@ -171,7 +171,7 @@ internal virtual PipelineMessage CreateGetFineTuningEventsRequest(string fineTun
171171
}
172172
if (limit != null)
173173
{
174-
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
174+
uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
175175
}
176176
PipelineMessage message = Pipeline.CreateMessage(uri.ToUri(), "GET", PipelineMessageClassifier200);
177177
PipelineRequest request = message.Request;

src/Generated/Internal/ClientUriBuilder.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,17 +54,17 @@ public void AppendPath(string value, bool escape)
5454

5555
public void AppendPath(int value, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value), escape);
5656

57-
public void AppendPath(byte[] value, string format, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value, format), escape);
57+
public void AppendPath(byte[] value, SerializationFormat format = SerializationFormat.Default, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value, format), escape);
5858

59-
public void AppendPath(DateTimeOffset value, string format, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value, format), escape);
59+
public void AppendPath(DateTimeOffset value, SerializationFormat format = SerializationFormat.Default, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value, format), escape);
6060

61-
public void AppendPath(TimeSpan value, string format, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value, format), escape);
61+
public void AppendPath(TimeSpan value, SerializationFormat format = SerializationFormat.Default, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value, format), escape);
6262

6363
public void AppendPath(Guid value, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value), escape);
6464

6565
public void AppendPath(long value, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value), escape);
6666

67-
public void AppendPathDelimited<T>(IEnumerable<T> value, string delimiter, string format = null, bool escape = true)
67+
public void AppendPathDelimited<T>(IEnumerable<T> value, string delimiter, SerializationFormat format = SerializationFormat.Default, bool escape = true)
6868
{
6969
delimiter ??= ",";
7070
IEnumerable<string> stringValues = value.Select(v => TypeFormatters.ConvertToString(v, format));
@@ -90,9 +90,9 @@ public void AppendQuery(string name, string value, bool escape)
9090

9191
public void AppendQuery(string name, float value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
9292

93-
public void AppendQuery(string name, DateTimeOffset value, string format, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value, format), escape);
93+
public void AppendQuery(string name, DateTimeOffset value, SerializationFormat format = SerializationFormat.Default, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value, format), escape);
9494

95-
public void AppendQuery(string name, TimeSpan value, string format, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value, format), escape);
95+
public void AppendQuery(string name, TimeSpan value, SerializationFormat format = SerializationFormat.Default, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value, format), escape);
9696

9797
public void AppendQuery(string name, double value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
9898

@@ -104,11 +104,11 @@ public void AppendQuery(string name, string value, bool escape)
104104

105105
public void AppendQuery(string name, TimeSpan value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
106106

107-
public void AppendQuery(string name, byte[] value, string format, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value, format), escape);
107+
public void AppendQuery(string name, byte[] value, SerializationFormat format = SerializationFormat.Default, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value, format), escape);
108108

109109
public void AppendQuery(string name, Guid value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
110110

111-
public void AppendQueryDelimited<T>(string name, IEnumerable<T> value, string delimiter, string format = null, bool escape = true)
111+
public void AppendQueryDelimited<T>(string name, IEnumerable<T> value, string delimiter, SerializationFormat format = SerializationFormat.Default, bool escape = true)
112112
{
113113
delimiter ??= ",";
114114
IEnumerable<string> stringValues = value.Select(v => TypeFormatters.ConvertToString(v, format));

0 commit comments

Comments
 (0)