Skip to content

Commit 32bfd2b

Browse files
authored
Temporarily override 'W' format check in deserialization (#171)
1 parent 065e51c commit 32bfd2b

File tree

245 files changed

+276
-263
lines changed

Some content is hidden

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

245 files changed

+276
-263
lines changed

src/Generated/Models/Assistant.Serialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ internal static Assistant DeserializeAssistant(JsonElement element, ModelReaderW
327327
responseFormat = AssistantResponseFormat.DeserializeAssistantResponseFormat(property.Value, options);
328328
continue;
329329
}
330-
if (options.Format != "W")
330+
if (true)
331331
{
332332
rawDataDictionary ??= new Dictionary<string, BinaryData>();
333333
rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));

src/Generated/Models/AssistantChatMessage.Serialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ internal static AssistantChatMessage DeserializeAssistantChatMessage(JsonElement
8080
DeserializeContentValue(property, ref content);
8181
continue;
8282
}
83-
if (options.Format != "W")
83+
if (true)
8484
{
8585
rawDataDictionary ??= new Dictionary<string, BinaryData>();
8686
rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));

src/Generated/Models/AssistantCreationOptions.Serialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ internal static AssistantCreationOptions DeserializeAssistantCreationOptions(Jso
297297
responseFormat = AssistantResponseFormat.DeserializeAssistantResponseFormat(property.Value, options);
298298
continue;
299299
}
300-
if (options.Format != "W")
300+
if (true)
301301
{
302302
rawDataDictionary ??= new Dictionary<string, BinaryData>();
303303
rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));

src/Generated/Models/AssistantModificationOptions.Serialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ internal static AssistantModificationOptions DeserializeAssistantModificationOpt
297297
responseFormat = AssistantResponseFormat.DeserializeAssistantResponseFormat(property.Value, options);
298298
continue;
299299
}
300-
if (options.Format != "W")
300+
if (true)
301301
{
302302
rawDataDictionary ??= new Dictionary<string, BinaryData>();
303303
rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));

src/Generated/Models/AssistantThread.Serialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ internal static AssistantThread DeserializeAssistantThread(JsonElement element,
157157
metadata = dictionary;
158158
continue;
159159
}
160-
if (options.Format != "W")
160+
if (true)
161161
{
162162
rawDataDictionary ??= new Dictionary<string, BinaryData>();
163163
rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));

src/Generated/Models/AudioTranscription.Serialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ internal static AudioTranscription DeserializeAudioTranscription(JsonElement ele
161161
segments = array;
162162
continue;
163163
}
164-
if (options.Format != "W")
164+
if (true)
165165
{
166166
rawDataDictionary ??= new Dictionary<string, BinaryData>();
167167
rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));

src/Generated/Models/AudioTranscriptionOptions.Serialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ internal static AudioTranscriptionOptions DeserializeAudioTranscriptionOptions(J
193193
timestampGranularities = array;
194194
continue;
195195
}
196-
if (options.Format != "W")
196+
if (true)
197197
{
198198
rawDataDictionary ??= new Dictionary<string, BinaryData>();
199199
rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));

src/Generated/Models/AudioTranslation.Serialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ internal static AudioTranslation DeserializeAudioTranslation(JsonElement element
136136
segments = array;
137137
continue;
138138
}
139-
if (options.Format != "W")
139+
if (true)
140140
{
141141
rawDataDictionary ??= new Dictionary<string, BinaryData>();
142142
rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));

src/Generated/Models/AudioTranslationOptions.Serialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ internal static AudioTranslationOptions DeserializeAudioTranslationOptions(JsonE
138138
temperature = property.Value.GetSingle();
139139
continue;
140140
}
141-
if (options.Format != "W")
141+
if (true)
142142
{
143143
rawDataDictionary ??= new Dictionary<string, BinaryData>();
144144
rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));

src/Generated/Models/ChatCompletion.Serialization.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ internal static ChatCompletion DeserializeChatCompletion(JsonElement element, Mo
158158
usage = ChatTokenUsage.DeserializeChatTokenUsage(property.Value, options);
159159
continue;
160160
}
161-
if (options.Format != "W")
161+
if (true)
162162
{
163163
rawDataDictionary ??= new Dictionary<string, BinaryData>();
164164
rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));

0 commit comments

Comments
 (0)