Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ public class ChatCompletionRequestStopJsonConverter : global::System.Text.Json.S
catch (global::System.InvalidOperationException)
{
}
catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
{
// Legacy enum converters signal an incompatible JSON token with this exception.
}
}

else if (__bestIndex == 1)
Expand All @@ -90,6 +94,10 @@ public class ChatCompletionRequestStopJsonConverter : global::System.Text.Json.S
catch (global::System.InvalidOperationException)
{
}
catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
{
// Legacy enum converters signal an incompatible JSON token with this exception.
}
}
}

Expand All @@ -108,6 +116,10 @@ public class ChatCompletionRequestStopJsonConverter : global::System.Text.Json.S
catch (global::System.InvalidOperationException)
{
}
catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
{
// Legacy enum converters signal an incompatible JSON token with this exception.
}
}

if (chatCompletionRequestStopVariant1 == null && chatCompletionRequestStopVariant2 == null)
Expand All @@ -125,6 +137,10 @@ public class ChatCompletionRequestStopJsonConverter : global::System.Text.Json.S
catch (global::System.InvalidOperationException)
{
}
catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
{
// Legacy enum converters signal an incompatible JSON token with this exception.
}
}

var __value = new global::SmallestAI.ChatCompletionRequestStop(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,10 @@ public class ChatCompletionRequestToolChoiceJsonConverter : global::System.Text.
catch (global::System.InvalidOperationException)
{
}
catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
{
// Legacy enum converters signal an incompatible JSON token with this exception.
}
}
else if (__bestIndex == 1)
{
Expand All @@ -77,6 +81,10 @@ public class ChatCompletionRequestToolChoiceJsonConverter : global::System.Text.
catch (global::System.InvalidOperationException)
{
}
catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
{
// Legacy enum converters signal an incompatible JSON token with this exception.
}
}
}

Expand All @@ -95,6 +103,10 @@ public class ChatCompletionRequestToolChoiceJsonConverter : global::System.Text.
catch (global::System.InvalidOperationException)
{
}
catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
{
// Legacy enum converters signal an incompatible JSON token with this exception.
}
}

if (chatCompletionRequestToolChoice0 == null && chatCompletionRequestToolChoice1 == null)
Expand All @@ -112,6 +124,10 @@ public class ChatCompletionRequestToolChoiceJsonConverter : global::System.Text.
catch (global::System.InvalidOperationException)
{
}
catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
{
// Legacy enum converters signal an incompatible JSON token with this exception.
}
}

var __value = new global::SmallestAI.ChatCompletionRequestToolChoice(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ public class SpeechToTextTranscribeResponse200JsonConverter : global::System.Tex
catch (global::System.InvalidOperationException)
{
}
catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
{
// Legacy enum converters signal an incompatible JSON token with this exception.
}
}
else if (__bestIndex == 1)
{
Expand All @@ -91,6 +95,10 @@ public class SpeechToTextTranscribeResponse200JsonConverter : global::System.Tex
catch (global::System.InvalidOperationException)
{
}
catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
{
// Legacy enum converters signal an incompatible JSON token with this exception.
}
}
}

Expand All @@ -109,6 +117,10 @@ public class SpeechToTextTranscribeResponse200JsonConverter : global::System.Tex
catch (global::System.InvalidOperationException)
{
}
catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
{
// Legacy enum converters signal an incompatible JSON token with this exception.
}
}

if (transcriptionResponse == null && asyncAccepted == null)
Expand All @@ -126,6 +138,10 @@ public class SpeechToTextTranscribeResponse200JsonConverter : global::System.Tex
catch (global::System.InvalidOperationException)
{
}
catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
{
// Legacy enum converters signal an incompatible JSON token with this exception.
}
}

var __value = new global::SmallestAI.SpeechToTextTranscribeResponse200(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ public class SttErrorResponseErrorsJsonConverter : global::System.Text.Json.Seri
catch (global::System.InvalidOperationException)
{
}
catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
{
// Legacy enum converters signal an incompatible JSON token with this exception.
}
}

else if (__bestIndex == 1)
Expand All @@ -90,6 +94,10 @@ public class SttErrorResponseErrorsJsonConverter : global::System.Text.Json.Seri
catch (global::System.InvalidOperationException)
{
}
catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
{
// Legacy enum converters signal an incompatible JSON token with this exception.
}
}
}

Expand All @@ -108,6 +116,10 @@ public class SttErrorResponseErrorsJsonConverter : global::System.Text.Json.Seri
catch (global::System.InvalidOperationException)
{
}
catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
{
// Legacy enum converters signal an incompatible JSON token with this exception.
}
}

if (sttErrorResponseErrors0 == null && sttErrorResponseErrorsVariant2 == null)
Expand All @@ -125,6 +137,10 @@ public class SttErrorResponseErrorsJsonConverter : global::System.Text.Json.Seri
catch (global::System.InvalidOperationException)
{
}
catch (global::System.ArgumentOutOfRangeException __enumTokenException) when (__enumTokenException.ParamName == "reader")
{
// Legacy enum converters signal an incompatible JSON token with this exception.
}
}

var __value = new global::SmallestAI.SttErrorResponseErrors(
Expand Down
Loading