Skip to content

Commit 9a79c80

Browse files
committed
regen
1 parent eab8686 commit 9a79c80

8 files changed

+167
-10
lines changed

package-lock.json

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

src/Generated/Models/Audio/AudioTranscription.Serialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
4545
if (_additionalBinaryDataProperties?.ContainsKey("duration") != true)
4646
{
4747
writer.WritePropertyName("duration"u8);
48-
writer.WriteNumberValue(Convert.ToDouble(Duration.Value.ToString("s\\.FFF")));
48+
writer.WriteNumberValue(Duration.Value.TotalSeconds);
4949
}
5050
if (_additionalBinaryDataProperties?.ContainsKey("text") != true)
5151
{

src/Generated/Models/Audio/AudioTranslation.Serialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
4646
if (_additionalBinaryDataProperties?.ContainsKey("duration") != true)
4747
{
4848
writer.WritePropertyName("duration"u8);
49-
writer.WriteNumberValue(Convert.ToDouble(Duration.Value.ToString("s\\.FFF")));
49+
writer.WriteNumberValue(Duration.Value.TotalSeconds);
5050
}
5151
if (_additionalBinaryDataProperties?.ContainsKey("text") != true)
5252
{

src/Generated/Models/Audio/InternalCreateTranscriptionResponseVerboseJson.Serialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
4444
if (_additionalBinaryDataProperties?.ContainsKey("duration") != true)
4545
{
4646
writer.WritePropertyName("duration"u8);
47-
writer.WriteNumberValue(Convert.ToDouble(Duration.ToString("s\\.FFF")));
47+
writer.WriteNumberValue(Duration.TotalSeconds);
4848
}
4949
if (_additionalBinaryDataProperties?.ContainsKey("text") != true)
5050
{

src/Generated/Models/Audio/TranscribedSegment.Serialization.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ private void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions
4343
if (_additionalBinaryDataProperties?.ContainsKey("start") != true)
4444
{
4545
writer.WritePropertyName("start"u8);
46-
writer.WriteNumberValue(Convert.ToDouble(StartTime.ToString("s\\.FFF")));
46+
writer.WriteNumberValue(StartTime.TotalSeconds);
4747
}
4848
if (_additionalBinaryDataProperties?.ContainsKey("end") != true)
4949
{
5050
writer.WritePropertyName("end"u8);
51-
writer.WriteNumberValue(Convert.ToDouble(EndTime.ToString("s\\.FFF")));
51+
writer.WriteNumberValue(EndTime.TotalSeconds);
5252
}
5353
if (_additionalBinaryDataProperties?.ContainsKey("text") != true)
5454
{

src/Generated/Models/Audio/TranscribedWord.Serialization.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,12 @@ private void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions
3838
if (_additionalBinaryDataProperties?.ContainsKey("start") != true)
3939
{
4040
writer.WritePropertyName("start"u8);
41-
writer.WriteNumberValue(Convert.ToDouble(StartTime.ToString("s\\.FFF")));
41+
writer.WriteNumberValue(StartTime.TotalSeconds);
4242
}
4343
if (_additionalBinaryDataProperties?.ContainsKey("end") != true)
4444
{
4545
writer.WritePropertyName("end"u8);
46-
writer.WriteNumberValue(Convert.ToDouble(EndTime.ToString("s\\.FFF")));
46+
writer.WriteNumberValue(EndTime.TotalSeconds);
4747
}
4848
// Plugin customization: remove options.Format != "W" check
4949
if (_additionalBinaryDataProperties != null)

src/Generated/Models/OpenAIContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ namespace OpenAI
5656
[ModelReaderWriterBuildable(typeof(ChatOutputAudioReference))]
5757
[ModelReaderWriterBuildable(typeof(ChatOutputPrediction))]
5858
[ModelReaderWriterBuildable(typeof(ChatOutputTokenUsageDetails))]
59-
[ModelReaderWriterBuildable(typeof(Chat.ChatResponseFormat))]
59+
[ModelReaderWriterBuildable(typeof(ChatResponseFormat))]
6060
[ModelReaderWriterBuildable(typeof(ChatTokenLogProbabilityDetails))]
6161
[ModelReaderWriterBuildable(typeof(ChatTokenTopLogProbabilityDetails))]
6262
[ModelReaderWriterBuildable(typeof(ChatTokenUsage))]

src/Generated/Models/Realtime/ConversationRateLimitDetailsItem.Serialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
4848
if (_additionalBinaryDataProperties?.ContainsKey("reset_seconds") != true)
4949
{
5050
writer.WritePropertyName("reset_seconds"u8);
51-
writer.WriteNumberValue(Convert.ToDouble(TimeUntilReset.ToString("s\\.FFF")));
51+
writer.WriteNumberValue(TimeUntilReset.TotalSeconds);
5252
}
5353
// Plugin customization: remove options.Format != "W" check
5454
if (_additionalBinaryDataProperties != null)

0 commit comments

Comments
 (0)