diff --git a/codegen/generator/src/OpenAI.Library.Plugin.csproj b/codegen/generator/src/OpenAI.Library.Plugin.csproj
index 3c959f40a..1f666f359 100644
--- a/codegen/generator/src/OpenAI.Library.Plugin.csproj
+++ b/codegen/generator/src/OpenAI.Library.Plugin.csproj
@@ -8,7 +8,7 @@
-
+
diff --git a/codegen/generator/src/Visitors/MetadataQueryParamVisitor.cs b/codegen/generator/src/Visitors/MetadataQueryParamVisitor.cs
index dd764ad09..121a01f92 100644
--- a/codegen/generator/src/Visitors/MetadataQueryParamVisitor.cs
+++ b/codegen/generator/src/Visitors/MetadataQueryParamVisitor.cs
@@ -92,7 +92,7 @@ dictionaryExpression.Original is VariableExpression variable &&
if (statement is ExpressionStatement expressionStatement3 &&
expressionStatement3.Expression is InvokeMethodExpression invokeMethodExpression &&
invokeMethodExpression.MethodName == "AppendQueryDelimited" &&
- invokeMethodExpression.Arguments.Count == 5 &&
+ invokeMethodExpression.Arguments.Count == 4 &&
invokeMethodExpression.Arguments[0].ToDisplayString() == "\"metadata\"")
{
return new SingleLineCommentStatement("Plugin customization: remove unnecessary AppendQueryDelimited for metadata");
diff --git a/codegen/package.json b/codegen/package.json
index b3bc3b3a1..c99415591 100644
--- a/codegen/package.json
+++ b/codegen/package.json
@@ -30,7 +30,7 @@
"dependencies": {
"@open-ai/plugin": "file:",
"@azure-tools/typespec-client-generator-core": "0.61.0",
- "@typespec/http-client-csharp": "1.0.0-alpha.20251020.2",
+ "@typespec/http-client-csharp": "1.0.0-alpha.20251021.4",
"@typespec/http": "1.5.0",
"@typespec/openapi": "1.5.0"
},
diff --git a/package-lock.json b/package-lock.json
index 014d1de2d..e3661477d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -22,7 +22,7 @@
"@azure-tools/typespec-client-generator-core": "0.61.0",
"@open-ai/plugin": "file:",
"@typespec/http": "1.5.0",
- "@typespec/http-client-csharp": "1.0.0-alpha.20251020.2",
+ "@typespec/http-client-csharp": "1.0.0-alpha.20251021.4",
"@typespec/openapi": "1.5.0"
},
"devDependencies": {
@@ -1481,9 +1481,9 @@
"license": "MIT"
},
"node_modules/@types/node": {
- "version": "22.18.11",
- "resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.11.tgz",
- "integrity": "sha512-Gd33J2XIrXurb+eT2ktze3rJAfAp9ZNjlBdh4SVgyrKEOADwCbdUDaK7QgJno8Ue4kcajscsKqu6n8OBG3hhCQ==",
+ "version": "22.18.12",
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-22.18.12.tgz",
+ "integrity": "sha512-BICHQ67iqxQGFSzfCFTT7MRQ5XcBjG5aeKh5Ok38UBbPe5fxTyE+aHFxwVrGyr8GNlqFMLKD1D3P2K/1ks8tog==",
"devOptional": true,
"license": "MIT",
"dependencies": {
@@ -1555,9 +1555,9 @@
}
},
"node_modules/@typespec/http-client-csharp": {
- "version": "1.0.0-alpha.20251020.2",
- "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20251020.2.tgz",
- "integrity": "sha512-/gxIGC+oYaF+Q0giDnY7i+ChoxF5VVMyrKhxpR6L7lYgv2lavqcSkq+LUYfMZNIQjRuBmMnknjcBuE0L+vBTgg==",
+ "version": "1.0.0-alpha.20251021.4",
+ "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20251021.4.tgz",
+ "integrity": "sha512-fDOnPwcjoiWOc30Jy+SJTAikT/4hv5KXS5TmA1mqnnaPzyMMdRpOAhqRfJi2bTI8ooi1D0eKeth+XOAKG0ZsFw==",
"license": "MIT",
"peerDependencies": {
"@azure-tools/typespec-client-generator-core": ">=0.61.0 < 0.62.0 || ~0.62.0-0",
diff --git a/src/Generated/AssistantClient.RestClient.cs b/src/Generated/AssistantClient.RestClient.cs
index 9574819fc..57f8afac3 100644
--- a/src/Generated/AssistantClient.RestClient.cs
+++ b/src/Generated/AssistantClient.RestClient.cs
@@ -21,7 +21,7 @@ internal virtual PipelineMessage CreateGetAssistantsRequest(int? limit, string o
uri.AppendPath("/assistants", false);
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
if (order != null)
{
diff --git a/src/Generated/BatchClient.RestClient.cs b/src/Generated/BatchClient.RestClient.cs
index e85662c38..67000853e 100644
--- a/src/Generated/BatchClient.RestClient.cs
+++ b/src/Generated/BatchClient.RestClient.cs
@@ -39,7 +39,7 @@ internal virtual PipelineMessage CreateGetBatchesRequest(string after, int? limi
}
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
PipelineMessage message = Pipeline.CreateMessage(uri.ToUri(), "GET", PipelineMessageClassifier200);
PipelineRequest request = message.Request;
diff --git a/src/Generated/ChatClient.RestClient.cs b/src/Generated/ChatClient.RestClient.cs
index 15c0f9f84..5b5032ac7 100644
--- a/src/Generated/ChatClient.RestClient.cs
+++ b/src/Generated/ChatClient.RestClient.cs
@@ -26,7 +26,7 @@ internal virtual PipelineMessage CreateGetChatCompletionsRequest(string after, i
}
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
if (order != null)
{
@@ -121,7 +121,7 @@ internal virtual PipelineMessage CreateGetChatCompletionMessagesRequest(string c
}
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
if (order != null)
{
diff --git a/src/Generated/ContainerClient.RestClient.cs b/src/Generated/ContainerClient.RestClient.cs
index 5b38e5b66..6a12e316c 100644
--- a/src/Generated/ContainerClient.RestClient.cs
+++ b/src/Generated/ContainerClient.RestClient.cs
@@ -21,7 +21,7 @@ internal virtual PipelineMessage CreateGetContainersRequest(int? limit, string o
uri.AppendPath("/containers", false);
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
if (order != null)
{
@@ -103,7 +103,7 @@ internal virtual PipelineMessage CreateGetContainerFilesRequest(string container
uri.AppendPath("/files", false);
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
if (order != null)
{
diff --git a/src/Generated/EvaluationClient.RestClient.cs b/src/Generated/EvaluationClient.RestClient.cs
index dd065d28d..4dceba05f 100644
--- a/src/Generated/EvaluationClient.RestClient.cs
+++ b/src/Generated/EvaluationClient.RestClient.cs
@@ -28,7 +28,7 @@ internal virtual PipelineMessage CreateGetEvalsRequest(string after, int? limit,
}
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
if (order != null)
{
@@ -113,7 +113,7 @@ internal virtual PipelineMessage CreateGetEvalRunsRequest(string evalId, string
}
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
if (order != null)
{
@@ -206,7 +206,7 @@ internal virtual PipelineMessage CreateGetEvalRunOutputItemsRequest(string evalI
}
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
if (status != null)
{
diff --git a/src/Generated/FineTuningClient.RestClient.cs b/src/Generated/FineTuningClient.RestClient.cs
index 27e60988a..8ae0634f5 100644
--- a/src/Generated/FineTuningClient.RestClient.cs
+++ b/src/Generated/FineTuningClient.RestClient.cs
@@ -27,7 +27,7 @@ internal virtual PipelineMessage CreateGetFineTuningCheckpointPermissionsRequest
}
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
if (order != null)
{
@@ -100,7 +100,7 @@ internal virtual PipelineMessage CreateGetPaginatedFineTuningJobsRequest(string
}
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
PipelineMessage message = Pipeline.CreateMessage(uri.ToUri(), "GET", PipelineMessageClassifier200);
PipelineRequest request = message.Request;
@@ -149,7 +149,7 @@ internal virtual PipelineMessage CreateGetFineTuningJobCheckpointsRequest(string
}
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
PipelineMessage message = Pipeline.CreateMessage(uri.ToUri(), "GET", PipelineMessageClassifier200);
PipelineRequest request = message.Request;
@@ -171,7 +171,7 @@ internal virtual PipelineMessage CreateGetFineTuningEventsRequest(string fineTun
}
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
PipelineMessage message = Pipeline.CreateMessage(uri.ToUri(), "GET", PipelineMessageClassifier200);
PipelineRequest request = message.Request;
diff --git a/src/Generated/Internal/ClientUriBuilder.cs b/src/Generated/Internal/ClientUriBuilder.cs
index 066512b50..3ce750b24 100644
--- a/src/Generated/Internal/ClientUriBuilder.cs
+++ b/src/Generated/Internal/ClientUriBuilder.cs
@@ -54,17 +54,17 @@ public void AppendPath(string value, bool escape)
public void AppendPath(int value, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value), escape);
- public void AppendPath(byte[] value, string format, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value, format), escape);
+ public void AppendPath(byte[] value, SerializationFormat format = SerializationFormat.Default, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value, format), escape);
- public void AppendPath(DateTimeOffset value, string format, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value, format), escape);
+ public void AppendPath(DateTimeOffset value, SerializationFormat format = SerializationFormat.Default, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value, format), escape);
- public void AppendPath(TimeSpan value, string format, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value, format), escape);
+ public void AppendPath(TimeSpan value, SerializationFormat format = SerializationFormat.Default, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value, format), escape);
public void AppendPath(Guid value, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value), escape);
public void AppendPath(long value, bool escape = true) => AppendPath(TypeFormatters.ConvertToString(value), escape);
- public void AppendPathDelimited(IEnumerable value, string delimiter, string format = null, bool escape = true)
+ public void AppendPathDelimited(IEnumerable value, string delimiter, SerializationFormat format = SerializationFormat.Default, bool escape = true)
{
delimiter ??= ",";
IEnumerable stringValues = value.Select(v => TypeFormatters.ConvertToString(v, format));
@@ -90,9 +90,9 @@ public void AppendQuery(string name, string value, bool escape)
public void AppendQuery(string name, float value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
- public void AppendQuery(string name, DateTimeOffset value, string format, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value, format), escape);
+ public void AppendQuery(string name, DateTimeOffset value, SerializationFormat format = SerializationFormat.Default, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value, format), escape);
- public void AppendQuery(string name, TimeSpan value, string format, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value, format), escape);
+ public void AppendQuery(string name, TimeSpan value, SerializationFormat format = SerializationFormat.Default, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value, format), escape);
public void AppendQuery(string name, double value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
@@ -104,11 +104,11 @@ public void AppendQuery(string name, string value, bool escape)
public void AppendQuery(string name, TimeSpan value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
- public void AppendQuery(string name, byte[] value, string format, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value, format), escape);
+ public void AppendQuery(string name, byte[] value, SerializationFormat format = SerializationFormat.Default, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value, format), escape);
public void AppendQuery(string name, Guid value, bool escape = true) => AppendQuery(name, TypeFormatters.ConvertToString(value), escape);
- public void AppendQueryDelimited(string name, IEnumerable value, string delimiter, string format = null, bool escape = true)
+ public void AppendQueryDelimited(string name, IEnumerable value, string delimiter, SerializationFormat format = SerializationFormat.Default, bool escape = true)
{
delimiter ??= ",";
IEnumerable stringValues = value.Select(v => TypeFormatters.ConvertToString(v, format));
diff --git a/src/Generated/Internal/PipelineRequestHeadersExtensions.cs b/src/Generated/Internal/PipelineRequestHeadersExtensions.cs
index e1849facc..a67174cc9 100644
--- a/src/Generated/Internal/PipelineRequestHeadersExtensions.cs
+++ b/src/Generated/Internal/PipelineRequestHeadersExtensions.cs
@@ -16,7 +16,7 @@ public static void SetDelimited(this PipelineRequestHeaders headers, string n
headers.Set(name, string.Join(delimiter, stringValues));
}
- public static void SetDelimited(this PipelineRequestHeaders headers, string name, IEnumerable value, string delimiter, string format)
+ public static void SetDelimited(this PipelineRequestHeaders headers, string name, IEnumerable value, string delimiter, SerializationFormat format)
{
IEnumerable stringValues = value.Select(v => TypeFormatters.ConvertToString(v, format));
headers.Set(name, string.Join(delimiter, stringValues));
diff --git a/src/Generated/Internal/SerializationFormat.cs b/src/Generated/Internal/SerializationFormat.cs
new file mode 100644
index 000000000..905014d92
--- /dev/null
+++ b/src/Generated/Internal/SerializationFormat.cs
@@ -0,0 +1,28 @@
+//
+
+#nullable disable
+
+namespace OpenAI
+{
+ internal enum SerializationFormat
+ {
+ Default = 0,
+ DateTime_RFC1123 = 1,
+ DateTime_RFC3339 = 2,
+ DateTime_RFC7231 = 3,
+ DateTime_ISO8601 = 4,
+ DateTime_Unix = 5,
+ Date_ISO8601 = 6,
+ Duration_ISO8601 = 7,
+ Duration_Constant = 8,
+ Duration_Seconds = 9,
+ Duration_Seconds_Float = 10,
+ Duration_Seconds_Double = 11,
+ Duration_Milliseconds = 12,
+ Duration_Milliseconds_Float = 13,
+ Duration_Milliseconds_Double = 14,
+ Time_ISO8601 = 15,
+ Bytes_Base64Url = 16,
+ Bytes_Base64 = 17
+ }
+}
diff --git a/src/Generated/Internal/TypeFormatters.cs b/src/Generated/Internal/TypeFormatters.cs
index e21a80fff..a64c01c73 100644
--- a/src/Generated/Internal/TypeFormatters.cs
+++ b/src/Generated/Internal/TypeFormatters.cs
@@ -131,20 +131,48 @@ public static byte[] FromBase64UrlString(string value)
_ => TimeSpan.ParseExact(value, format, CultureInfo.InvariantCulture)
};
- public static string ConvertToString(object value, string format = null) => value switch
+ public static string ToFormatSpecifier(SerializationFormat format) => format switch
{
- null => "null",
- string s => s,
- bool b => ToString(b),
- int or float or double or long or decimal => ((IFormattable)value).ToString(DefaultNumberFormat, CultureInfo.InvariantCulture),
- byte[] b0 when format != null => ToString(b0, format),
- IEnumerable s0 => string.Join(",", s0),
- DateTimeOffset dateTime when format != null => ToString(dateTime, format),
- TimeSpan timeSpan when format != null => ToString(timeSpan, format),
- TimeSpan timeSpan0 => System.Xml.XmlConvert.ToString(timeSpan0),
- Guid guid => guid.ToString(),
- BinaryData binaryData => ConvertToString(binaryData.ToArray(), format),
- _ => value.ToString()
+ SerializationFormat.DateTime_RFC1123 => "R",
+ SerializationFormat.DateTime_RFC3339 => "O",
+ SerializationFormat.DateTime_RFC7231 => "R",
+ SerializationFormat.DateTime_ISO8601 => "O",
+ SerializationFormat.Date_ISO8601 => "D",
+ SerializationFormat.DateTime_Unix => "U",
+ SerializationFormat.Bytes_Base64Url => "U",
+ SerializationFormat.Bytes_Base64 => "D",
+ SerializationFormat.Duration_ISO8601 => "P",
+ SerializationFormat.Duration_Constant => "c",
+ SerializationFormat.Duration_Seconds => "%s",
+ SerializationFormat.Duration_Seconds_Float => "s\\.FFF",
+ SerializationFormat.Duration_Seconds_Double => "s\\.FFFFFF",
+ SerializationFormat.Time_ISO8601 => "T",
+ _ => null
};
+
+ public static string ConvertToString(object value, SerializationFormat format = SerializationFormat.Default)
+ {
+ string formatSpecifier = ToFormatSpecifier(format);
+
+ return value switch
+ {
+ null => "null",
+ string s => s,
+ bool b => ToString(b),
+ int or float or double or long or decimal => ((IFormattable)value).ToString(DefaultNumberFormat, CultureInfo.InvariantCulture),
+ byte[] b0 when formatSpecifier != null => ToString(b0, formatSpecifier),
+ IEnumerable s0 => string.Join(",", s0),
+ DateTimeOffset dateTime when formatSpecifier != null => ToString(dateTime, formatSpecifier),
+ TimeSpan timeSpan when format == SerializationFormat.Duration_Seconds => Convert.ToInt32(timeSpan.TotalSeconds).ToString(CultureInfo.InvariantCulture),
+ TimeSpan timeSpan0 when format == SerializationFormat.Duration_Seconds_Float || format == SerializationFormat.Duration_Seconds_Double => timeSpan0.TotalSeconds.ToString(CultureInfo.InvariantCulture),
+ TimeSpan timeSpan1 when format == SerializationFormat.Duration_Milliseconds => Convert.ToInt32(timeSpan1.TotalMilliseconds).ToString(CultureInfo.InvariantCulture),
+ TimeSpan timeSpan2 when format == SerializationFormat.Duration_Milliseconds_Float || format == SerializationFormat.Duration_Milliseconds_Double => timeSpan2.TotalMilliseconds.ToString(CultureInfo.InvariantCulture),
+ TimeSpan timeSpan3 when formatSpecifier != null => ToString(timeSpan3, formatSpecifier),
+ TimeSpan timeSpan4 => System.Xml.XmlConvert.ToString(timeSpan4),
+ Guid guid => guid.ToString(),
+ BinaryData binaryData => ConvertToString(binaryData.ToArray(), format),
+ _ => value.ToString()
+ };
+ }
}
}
diff --git a/src/Generated/InternalAssistantMessageClient.RestClient.cs b/src/Generated/InternalAssistantMessageClient.RestClient.cs
index ab5d9b32c..fab185688 100644
--- a/src/Generated/InternalAssistantMessageClient.RestClient.cs
+++ b/src/Generated/InternalAssistantMessageClient.RestClient.cs
@@ -40,7 +40,7 @@ internal virtual PipelineMessage CreateGetMessagesRequest(string threadId, int?
uri.AppendPath("/messages", false);
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
if (order != null)
{
diff --git a/src/Generated/InternalAssistantRunClient.RestClient.cs b/src/Generated/InternalAssistantRunClient.RestClient.cs
index 4b08005d3..b7f980c96 100644
--- a/src/Generated/InternalAssistantRunClient.RestClient.cs
+++ b/src/Generated/InternalAssistantRunClient.RestClient.cs
@@ -39,7 +39,7 @@ internal virtual PipelineMessage CreateCreateRunRequest(string threadId, BinaryC
uri.AppendPath("/runs", false);
if (include != null && !(include is ChangeTrackingList changeTrackingList && changeTrackingList.IsUndefined))
{
- uri.AppendQueryDelimited("include[]", include, ",", null, true);
+ uri.AppendQueryDelimited("include[]", include, ",", escape: true);
}
PipelineMessage message = Pipeline.CreateMessage(uri.ToUri(), "POST", PipelineMessageClassifier200);
PipelineRequest request = message.Request;
@@ -60,7 +60,7 @@ internal virtual PipelineMessage CreateGetRunsRequest(string threadId, int? limi
uri.AppendPath("/runs", false);
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
if (order != null)
{
@@ -163,7 +163,7 @@ internal virtual PipelineMessage CreateGetRunStepsRequest(string threadId, strin
uri.AppendPath("/steps", false);
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
if (order != null)
{
@@ -179,7 +179,7 @@ internal virtual PipelineMessage CreateGetRunStepsRequest(string threadId, strin
}
if (include != null && !(include is ChangeTrackingList changeTrackingList && changeTrackingList.IsUndefined))
{
- uri.AppendQueryDelimited("include[]", include, ",", null, true);
+ uri.AppendQueryDelimited("include[]", include, ",", escape: true);
}
PipelineMessage message = Pipeline.CreateMessage(uri.ToUri(), "GET", PipelineMessageClassifier200);
PipelineRequest request = message.Request;
@@ -201,7 +201,7 @@ internal virtual PipelineMessage CreateGetRunStepRequest(string threadId, string
uri.AppendPath(stepId, true);
if (include != null && !(include is ChangeTrackingList changeTrackingList && changeTrackingList.IsUndefined))
{
- uri.AppendQueryDelimited("include[]", include, ",", null, true);
+ uri.AppendQueryDelimited("include[]", include, ",", escape: true);
}
PipelineMessage message = Pipeline.CreateMessage(uri.ToUri(), "GET", PipelineMessageClassifier200);
PipelineRequest request = message.Request;
diff --git a/src/Generated/OpenAIResponseClient.RestClient.cs b/src/Generated/OpenAIResponseClient.RestClient.cs
index 428d561ef..fd253274d 100644
--- a/src/Generated/OpenAIResponseClient.RestClient.cs
+++ b/src/Generated/OpenAIResponseClient.RestClient.cs
@@ -44,11 +44,11 @@ internal virtual PipelineMessage CreateGetResponseRequest(string responseId, IEn
}
if (stream != null)
{
- uri.AppendQuery("stream", TypeFormatters.ConvertToString(stream, null), true);
+ uri.AppendQuery("stream", TypeFormatters.ConvertToString(stream), true);
}
if (startingAfter != null)
{
- uri.AppendQuery("starting_after", TypeFormatters.ConvertToString(startingAfter, null), true);
+ uri.AppendQuery("starting_after", TypeFormatters.ConvertToString(startingAfter), true);
}
PipelineMessage message = Pipeline.CreateMessage(uri.ToUri(), "GET", PipelineMessageClassifier200);
PipelineRequest request = message.Request;
@@ -93,7 +93,7 @@ internal virtual PipelineMessage CreateGetResponseInputItemsRequest(string respo
uri.AppendPath("/input_items", false);
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
if (order != null)
{
diff --git a/src/Generated/VectorStoreClient.RestClient.cs b/src/Generated/VectorStoreClient.RestClient.cs
index 5143ce908..3894f1708 100644
--- a/src/Generated/VectorStoreClient.RestClient.cs
+++ b/src/Generated/VectorStoreClient.RestClient.cs
@@ -21,7 +21,7 @@ internal virtual PipelineMessage CreateGetVectorStoresRequest(int? limit, string
uri.AppendPath("/vector_stores", false);
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
if (order != null)
{
@@ -155,7 +155,7 @@ internal virtual PipelineMessage CreateGetVectorStoreFilesInBatchRequest(string
uri.AppendPath("/files", false);
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
if (order != null)
{
@@ -189,7 +189,7 @@ internal virtual PipelineMessage CreateGetVectorStoreFilesRequest(string vectorS
uri.AppendPath("/files", false);
if (limit != null)
{
- uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit, null), true);
+ uri.AppendQuery("limit", TypeFormatters.ConvertToString(limit), true);
}
if (order != null)
{