From e8084727960cd26049eeaac236e2442c4fbc3806 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 6 Nov 2024 21:18:23 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- src/libs/Groq/Generated/AnyOf.2.g.cs | 29 +++++++++++++++++++ ...dels.ChatCompletionFunctionCallOption.g.cs | 29 +++++++++++++++++++ .../Groq.Models.ChatCompletionFunctions.g.cs | 29 +++++++++++++++++++ ....Models.ChatCompletionMessageToolCall.g.cs | 29 +++++++++++++++++++ ...ls.ChatCompletionMessageToolCallChunk.g.cs | 29 +++++++++++++++++++ ...ompletionMessageToolCallChunkFunction.g.cs | 29 +++++++++++++++++++ ...ChatCompletionMessageToolCallFunction.g.cs | 29 +++++++++++++++++++ ....Models.ChatCompletionNamedToolChoice.g.cs | 29 +++++++++++++++++++ ...ChatCompletionNamedToolChoiceFunction.g.cs | 29 +++++++++++++++++++ ...ChatCompletionRequestAssistantMessage.g.cs | 29 +++++++++++++++++++ ...onRequestAssistantMessageFunctionCall.g.cs | 29 +++++++++++++++++++ ....ChatCompletionRequestFunctionMessage.g.cs | 29 +++++++++++++++++++ ...q.Models.ChatCompletionRequestMessage.g.cs | 29 +++++++++++++++++++ ...atCompletionRequestMessageContentPart.g.cs | 29 +++++++++++++++++++ ...equestMessageContentPartDiscriminator.g.cs | 29 +++++++++++++++++++ ...pletionRequestMessageContentPartImage.g.cs | 29 +++++++++++++++++++ ...equestMessageContentPartImageImageUrl.g.cs | 29 +++++++++++++++++++ ...mpletionRequestMessageContentPartText.g.cs | 29 +++++++++++++++++++ ...CompletionRequestMessageDiscriminator.g.cs | 29 +++++++++++++++++++ ...ls.ChatCompletionRequestSystemMessage.g.cs | 29 +++++++++++++++++++ ...dels.ChatCompletionRequestToolMessage.g.cs | 29 +++++++++++++++++++ ...dels.ChatCompletionRequestUserMessage.g.cs | 29 +++++++++++++++++++ ....Models.ChatCompletionResponseMessage.g.cs | 29 +++++++++++++++++++ ...CompletionResponseMessageFunctionCall.g.cs | 29 +++++++++++++++++++ ...oq.Models.ChatCompletionStreamOptions.g.cs | 29 +++++++++++++++++++ ...els.ChatCompletionStreamResponseDelta.g.cs | 29 +++++++++++++++++++ ...letionStreamResponseDeltaFunctionCall.g.cs | 29 +++++++++++++++++++ ...roq.Models.ChatCompletionTokenLogprob.g.cs | 29 +++++++++++++++++++ ....ChatCompletionTokenLogprobTopLogprob.g.cs | 29 +++++++++++++++++++ .../Groq.Models.ChatCompletionTool.g.cs | 29 +++++++++++++++++++ ...Models.ChatCompletionToolChoiceOption.g.cs | 29 +++++++++++++++++++ .../Groq.Models.CompletionUsage.g.cs | 29 +++++++++++++++++++ ...oq.Models.CreateChatCompletionRequest.g.cs | 29 +++++++++++++++++++ ....CreateChatCompletionRequestLogitBias.g.cs | 29 +++++++++++++++++++ ...teChatCompletionRequestResponseFormat.g.cs | 29 +++++++++++++++++++ ...q.Models.CreateChatCompletionResponse.g.cs | 29 +++++++++++++++++++ ...ls.CreateChatCompletionResponseChoice.g.cs | 29 +++++++++++++++++++ ...eChatCompletionResponseChoiceLogprobs.g.cs | 29 +++++++++++++++++++ ...ls.CreateChatCompletionStreamResponse.g.cs | 29 +++++++++++++++++++ ...ateChatCompletionStreamResponseChoice.g.cs | 29 +++++++++++++++++++ ...ompletionStreamResponseChoiceLogprobs.g.cs | 29 +++++++++++++++++++ .../Groq.Models.CreateEmbeddingRequest.g.cs | 29 +++++++++++++++++++ .../Groq.Models.CreateEmbeddingResponse.g.cs | 29 +++++++++++++++++++ ...q.Models.CreateEmbeddingResponseUsage.g.cs | 29 +++++++++++++++++++ ...roq.Models.CreateTranscriptionRequest.g.cs | 29 +++++++++++++++++++ ...odels.CreateTranscriptionResponseJson.g.cs | 29 +++++++++++++++++++ ...reateTranscriptionResponseVerboseJson.g.cs | 29 +++++++++++++++++++ .../Groq.Models.CreateTranslationRequest.g.cs | 29 +++++++++++++++++++ ....Models.CreateTranslationResponseJson.g.cs | 29 +++++++++++++++++++ ....CreateTranslationResponseVerboseJson.g.cs | 29 +++++++++++++++++++ .../Groq.Models.DeleteModelResponse.g.cs | 29 +++++++++++++++++++ .../Groq/Generated/Groq.Models.Embedding.g.cs | 29 +++++++++++++++++++ .../Groq/Generated/Groq.Models.Error.g.cs | 29 +++++++++++++++++++ .../Generated/Groq.Models.ErrorResponse.g.cs | 29 +++++++++++++++++++ .../Generated/Groq.Models.FunctionObject.g.cs | 29 +++++++++++++++++++ .../Groq.Models.FunctionParameters.g.cs | 29 +++++++++++++++++++ .../Groq.Models.ListModelsResponse.g.cs | 29 +++++++++++++++++++ .../Groq/Generated/Groq.Models.Model5.g.cs | 29 +++++++++++++++++++ .../Groq.Models.TranscriptionSegment.g.cs | 29 +++++++++++++++++++ .../Groq.Models.TranscriptionWord.g.cs | 29 +++++++++++++++++++ .../Groq/Generated/Groq.Models.XGroq.g.cs | 29 +++++++++++++++++++ src/libs/Groq/Generated/OneOf.2.g.cs | 29 +++++++++++++++++++ 62 files changed, 1798 insertions(+) diff --git a/src/libs/Groq/Generated/AnyOf.2.g.cs b/src/libs/Groq/Generated/AnyOf.2.g.cs index f960af5..0ef8ef4 100644 --- a/src/libs/Groq/Generated/AnyOf.2.g.cs +++ b/src/libs/Groq/Generated/AnyOf.2.g.cs @@ -267,5 +267,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask?> FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.AnyOf), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.AnyOf?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask?> FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( + jsonStream, + jsonSerializerOptions); + } + } } diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionFunctionCallOption.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionFunctionCallOption.g.cs index b7d2267..2956032 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionFunctionCallOption.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionFunctionCallOption.g.cs @@ -78,5 +78,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionFunctionCallOption), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionFunctionCallOption; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionFunctions.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionFunctions.g.cs index a7ac512..436566e 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionFunctions.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionFunctions.g.cs @@ -95,5 +95,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionFunctions), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionFunctions; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionMessageToolCall.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionMessageToolCall.g.cs index 7f8f262..995c291 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionMessageToolCall.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionMessageToolCall.g.cs @@ -92,5 +92,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionMessageToolCall), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionMessageToolCall; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionMessageToolCallChunk.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionMessageToolCallChunk.g.cs index b822724..58fd378 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionMessageToolCallChunk.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionMessageToolCallChunk.g.cs @@ -97,5 +97,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionMessageToolCallChunk), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionMessageToolCallChunk; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionMessageToolCallChunkFunction.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionMessageToolCallChunkFunction.g.cs index fb4269e..01d1e24 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionMessageToolCallChunkFunction.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionMessageToolCallChunkFunction.g.cs @@ -83,5 +83,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionMessageToolCallChunkFunction), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionMessageToolCallChunkFunction; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionMessageToolCallFunction.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionMessageToolCallFunction.g.cs index e35f5c9..36dcba2 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionMessageToolCallFunction.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionMessageToolCallFunction.g.cs @@ -85,5 +85,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionMessageToolCallFunction), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionMessageToolCallFunction; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionNamedToolChoice.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionNamedToolChoice.g.cs index bc6eeb9..7f7744e 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionNamedToolChoice.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionNamedToolChoice.g.cs @@ -85,5 +85,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionNamedToolChoice), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionNamedToolChoice; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionNamedToolChoiceFunction.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionNamedToolChoiceFunction.g.cs index 34cbbb3..3487ee5 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionNamedToolChoiceFunction.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionNamedToolChoiceFunction.g.cs @@ -78,5 +78,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionNamedToolChoiceFunction), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionNamedToolChoiceFunction; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestAssistantMessage.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestAssistantMessage.g.cs index 154a9b3..28d3578 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestAssistantMessage.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestAssistantMessage.g.cs @@ -103,5 +103,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionRequestAssistantMessage), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionRequestAssistantMessage; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestAssistantMessageFunctionCall.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestAssistantMessageFunctionCall.g.cs index d38e9d0..3b0d800 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestAssistantMessageFunctionCall.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestAssistantMessageFunctionCall.g.cs @@ -86,5 +86,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionRequestAssistantMessageFunctionCall), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionRequestAssistantMessageFunctionCall; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestFunctionMessage.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestFunctionMessage.g.cs index 26d5d4d..09ff93a 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestFunctionMessage.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestFunctionMessage.g.cs @@ -96,5 +96,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionRequestFunctionMessage), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionRequestFunctionMessage; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessage.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessage.g.cs index e8cd7bf..27aa920 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessage.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessage.g.cs @@ -429,5 +429,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionRequestMessage), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionRequestMessage?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPart.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPart.g.cs index 78a1ecf..95965d3 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPart.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPart.g.cs @@ -276,5 +276,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionRequestMessageContentPart), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionRequestMessageContentPart?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPartDiscriminator.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPartDiscriminator.g.cs index 9d1cb11..83ccf0b 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPartDiscriminator.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPartDiscriminator.g.cs @@ -78,5 +78,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionRequestMessageContentPartDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionRequestMessageContentPartDiscriminator; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPartImage.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPartImage.g.cs index 9757346..020ac6b 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPartImage.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPartImage.g.cs @@ -85,5 +85,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionRequestMessageContentPartImage), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionRequestMessageContentPartImage; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPartImageImageUrl.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPartImageImageUrl.g.cs index 78014da..38bf147 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPartImageImageUrl.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPartImageImageUrl.g.cs @@ -86,5 +86,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionRequestMessageContentPartImageImageUrl), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionRequestMessageContentPartImageImageUrl; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPartText.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPartText.g.cs index 2dba2e0..1aba596 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPartText.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageContentPartText.g.cs @@ -85,5 +85,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionRequestMessageContentPartText), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionRequestMessageContentPartText; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageDiscriminator.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageDiscriminator.g.cs index 8eb1c67..33f5b2a 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageDiscriminator.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestMessageDiscriminator.g.cs @@ -78,5 +78,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionRequestMessageDiscriminator), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionRequestMessageDiscriminator; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestSystemMessage.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestSystemMessage.g.cs index 454482c..a4cfaeb 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestSystemMessage.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestSystemMessage.g.cs @@ -91,5 +91,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionRequestSystemMessage), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionRequestSystemMessage; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestToolMessage.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestToolMessage.g.cs index e5895ac..8a4ad17 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestToolMessage.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestToolMessage.g.cs @@ -92,5 +92,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionRequestToolMessage), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionRequestToolMessage; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestUserMessage.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestUserMessage.g.cs index c606f1d..3c4a932 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestUserMessage.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionRequestUserMessage.g.cs @@ -94,5 +94,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionRequestUserMessage), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionRequestUserMessage; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionResponseMessage.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionResponseMessage.g.cs index 0918ca7..c7965ec 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionResponseMessage.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionResponseMessage.g.cs @@ -98,5 +98,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionResponseMessage), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionResponseMessage; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionResponseMessageFunctionCall.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionResponseMessageFunctionCall.g.cs index a9507c1..19781e5 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionResponseMessageFunctionCall.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionResponseMessageFunctionCall.g.cs @@ -88,5 +88,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionResponseMessageFunctionCall), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionResponseMessageFunctionCall; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionStreamOptions.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionStreamOptions.g.cs index 74afd81..c8822a8 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionStreamOptions.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionStreamOptions.g.cs @@ -77,5 +77,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionStreamOptions), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionStreamOptions; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionStreamResponseDelta.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionStreamResponseDelta.g.cs index 759c974..41cfe6f 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionStreamResponseDelta.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionStreamResponseDelta.g.cs @@ -97,5 +97,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionStreamResponseDelta), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionStreamResponseDelta; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionStreamResponseDeltaFunctionCall.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionStreamResponseDeltaFunctionCall.g.cs index 1f7e335..3177dc8 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionStreamResponseDeltaFunctionCall.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionStreamResponseDeltaFunctionCall.g.cs @@ -86,5 +86,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionStreamResponseDeltaFunctionCall), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionStreamResponseDeltaFunctionCall; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionTokenLogprob.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionTokenLogprob.g.cs index c7e5667..bb78d51 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionTokenLogprob.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionTokenLogprob.g.cs @@ -99,5 +99,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionTokenLogprob), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionTokenLogprob; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionTokenLogprobTopLogprob.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionTokenLogprobTopLogprob.g.cs index 169fc28..fb7e7b5 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionTokenLogprobTopLogprob.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionTokenLogprobTopLogprob.g.cs @@ -92,5 +92,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionTokenLogprobTopLogprob), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionTokenLogprobTopLogprob; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionTool.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionTool.g.cs index d66ea67..ff7919c 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionTool.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionTool.g.cs @@ -85,5 +85,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionTool), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionTool; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ChatCompletionToolChoiceOption.g.cs b/src/libs/Groq/Generated/Groq.Models.ChatCompletionToolChoiceOption.g.cs index 89cc957..3babc60 100644 --- a/src/libs/Groq/Generated/Groq.Models.ChatCompletionToolChoiceOption.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ChatCompletionToolChoiceOption.g.cs @@ -273,5 +273,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ChatCompletionToolChoiceOption), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ChatCompletionToolChoiceOption?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } diff --git a/src/libs/Groq/Generated/Groq.Models.CompletionUsage.g.cs b/src/libs/Groq/Generated/Groq.Models.CompletionUsage.g.cs index 4dca49c..f08e36c 100644 --- a/src/libs/Groq/Generated/Groq.Models.CompletionUsage.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.CompletionUsage.g.cs @@ -116,5 +116,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.CompletionUsage), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.CompletionUsage; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionRequest.g.cs b/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionRequest.g.cs index db8ad58..bb8e758 100644 --- a/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionRequest.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionRequest.g.cs @@ -234,5 +234,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.CreateChatCompletionRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.CreateChatCompletionRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionRequestLogitBias.g.cs b/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionRequestLogitBias.g.cs index 0abc89e..051fc3d 100644 --- a/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionRequestLogitBias.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionRequestLogitBias.g.cs @@ -73,5 +73,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.CreateChatCompletionRequestLogitBias), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.CreateChatCompletionRequestLogitBias; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionRequestResponseFormat.g.cs b/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionRequestResponseFormat.g.cs index 61629f8..fb4e209 100644 --- a/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionRequestResponseFormat.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionRequestResponseFormat.g.cs @@ -82,5 +82,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.CreateChatCompletionRequestResponseFormat), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.CreateChatCompletionRequestResponseFormat; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionResponse.g.cs b/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionResponse.g.cs index f1f7948..9fa6451 100644 --- a/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionResponse.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionResponse.g.cs @@ -120,5 +120,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.CreateChatCompletionResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.CreateChatCompletionResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionResponseChoice.g.cs b/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionResponseChoice.g.cs index 4bfa0c5..007a0ca 100644 --- a/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionResponseChoice.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionResponseChoice.g.cs @@ -102,5 +102,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.CreateChatCompletionResponseChoice), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.CreateChatCompletionResponseChoice; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionResponseChoiceLogprobs.g.cs b/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionResponseChoiceLogprobs.g.cs index 46ac0f2..26dc11d 100644 --- a/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionResponseChoiceLogprobs.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionResponseChoiceLogprobs.g.cs @@ -78,5 +78,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.CreateChatCompletionResponseChoiceLogprobs), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.CreateChatCompletionResponseChoiceLogprobs; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionStreamResponse.g.cs b/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionStreamResponse.g.cs index 4e098a9..a253966 100644 --- a/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionStreamResponse.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionStreamResponse.g.cs @@ -120,5 +120,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.CreateChatCompletionStreamResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.CreateChatCompletionStreamResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionStreamResponseChoice.g.cs b/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionStreamResponseChoice.g.cs index ef19a65..dde66e8 100644 --- a/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionStreamResponseChoice.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionStreamResponseChoice.g.cs @@ -101,5 +101,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.CreateChatCompletionStreamResponseChoice), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.CreateChatCompletionStreamResponseChoice; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionStreamResponseChoiceLogprobs.g.cs b/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionStreamResponseChoiceLogprobs.g.cs index b684808..7a31478 100644 --- a/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionStreamResponseChoiceLogprobs.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.CreateChatCompletionStreamResponseChoiceLogprobs.g.cs @@ -78,5 +78,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.CreateChatCompletionStreamResponseChoiceLogprobs), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.CreateChatCompletionStreamResponseChoiceLogprobs; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.CreateEmbeddingRequest.g.cs b/src/libs/Groq/Generated/Groq.Models.CreateEmbeddingRequest.g.cs index 04aeea7..1548200 100644 --- a/src/libs/Groq/Generated/Groq.Models.CreateEmbeddingRequest.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.CreateEmbeddingRequest.g.cs @@ -106,5 +106,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.CreateEmbeddingRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.CreateEmbeddingRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.CreateEmbeddingResponse.g.cs b/src/libs/Groq/Generated/Groq.Models.CreateEmbeddingResponse.g.cs index 274f7a3..f460f8b 100644 --- a/src/libs/Groq/Generated/Groq.Models.CreateEmbeddingResponse.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.CreateEmbeddingResponse.g.cs @@ -99,5 +99,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.CreateEmbeddingResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.CreateEmbeddingResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.CreateEmbeddingResponseUsage.g.cs b/src/libs/Groq/Generated/Groq.Models.CreateEmbeddingResponseUsage.g.cs index 9635479..79723b2 100644 --- a/src/libs/Groq/Generated/Groq.Models.CreateEmbeddingResponseUsage.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.CreateEmbeddingResponseUsage.g.cs @@ -85,5 +85,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.CreateEmbeddingResponseUsage), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.CreateEmbeddingResponseUsage; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.CreateTranscriptionRequest.g.cs b/src/libs/Groq/Generated/Groq.Models.CreateTranscriptionRequest.g.cs index 7f0ba5f..61fb209 100644 --- a/src/libs/Groq/Generated/Groq.Models.CreateTranscriptionRequest.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.CreateTranscriptionRequest.g.cs @@ -131,5 +131,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.CreateTranscriptionRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.CreateTranscriptionRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.CreateTranscriptionResponseJson.g.cs b/src/libs/Groq/Generated/Groq.Models.CreateTranscriptionResponseJson.g.cs index 56d6366..c42f986 100644 --- a/src/libs/Groq/Generated/Groq.Models.CreateTranscriptionResponseJson.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.CreateTranscriptionResponseJson.g.cs @@ -78,5 +78,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.CreateTranscriptionResponseJson), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.CreateTranscriptionResponseJson; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.CreateTranscriptionResponseVerboseJson.g.cs b/src/libs/Groq/Generated/Groq.Models.CreateTranscriptionResponseVerboseJson.g.cs index e6478a2..dfe8f3e 100644 --- a/src/libs/Groq/Generated/Groq.Models.CreateTranscriptionResponseVerboseJson.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.CreateTranscriptionResponseVerboseJson.g.cs @@ -104,5 +104,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.CreateTranscriptionResponseVerboseJson), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.CreateTranscriptionResponseVerboseJson; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.CreateTranslationRequest.g.cs b/src/libs/Groq/Generated/Groq.Models.CreateTranslationRequest.g.cs index bd4da65..72668d3 100644 --- a/src/libs/Groq/Generated/Groq.Models.CreateTranslationRequest.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.CreateTranslationRequest.g.cs @@ -117,5 +117,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.CreateTranslationRequest), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.CreateTranslationRequest; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.CreateTranslationResponseJson.g.cs b/src/libs/Groq/Generated/Groq.Models.CreateTranslationResponseJson.g.cs index 4a8252b..94185d6 100644 --- a/src/libs/Groq/Generated/Groq.Models.CreateTranslationResponseJson.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.CreateTranslationResponseJson.g.cs @@ -78,5 +78,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.CreateTranslationResponseJson), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.CreateTranslationResponseJson; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.CreateTranslationResponseVerboseJson.g.cs b/src/libs/Groq/Generated/Groq.Models.CreateTranslationResponseVerboseJson.g.cs index 6afd995..d1e78ee 100644 --- a/src/libs/Groq/Generated/Groq.Models.CreateTranslationResponseVerboseJson.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.CreateTranslationResponseVerboseJson.g.cs @@ -98,5 +98,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.CreateTranslationResponseVerboseJson), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.CreateTranslationResponseVerboseJson; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.DeleteModelResponse.g.cs b/src/libs/Groq/Generated/Groq.Models.DeleteModelResponse.g.cs index c672eca..7956d82 100644 --- a/src/libs/Groq/Generated/Groq.Models.DeleteModelResponse.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.DeleteModelResponse.g.cs @@ -92,5 +92,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.DeleteModelResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.DeleteModelResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.Embedding.g.cs b/src/libs/Groq/Generated/Groq.Models.Embedding.g.cs index bdd950b..5bc20f1 100644 --- a/src/libs/Groq/Generated/Groq.Models.Embedding.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.Embedding.g.cs @@ -95,5 +95,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.Embedding), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.Embedding; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.Error.g.cs b/src/libs/Groq/Generated/Groq.Models.Error.g.cs index dc4fe19..8bf97c4 100644 --- a/src/libs/Groq/Generated/Groq.Models.Error.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.Error.g.cs @@ -99,5 +99,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.Error), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.Error; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ErrorResponse.g.cs b/src/libs/Groq/Generated/Groq.Models.ErrorResponse.g.cs index 93ea0c0..a35760d 100644 --- a/src/libs/Groq/Generated/Groq.Models.ErrorResponse.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ErrorResponse.g.cs @@ -78,5 +78,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ErrorResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ErrorResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.FunctionObject.g.cs b/src/libs/Groq/Generated/Groq.Models.FunctionObject.g.cs index a57662c..e3f1828 100644 --- a/src/libs/Groq/Generated/Groq.Models.FunctionObject.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.FunctionObject.g.cs @@ -91,5 +91,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.FunctionObject), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.FunctionObject; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.FunctionParameters.g.cs b/src/libs/Groq/Generated/Groq.Models.FunctionParameters.g.cs index 5ff6da0..4438457 100644 --- a/src/libs/Groq/Generated/Groq.Models.FunctionParameters.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.FunctionParameters.g.cs @@ -73,5 +73,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.FunctionParameters), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.FunctionParameters; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.ListModelsResponse.g.cs b/src/libs/Groq/Generated/Groq.Models.ListModelsResponse.g.cs index d5f50ff..9a9677c 100644 --- a/src/libs/Groq/Generated/Groq.Models.ListModelsResponse.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.ListModelsResponse.g.cs @@ -85,5 +85,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.ListModelsResponse), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.ListModelsResponse; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.Model5.g.cs b/src/libs/Groq/Generated/Groq.Models.Model5.g.cs index 67b07eb..b6fe72b 100644 --- a/src/libs/Groq/Generated/Groq.Models.Model5.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.Model5.g.cs @@ -100,5 +100,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.Model5), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.Model5; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.TranscriptionSegment.g.cs b/src/libs/Groq/Generated/Groq.Models.TranscriptionSegment.g.cs index 029cd47..172666b 100644 --- a/src/libs/Groq/Generated/Groq.Models.TranscriptionSegment.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.TranscriptionSegment.g.cs @@ -141,5 +141,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.TranscriptionSegment), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.TranscriptionSegment; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.TranscriptionWord.g.cs b/src/libs/Groq/Generated/Groq.Models.TranscriptionWord.g.cs index d911973..9287861 100644 --- a/src/libs/Groq/Generated/Groq.Models.TranscriptionWord.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.TranscriptionWord.g.cs @@ -92,5 +92,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.TranscriptionWord), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.TranscriptionWord; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/Groq.Models.XGroq.g.cs b/src/libs/Groq/Generated/Groq.Models.XGroq.g.cs index c9b1b8b..ce61564 100644 --- a/src/libs/Groq/Generated/Groq.Models.XGroq.g.cs +++ b/src/libs/Groq/Generated/Groq.Models.XGroq.g.cs @@ -90,5 +90,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.XGroq), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.XGroq; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } } \ No newline at end of file diff --git a/src/libs/Groq/Generated/OneOf.2.g.cs b/src/libs/Groq/Generated/OneOf.2.g.cs index 2bef47e..3edc8ed 100644 --- a/src/libs/Groq/Generated/OneOf.2.g.cs +++ b/src/libs/Groq/Generated/OneOf.2.g.cs @@ -267,5 +267,34 @@ public string ToJson( jsonSerializerOptions); } + /// + /// Deserializes a JSON stream using the provided JsonSerializerContext. + /// + public static async global::System.Threading.Tasks.ValueTask?> FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + typeof(global::Groq.OneOf), + jsonSerializerContext).ConfigureAwait(false)) as global::Groq.OneOf?; + } + + /// + /// Deserializes a JSON stream using the provided JsonSerializerOptions. + /// +#if NET8_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] + [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] +#endif + public static global::System.Threading.Tasks.ValueTask?> FromJsonStream( + global::System.IO.Stream jsonStream, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + return global::System.Text.Json.JsonSerializer.DeserializeAsync?>( + jsonStream, + jsonSerializerOptions); + } + } }