From ac2cedf11752569aba425ab40e31cc272f45734b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 2 Apr 2026 16:03:16 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Together.AudioClient.AudioSpeech.g.cs | 4 +- ...ether.AudioClient.AudioTranscriptions.g.cs | 16 +- ...ogether.AudioClient.AudioTranslations.g.cs | 16 +- .../Generated/Together.AudioClient.g.cs | 2 +- .../Together.BatchesClient.CreateBatches.g.cs | 22 +- ...BatchesClient.CreateBatchesByIdCancel.g.cs | 24 +- .../Together.BatchesClient.GetBatches.g.cs | 12 +- ...Together.BatchesClient.GetBatchesById.g.cs | 24 +- .../Generated/Together.BatchesClient.g.cs | 2 +- .../Together.ChatClient.ChatCompletions.g.cs | 30 +- ...er.ChatClient.ChatCompletionsAsStream.g.cs | 4 +- .../Generated/Together.ChatClient.g.cs | 2 +- ...er.CodeInterpreterClient.SessionsList.g.cs | 4 +- ...ther.CodeInterpreterClient.TciExecute.g.cs | 6 +- .../Together.CodeInterpreterClient.g.cs | 2 +- ...Together.CompletionClient.Completions.g.cs | 30 +- ....CompletionClient.CompletionsAsStream.g.cs | 4 +- .../Generated/Together.CompletionClient.g.cs | 2 +- ...r.DeploymentsClient.CreateDeployments.g.cs | 14 +- ...ploymentsClient.DeleteDeploymentsById.g.cs | 8 +- ...DeploymentsClient.EditDeploymentsById.g.cs | 18 +- ...ther.DeploymentsClient.GetDeployments.g.cs | 8 +- ....DeploymentsClient.GetDeploymentsById.g.cs | 12 +- ...loymentsClient.GetDeploymentsByIdLogs.g.cs | 12 +- .../Generated/Together.DeploymentsClient.g.cs | 2 +- ...lient.GetDeploymentsStorageByFilename.g.cs | 16 +- .../Together.DeploymentsStorageClient.g.cs | 2 +- ...lient.CreateDeploymentsStorageVolumes.g.cs | 14 +- ...esClient.GetDeploymentsStorageVolumes.g.cs | 8 +- .../Together.DeploymentsVolumesClient.g.cs | 2 +- .../Together.EmbeddingsClient.Embeddings.g.cs | 30 +- .../Generated/Together.EmbeddingsClient.g.cs | 2 +- ...er.Endpoints2Client.AvailabilityZones.g.cs | 4 +- .../Generated/Together.Endpoints2Client.g.cs | 2 +- ...gether.EndpointsClient.CreateEndpoint.g.cs | 14 +- ...gether.EndpointsClient.DeleteEndpoint.g.cs | 12 +- .../Together.EndpointsClient.GetEndpoint.g.cs | 16 +- ...ogether.EndpointsClient.ListEndpoints.g.cs | 12 +- ...gether.EndpointsClient.UpdateEndpoint.g.cs | 18 +- .../Generated/Together.EndpointsClient.g.cs | 2 +- ....EvaluationClient.CreateEvaluationJob.g.cs | 14 +- ...EvaluationClient.GetAllEvaluationJobs.g.cs | 12 +- ...luationClient.GetEvaluationJobDetails.g.cs | 12 +- ...ient.GetEvaluationJobStatusAndResults.g.cs | 12 +- ...ogether.EvaluationClient.GetModelList.g.cs | 12 +- .../Generated/Together.EvaluationClient.g.cs | 2 +- ...ogether.FilesClient.CreateFilesUpload.g.cs | 16 +- .../Together.FilesClient.DeleteFilesById.g.cs | 4 +- .../Together.FilesClient.GetFiles.g.cs | 4 +- .../Together.FilesClient.GetFilesById.g.cs | 4 +- ...ether.FilesClient.GetFilesByIdContent.g.cs | 4 +- .../Generated/Together.FilesClient.g.cs | 2 +- ...ther.FineTuningClient.CreateFineTunes.g.cs | 6 +- ...uningClient.CreateFineTunesByIdCancel.g.cs | 4 +- ...ngClient.CreateFineTunesEstimatePrice.g.cs | 10 +- ....FineTuningClient.DeleteFineTunesById.g.cs | 12 +- ...ogether.FineTuningClient.GetFineTunes.g.cs | 4 +- ...her.FineTuningClient.GetFineTunesById.g.cs | 4 +- ...ingClient.GetFineTunesByIdCheckpoints.g.cs | 4 +- ...neTuningClient.GetFineTunesByIdEvents.g.cs | 4 +- ...TuningClient.GetFineTunesModelsLimits.g.cs | 8 +- ...ingClient.GetFineTunesModelsSupported.g.cs | 4 +- .../Generated/Together.FineTuningClient.g.cs | 2 +- ...ServiceClient.GPUClusterServiceCreate.g.cs | 6 +- ...ServiceClient.GPUClusterServiceDelete.g.cs | 4 +- ...terServiceClient.GPUClusterServiceGet.g.cs | 4 +- ...erServiceClient.GPUClusterServiceList.g.cs | 4 +- ...ServiceClient.GPUClusterServiceUpdate.g.cs | 6 +- .../Together.GPUClusterServiceClient.g.cs | 2 +- .../Together.HardwareClient.ListHardware.g.cs | 12 +- .../Generated/Together.HardwareClient.g.cs | 2 +- .../Generated/Together.IAudioClient.g.cs | 2 +- .../Generated/Together.IBatchesClient.g.cs | 2 +- .../Generated/Together.IChatClient.g.cs | 2 +- .../Together.ICodeInterpreterClient.g.cs | 2 +- .../Generated/Together.ICompletionClient.g.cs | 2 +- .../Together.IDeploymentsClient.g.cs | 2 +- .../Together.IDeploymentsStorageClient.g.cs | 2 +- .../Together.IDeploymentsVolumesClient.g.cs | 2 +- .../Generated/Together.IEmbeddingsClient.g.cs | 2 +- .../Generated/Together.IEndpoints2Client.g.cs | 2 +- .../Generated/Together.IEndpointsClient.g.cs | 2 +- .../Generated/Together.IEvaluationClient.g.cs | 2 +- .../Generated/Together.IFilesClient.g.cs | 2 +- .../Generated/Together.IFineTuningClient.g.cs | 2 +- .../Together.IGPUClusterServiceClient.g.cs | 2 +- .../Generated/Together.IHardwareClient.g.cs | 2 +- .../Generated/Together.IImagesClient.g.cs | 2 +- .../Generated/Together.IJobsClient.g.cs | 2 +- .../Generated/Together.IModelsClient.g.cs | 2 +- .../Generated/Together.IQueueClient.g.cs | 2 +- .../Together.IRegionServiceClient.g.cs | 2 +- .../Generated/Together.IRerankClient.g.cs | 2 +- .../Generated/Together.IRlClient.g.cs | 2 +- .../Generated/Together.ISecretsClient.g.cs | 2 +- .../Together.ISharedVolumeServiceClient.g.cs | 2 +- .../Generated/Together.ITogetherClient.g.cs | 2 +- .../Generated/Together.IVideoClient.g.cs | 2 +- .../Generated/Together.IVoicesClient.g.cs | 2 +- .../Generated/Together.IVolumesClient.g.cs | 2 +- ....ImagesClient.CreateImagesGenerations.g.cs | 6 +- .../Generated/Together.ImagesClient.g.cs | 2 +- .../Generated/Together.JobsClient.GetJob.g.cs | 4 +- .../Together.JobsClient.ListJobs.g.cs | 4 +- .../Generated/Together.JobsClient.g.cs | 2 +- .../Together.JsonConverters.AllOf2.g.cs | 50 +- .../Together.JsonConverters.AnyOf2.g.cs | 50 +- ...nConverters.AudioSpeechStreamResponse.g.cs | 30 +- ...Converters.AudioTranscriptionResponse.g.cs | 30 +- ...onConverters.AudioTranslationResponse.g.cs | 30 +- ...Converters.ChatCompletionMessageParam.g.cs | 66 +- ...r.JsonConverters.ChatCompletionStream.g.cs | 30 +- ...ters.ChatCompletionUserMessageContent.g.cs | 50 +- ...ether.JsonConverters.CompletionStream.g.cs | 30 +- .../Together.JsonConverters.DataItem3.g.cs | 30 +- .../Together.JsonConverters.Error.g.cs | 50 +- ...sonConverters.EvaluationModelOrString.g.cs | 30 +- ...gether.JsonConverters.ExecuteResponse.g.cs | 30 +- ...ther.JsonConverters.InterpreterOutput.g.cs | 42 +- .../Together.JsonConverters.OneOf2.g.cs | 50 +- .../Together.JsonConverters.OneOf3.g.cs | 72 +- .../Together.JsonConverters.OneOf4.g.cs | 94 +- .../Together.JsonConverters.OneOf5.g.cs | 116 +- .../Together.JsonConverters.OutputsItem.g.cs | 42 +- ...ogether.JsonConverters.ResponseFormat.g.cs | 42 +- ...er.JsonConverters.SessionListResponse.g.cs | 30 +- .../Together.JsonSerializerContext.g.cs | 1272 --------- .../Together.JsonSerializerContextTypes.g.cs | 2446 ----------------- ...ther.Models.RlGRPOLossAggregationType.g.cs | 6 + .../Together.Models.RlLossInputs.g.cs | 11 +- .../Together.ModelsClient.Models.g.cs | 24 +- .../Together.ModelsClient.UploadModel.g.cs | 6 +- .../Generated/Together.ModelsClient.g.cs | 2 +- .../Together.QueueClient.CancelQueueJob.g.cs | 22 +- ...ogether.QueueClient.GetQueueJobStatus.g.cs | 20 +- .../Together.QueueClient.GetQueueMetrics.g.cs | 16 +- .../Together.QueueClient.SubmitQueueJob.g.cs | 18 +- .../Generated/Together.QueueClient.g.cs | 2 +- ...RegionServiceClient.RegionServiceList.g.cs | 4 +- .../Together.RegionServiceClient.g.cs | 2 +- .../Together.RerankClient.Rerank.g.cs | 30 +- .../Generated/Together.RerankClient.g.cs | 2 +- ...er.RlClient.CreateInferenceCheckpoint.g.cs | 8 +- ...her.RlClient.CreateTrainingCheckpoint.g.cs | 8 +- .../Together.RlClient.DownloadCheckpoint.g.cs | 8 +- .../Together.RlClient.ForwardBackward.g.cs | 10 +- ....RlClient.GetForwardBackwardOperation.g.cs | 8 +- ...lient.GetInferenceCheckpointOperation.g.cs | 8 +- ...gether.RlClient.GetOptimStepOperation.g.cs | 8 +- .../Together.RlClient.GetSample.g.cs | 8 +- ...Client.GetTrainingCheckpointOperation.g.cs | 8 +- .../Together.RlClient.GetTrainingSession.g.cs | 8 +- ...ogether.RlClient.ListTrainingSessions.g.cs | 8 +- .../Together.RlClient.OptimStep.g.cs | 10 +- .../Generated/Together.RlClient.Sample.g.cs | 10 +- ...ogether.RlClient.StartTrainingSession.g.cs | 10 +- ...Together.RlClient.StopTrainingSession.g.cs | 8 +- .../Together/Generated/Together.RlClient.g.cs | 2 +- ...ecretsClient.CreateDeploymentsSecrets.g.cs | 14 +- ...tsClient.DeleteDeploymentsSecretsById.g.cs | 8 +- ...retsClient.EditDeploymentsSecretsById.g.cs | 18 +- ...r.SecretsClient.GetDeploymentsSecrets.g.cs | 8 +- ...cretsClient.GetDeploymentsSecretsById.g.cs | 12 +- .../Generated/Together.SecretsClient.g.cs | 2 +- ...rviceClient.SharedVolumeServiceCreate.g.cs | 6 +- ...rviceClient.SharedVolumeServiceDelete.g.cs | 4 +- ...eServiceClient.SharedVolumeServiceGet.g.cs | 4 +- ...ServiceClient.SharedVolumeServiceList.g.cs | 4 +- ...rviceClient.SharedVolumeServiceUpdate.g.cs | 6 +- .../Together.SharedVolumeServiceClient.g.cs | 2 +- .../Generated/Together.TogetherClient.g.cs | 391 ++- .../Together.VideoClient.CreateVideo.g.cs | 6 +- .../Together.VideoClient.RetrieveVideo.g.cs | 4 +- .../Generated/Together.VideoClient.g.cs | 2 +- .../Together.VoicesClient.FetchVoices.g.cs | 4 +- .../Generated/Together.VoicesClient.g.cs | 2 +- ...t.DeleteDeploymentsStorageVolumesById.g.cs | 8 +- ...ent.EditDeploymentsStorageVolumesById.g.cs | 18 +- ...ient.GetDeploymentsStorageVolumesById.g.cs | 12 +- .../Generated/Together.VolumesClient.g.cs | 2 +- src/libs/Together/openapi.yaml | 5 +- 181 files changed, 1149 insertions(+), 5110 deletions(-) delete mode 100644 src/libs/Together/Generated/Together.JsonSerializerContext.g.cs delete mode 100644 src/libs/Together/Generated/Together.JsonSerializerContextTypes.g.cs diff --git a/src/libs/Together/Generated/Together.AudioClient.AudioSpeech.g.cs b/src/libs/Together/Generated/Together.AudioClient.AudioSpeech.g.cs index 3875a48a..1697c16d 100644 --- a/src/libs/Together/Generated/Together.AudioClient.AudioSpeech.g.cs +++ b/src/libs/Together/Generated/Together.AudioClient.AudioSpeech.g.cs @@ -78,7 +78,7 @@ partial void ProcessAudioSpeechResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -152,7 +152,7 @@ partial void ProcessAudioSpeechResponse( yield break; } - var __streamedResponse = global::Together.AudioSpeechStreamResponse.FromJson(__content, JsonSerializerContext) ?? + var __streamedResponse = global::Together.AudioSpeechStreamResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::Together.ApiException( message: $"Response deserialization failed for \"{__content}\" ", statusCode: __response.StatusCode) diff --git a/src/libs/Together/Generated/Together.AudioClient.AudioTranscriptions.g.cs b/src/libs/Together/Generated/Together.AudioClient.AudioTranscriptions.g.cs index 1f96e3d3..24413899 100644 --- a/src/libs/Together/Generated/Together.AudioClient.AudioTranscriptions.g.cs +++ b/src/libs/Together/Generated/Together.AudioClient.AudioTranscriptions.g.cs @@ -180,13 +180,13 @@ partial void ProcessAudioTranscriptionsResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -218,13 +218,13 @@ partial void ProcessAudioTranscriptionsResponseContent( if (ReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerOptions); } else { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -256,13 +256,13 @@ partial void ProcessAudioTranscriptionsResponseContent( if (ReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerOptions); } else { __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -306,7 +306,7 @@ partial void ProcessAudioTranscriptionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.AudioTranscriptionResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.AudioTranscriptionResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -337,7 +337,7 @@ partial void ProcessAudioTranscriptionsResponseContent( ).ConfigureAwait(false); return - await global::Together.AudioTranscriptionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.AudioTranscriptionResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.AudioClient.AudioTranslations.g.cs b/src/libs/Together/Generated/Together.AudioClient.AudioTranslations.g.cs index 1c64d9a1..822fce5a 100644 --- a/src/libs/Together/Generated/Together.AudioClient.AudioTranslations.g.cs +++ b/src/libs/Together/Generated/Together.AudioClient.AudioTranslations.g.cs @@ -161,13 +161,13 @@ partial void ProcessAudioTranslationsResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -199,13 +199,13 @@ partial void ProcessAudioTranslationsResponseContent( if (ReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerOptions); } else { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -237,13 +237,13 @@ partial void ProcessAudioTranslationsResponseContent( if (ReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerOptions); } else { __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -287,7 +287,7 @@ partial void ProcessAudioTranslationsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.AudioTranslationResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.AudioTranslationResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -318,7 +318,7 @@ partial void ProcessAudioTranslationsResponseContent( ).ConfigureAwait(false); return - await global::Together.AudioTranslationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.AudioTranslationResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.AudioClient.g.cs b/src/libs/Together/Generated/Together.AudioClient.g.cs index 519002cf..e24c3b97 100644 --- a/src/libs/Together/Generated/Together.AudioClient.g.cs +++ b/src/libs/Together/Generated/Together.AudioClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class AudioClient : global::Together.IAudioClient, global: /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.BatchesClient.CreateBatches.g.cs b/src/libs/Together/Generated/Together.BatchesClient.CreateBatches.g.cs index aa70d033..b3ce976e 100644 --- a/src/libs/Together/Generated/Together.BatchesClient.CreateBatches.g.cs +++ b/src/libs/Together/Generated/Together.BatchesClient.CreateBatches.g.cs @@ -78,7 +78,7 @@ partial void ProcessCreateBatchesResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -115,13 +115,13 @@ partial void ProcessCreateBatchesResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.BatchErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.BatchErrorResponse.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.BatchErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.BatchErrorResponse.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -153,13 +153,13 @@ partial void ProcessCreateBatchesResponseContent( if (ReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.BatchErrorResponse.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.BatchErrorResponse.FromJson(__content_401, JsonSerializerOptions); } else { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.BatchErrorResponse.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.BatchErrorResponse.FromJson(__content_401, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -191,13 +191,13 @@ partial void ProcessCreateBatchesResponseContent( if (ReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_429 = global::Together.BatchErrorResponse.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Together.BatchErrorResponse.FromJson(__content_429, JsonSerializerOptions); } else { __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_429 = global::Together.BatchErrorResponse.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Together.BatchErrorResponse.FromJson(__content_429, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -229,13 +229,13 @@ partial void ProcessCreateBatchesResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.BatchErrorResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.BatchErrorResponse.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.BatchErrorResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.BatchErrorResponse.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -279,7 +279,7 @@ partial void ProcessCreateBatchesResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.BatchJobWithWarning.FromJson(__content, JsonSerializerContext) ?? + global::Together.BatchJobWithWarning.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -310,7 +310,7 @@ partial void ProcessCreateBatchesResponseContent( ).ConfigureAwait(false); return - await global::Together.BatchJobWithWarning.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.BatchJobWithWarning.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.BatchesClient.CreateBatchesByIdCancel.g.cs b/src/libs/Together/Generated/Together.BatchesClient.CreateBatchesByIdCancel.g.cs index 536a7037..2f1ffaaf 100644 --- a/src/libs/Together/Generated/Together.BatchesClient.CreateBatchesByIdCancel.g.cs +++ b/src/libs/Together/Generated/Together.BatchesClient.CreateBatchesByIdCancel.g.cs @@ -109,13 +109,13 @@ partial void ProcessCreateBatchesByIdCancelResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.BatchErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.BatchErrorResponse.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.BatchErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.BatchErrorResponse.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -147,13 +147,13 @@ partial void ProcessCreateBatchesByIdCancelResponseContent( if (ReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.BatchErrorResponse.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.BatchErrorResponse.FromJson(__content_401, JsonSerializerOptions); } else { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.BatchErrorResponse.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.BatchErrorResponse.FromJson(__content_401, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -185,13 +185,13 @@ partial void ProcessCreateBatchesByIdCancelResponseContent( if (ReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::Together.BatchErrorResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = global::Together.BatchErrorResponse.FromJson(__content_403, JsonSerializerOptions); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::Together.BatchErrorResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = global::Together.BatchErrorResponse.FromJson(__content_403, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -223,13 +223,13 @@ partial void ProcessCreateBatchesByIdCancelResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.BatchErrorResponse.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.BatchErrorResponse.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.BatchErrorResponse.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.BatchErrorResponse.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -261,13 +261,13 @@ partial void ProcessCreateBatchesByIdCancelResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.BatchErrorResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.BatchErrorResponse.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.BatchErrorResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.BatchErrorResponse.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -311,7 +311,7 @@ partial void ProcessCreateBatchesByIdCancelResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.BatchJob.FromJson(__content, JsonSerializerContext) ?? + global::Together.BatchJob.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -342,7 +342,7 @@ partial void ProcessCreateBatchesByIdCancelResponseContent( ).ConfigureAwait(false); return - await global::Together.BatchJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.BatchJob.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.BatchesClient.GetBatches.g.cs b/src/libs/Together/Generated/Together.BatchesClient.GetBatches.g.cs index 88785e72..8b2498dc 100644 --- a/src/libs/Together/Generated/Together.BatchesClient.GetBatches.g.cs +++ b/src/libs/Together/Generated/Together.BatchesClient.GetBatches.g.cs @@ -101,13 +101,13 @@ partial void ProcessGetBatchesResponseContent( if (ReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.BatchErrorResponse.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.BatchErrorResponse.FromJson(__content_401, JsonSerializerOptions); } else { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.BatchErrorResponse.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.BatchErrorResponse.FromJson(__content_401, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -139,13 +139,13 @@ partial void ProcessGetBatchesResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.BatchErrorResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.BatchErrorResponse.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.BatchErrorResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.BatchErrorResponse.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -189,7 +189,7 @@ partial void ProcessGetBatchesResponseContent( __response.EnsureSuccessStatusCode(); return - (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -220,7 +220,7 @@ partial void ProcessGetBatchesResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.BatchesClient.GetBatchesById.g.cs b/src/libs/Together/Generated/Together.BatchesClient.GetBatchesById.g.cs index 61e71801..7e099e74 100644 --- a/src/libs/Together/Generated/Together.BatchesClient.GetBatchesById.g.cs +++ b/src/libs/Together/Generated/Together.BatchesClient.GetBatchesById.g.cs @@ -109,13 +109,13 @@ partial void ProcessGetBatchesByIdResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.BatchErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.BatchErrorResponse.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.BatchErrorResponse.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.BatchErrorResponse.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -147,13 +147,13 @@ partial void ProcessGetBatchesByIdResponseContent( if (ReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.BatchErrorResponse.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.BatchErrorResponse.FromJson(__content_401, JsonSerializerOptions); } else { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.BatchErrorResponse.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.BatchErrorResponse.FromJson(__content_401, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -185,13 +185,13 @@ partial void ProcessGetBatchesByIdResponseContent( if (ReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::Together.BatchErrorResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = global::Together.BatchErrorResponse.FromJson(__content_403, JsonSerializerOptions); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::Together.BatchErrorResponse.FromJson(__content_403, JsonSerializerContext); + __value_403 = global::Together.BatchErrorResponse.FromJson(__content_403, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -223,13 +223,13 @@ partial void ProcessGetBatchesByIdResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.BatchErrorResponse.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.BatchErrorResponse.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.BatchErrorResponse.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.BatchErrorResponse.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -261,13 +261,13 @@ partial void ProcessGetBatchesByIdResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.BatchErrorResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.BatchErrorResponse.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.BatchErrorResponse.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.BatchErrorResponse.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -311,7 +311,7 @@ partial void ProcessGetBatchesByIdResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.BatchJob.FromJson(__content, JsonSerializerContext) ?? + global::Together.BatchJob.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -342,7 +342,7 @@ partial void ProcessGetBatchesByIdResponseContent( ).ConfigureAwait(false); return - await global::Together.BatchJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.BatchJob.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.BatchesClient.g.cs b/src/libs/Together/Generated/Together.BatchesClient.g.cs index 5ddc2649..9a120f9a 100644 --- a/src/libs/Together/Generated/Together.BatchesClient.g.cs +++ b/src/libs/Together/Generated/Together.BatchesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class BatchesClient : global::Together.IBatchesClient, glo /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.ChatClient.ChatCompletions.g.cs b/src/libs/Together/Generated/Together.ChatClient.ChatCompletions.g.cs index 8bee5fa7..12bf1536 100644 --- a/src/libs/Together/Generated/Together.ChatClient.ChatCompletions.g.cs +++ b/src/libs/Together/Generated/Together.ChatClient.ChatCompletions.g.cs @@ -116,7 +116,7 @@ partial void ProcessChatCompletionsResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -153,13 +153,13 @@ partial void ProcessChatCompletionsResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -191,13 +191,13 @@ partial void ProcessChatCompletionsResponseContent( if (ReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerOptions); } else { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -229,13 +229,13 @@ partial void ProcessChatCompletionsResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -267,13 +267,13 @@ partial void ProcessChatCompletionsResponseContent( if (ReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerOptions); } else { __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -305,13 +305,13 @@ partial void ProcessChatCompletionsResponseContent( if (ReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_503 = global::Together.ErrorData.FromJson(__content_503, JsonSerializerContext); + __value_503 = global::Together.ErrorData.FromJson(__content_503, JsonSerializerOptions); } else { __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_503 = global::Together.ErrorData.FromJson(__content_503, JsonSerializerContext); + __value_503 = global::Together.ErrorData.FromJson(__content_503, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -343,13 +343,13 @@ partial void ProcessChatCompletionsResponseContent( if (ReadResponseAsString) { __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerContext); + __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerOptions); } else { __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerContext); + __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -393,7 +393,7 @@ partial void ProcessChatCompletionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.ChatCompletionResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.ChatCompletionResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -424,7 +424,7 @@ partial void ProcessChatCompletionsResponseContent( ).ConfigureAwait(false); return - await global::Together.ChatCompletionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.ChatCompletionResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.ChatClient.ChatCompletionsAsStream.g.cs b/src/libs/Together/Generated/Together.ChatClient.ChatCompletionsAsStream.g.cs index 6e912241..5d46edf9 100644 --- a/src/libs/Together/Generated/Together.ChatClient.ChatCompletionsAsStream.g.cs +++ b/src/libs/Together/Generated/Together.ChatClient.ChatCompletionsAsStream.g.cs @@ -111,7 +111,7 @@ partial void ProcessChatCompletionsAsStreamResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -185,7 +185,7 @@ partial void ProcessChatCompletionsAsStreamResponse( yield break; } - var __streamedResponse = global::Together.ChatCompletionStream.FromJson(__content, JsonSerializerContext) ?? + var __streamedResponse = global::Together.ChatCompletionStream.FromJson(__content, JsonSerializerOptions) ?? throw new global::Together.ApiException( message: $"Response deserialization failed for \"{__content}\" ", statusCode: __response.StatusCode) diff --git a/src/libs/Together/Generated/Together.ChatClient.g.cs b/src/libs/Together/Generated/Together.ChatClient.g.cs index 99f97061..d16f9f87 100644 --- a/src/libs/Together/Generated/Together.ChatClient.g.cs +++ b/src/libs/Together/Generated/Together.ChatClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ChatClient : global::Together.IChatClient, global::S /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.CodeInterpreterClient.SessionsList.g.cs b/src/libs/Together/Generated/Together.CodeInterpreterClient.SessionsList.g.cs index 16adf381..4983dd0e 100644 --- a/src/libs/Together/Generated/Together.CodeInterpreterClient.SessionsList.g.cs +++ b/src/libs/Together/Generated/Together.CodeInterpreterClient.SessionsList.g.cs @@ -112,7 +112,7 @@ partial void ProcessSessionsListResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.SessionListResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.SessionListResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessSessionsListResponseContent( ).ConfigureAwait(false); return - await global::Together.SessionListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.SessionListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.CodeInterpreterClient.TciExecute.g.cs b/src/libs/Together/Generated/Together.CodeInterpreterClient.TciExecute.g.cs index 96c18d72..2ed187d7 100644 --- a/src/libs/Together/Generated/Together.CodeInterpreterClient.TciExecute.g.cs +++ b/src/libs/Together/Generated/Together.CodeInterpreterClient.TciExecute.g.cs @@ -81,7 +81,7 @@ partial void ProcessTciExecuteResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -130,7 +130,7 @@ partial void ProcessTciExecuteResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.ExecuteResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.ExecuteResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -161,7 +161,7 @@ partial void ProcessTciExecuteResponseContent( ).ConfigureAwait(false); return - await global::Together.ExecuteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.ExecuteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.CodeInterpreterClient.g.cs b/src/libs/Together/Generated/Together.CodeInterpreterClient.g.cs index 1a9ebf42..ed25d804 100644 --- a/src/libs/Together/Generated/Together.CodeInterpreterClient.g.cs +++ b/src/libs/Together/Generated/Together.CodeInterpreterClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class CodeInterpreterClient : global::Together.ICodeInterp /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.CompletionClient.Completions.g.cs b/src/libs/Together/Generated/Together.CompletionClient.Completions.g.cs index 5d82308b..e0df1d78 100644 --- a/src/libs/Together/Generated/Together.CompletionClient.Completions.g.cs +++ b/src/libs/Together/Generated/Together.CompletionClient.Completions.g.cs @@ -103,7 +103,7 @@ partial void ProcessCompletionsResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -140,13 +140,13 @@ partial void ProcessCompletionsResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -178,13 +178,13 @@ partial void ProcessCompletionsResponseContent( if (ReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerOptions); } else { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -216,13 +216,13 @@ partial void ProcessCompletionsResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -254,13 +254,13 @@ partial void ProcessCompletionsResponseContent( if (ReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerOptions); } else { __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -292,13 +292,13 @@ partial void ProcessCompletionsResponseContent( if (ReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_503 = global::Together.ErrorData.FromJson(__content_503, JsonSerializerContext); + __value_503 = global::Together.ErrorData.FromJson(__content_503, JsonSerializerOptions); } else { __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_503 = global::Together.ErrorData.FromJson(__content_503, JsonSerializerContext); + __value_503 = global::Together.ErrorData.FromJson(__content_503, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -330,13 +330,13 @@ partial void ProcessCompletionsResponseContent( if (ReadResponseAsString) { __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerContext); + __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerOptions); } else { __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerContext); + __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -380,7 +380,7 @@ partial void ProcessCompletionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.CompletionResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.CompletionResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -411,7 +411,7 @@ partial void ProcessCompletionsResponseContent( ).ConfigureAwait(false); return - await global::Together.CompletionResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.CompletionResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.CompletionClient.CompletionsAsStream.g.cs b/src/libs/Together/Generated/Together.CompletionClient.CompletionsAsStream.g.cs index ed5d8a8b..70b175ff 100644 --- a/src/libs/Together/Generated/Together.CompletionClient.CompletionsAsStream.g.cs +++ b/src/libs/Together/Generated/Together.CompletionClient.CompletionsAsStream.g.cs @@ -98,7 +98,7 @@ partial void ProcessCompletionsAsStreamResponse( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -172,7 +172,7 @@ partial void ProcessCompletionsAsStreamResponse( yield break; } - var __streamedResponse = global::Together.CompletionStream.FromJson(__content, JsonSerializerContext) ?? + var __streamedResponse = global::Together.CompletionStream.FromJson(__content, JsonSerializerOptions) ?? throw new global::Together.ApiException( message: $"Response deserialization failed for \"{__content}\" ", statusCode: __response.StatusCode) diff --git a/src/libs/Together/Generated/Together.CompletionClient.g.cs b/src/libs/Together/Generated/Together.CompletionClient.g.cs index 0bab751f..61463429 100644 --- a/src/libs/Together/Generated/Together.CompletionClient.g.cs +++ b/src/libs/Together/Generated/Together.CompletionClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class CompletionClient : global::Together.ICompletionClien /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.DeploymentsClient.CreateDeployments.g.cs b/src/libs/Together/Generated/Together.DeploymentsClient.CreateDeployments.g.cs index c32f7767..c6aac4cd 100644 --- a/src/libs/Together/Generated/Together.DeploymentsClient.CreateDeployments.g.cs +++ b/src/libs/Together/Generated/Together.DeploymentsClient.CreateDeployments.g.cs @@ -78,7 +78,7 @@ partial void ProcessCreateDeploymentsResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -115,13 +115,13 @@ partial void ProcessCreateDeploymentsResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -153,13 +153,13 @@ partial void ProcessCreateDeploymentsResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -203,7 +203,7 @@ partial void ProcessCreateDeploymentsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.DeploymentResponseItem.FromJson(__content, JsonSerializerContext) ?? + global::Together.DeploymentResponseItem.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -234,7 +234,7 @@ partial void ProcessCreateDeploymentsResponseContent( ).ConfigureAwait(false); return - await global::Together.DeploymentResponseItem.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.DeploymentResponseItem.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.DeploymentsClient.DeleteDeploymentsById.g.cs b/src/libs/Together/Generated/Together.DeploymentsClient.DeleteDeploymentsById.g.cs index f722bbd5..2f18fe0d 100644 --- a/src/libs/Together/Generated/Together.DeploymentsClient.DeleteDeploymentsById.g.cs +++ b/src/libs/Together/Generated/Together.DeploymentsClient.DeleteDeploymentsById.g.cs @@ -104,13 +104,13 @@ partial void ProcessDeleteDeploymentsByIdResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -142,13 +142,13 @@ partial void ProcessDeleteDeploymentsByIdResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.DeploymentsClient.EditDeploymentsById.g.cs b/src/libs/Together/Generated/Together.DeploymentsClient.EditDeploymentsById.g.cs index 5bd654d4..5c8b5811 100644 --- a/src/libs/Together/Generated/Together.DeploymentsClient.EditDeploymentsById.g.cs +++ b/src/libs/Together/Generated/Together.DeploymentsClient.EditDeploymentsById.g.cs @@ -81,7 +81,7 @@ partial void ProcessEditDeploymentsByIdResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -119,13 +119,13 @@ partial void ProcessEditDeploymentsByIdResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -157,13 +157,13 @@ partial void ProcessEditDeploymentsByIdResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -195,13 +195,13 @@ partial void ProcessEditDeploymentsByIdResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -245,7 +245,7 @@ partial void ProcessEditDeploymentsByIdResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.DeploymentResponseItem.FromJson(__content, JsonSerializerContext) ?? + global::Together.DeploymentResponseItem.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -276,7 +276,7 @@ partial void ProcessEditDeploymentsByIdResponseContent( ).ConfigureAwait(false); return - await global::Together.DeploymentResponseItem.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.DeploymentResponseItem.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.DeploymentsClient.GetDeployments.g.cs b/src/libs/Together/Generated/Together.DeploymentsClient.GetDeployments.g.cs index f9169c1b..84d29b4b 100644 --- a/src/libs/Together/Generated/Together.DeploymentsClient.GetDeployments.g.cs +++ b/src/libs/Together/Generated/Together.DeploymentsClient.GetDeployments.g.cs @@ -96,13 +96,13 @@ partial void ProcessGetDeploymentsResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessGetDeploymentsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.DeploymentListResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.DeploymentListResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -177,7 +177,7 @@ partial void ProcessGetDeploymentsResponseContent( ).ConfigureAwait(false); return - await global::Together.DeploymentListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.DeploymentListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.DeploymentsClient.GetDeploymentsById.g.cs b/src/libs/Together/Generated/Together.DeploymentsClient.GetDeploymentsById.g.cs index 18b8cb87..2300ff4d 100644 --- a/src/libs/Together/Generated/Together.DeploymentsClient.GetDeploymentsById.g.cs +++ b/src/libs/Together/Generated/Together.DeploymentsClient.GetDeploymentsById.g.cs @@ -104,13 +104,13 @@ partial void ProcessGetDeploymentsByIdResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -142,13 +142,13 @@ partial void ProcessGetDeploymentsByIdResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -192,7 +192,7 @@ partial void ProcessGetDeploymentsByIdResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.DeploymentResponseItem.FromJson(__content, JsonSerializerContext) ?? + global::Together.DeploymentResponseItem.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -223,7 +223,7 @@ partial void ProcessGetDeploymentsByIdResponseContent( ).ConfigureAwait(false); return - await global::Together.DeploymentResponseItem.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.DeploymentResponseItem.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.DeploymentsClient.GetDeploymentsByIdLogs.g.cs b/src/libs/Together/Generated/Together.DeploymentsClient.GetDeploymentsByIdLogs.g.cs index 5fc895ef..c5890a09 100644 --- a/src/libs/Together/Generated/Together.DeploymentsClient.GetDeploymentsByIdLogs.g.cs +++ b/src/libs/Together/Generated/Together.DeploymentsClient.GetDeploymentsByIdLogs.g.cs @@ -115,13 +115,13 @@ partial void ProcessGetDeploymentsByIdLogsResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -153,13 +153,13 @@ partial void ProcessGetDeploymentsByIdLogsResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -203,7 +203,7 @@ partial void ProcessGetDeploymentsByIdLogsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.DeploymentLogs.FromJson(__content, JsonSerializerContext) ?? + global::Together.DeploymentLogs.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -234,7 +234,7 @@ partial void ProcessGetDeploymentsByIdLogsResponseContent( ).ConfigureAwait(false); return - await global::Together.DeploymentLogs.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.DeploymentLogs.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.DeploymentsClient.g.cs b/src/libs/Together/Generated/Together.DeploymentsClient.g.cs index bb6ea8aa..0fb97e1f 100644 --- a/src/libs/Together/Generated/Together.DeploymentsClient.g.cs +++ b/src/libs/Together/Generated/Together.DeploymentsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class DeploymentsClient : global::Together.IDeploymentsCli /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.DeploymentsStorageClient.GetDeploymentsStorageByFilename.g.cs b/src/libs/Together/Generated/Together.DeploymentsStorageClient.GetDeploymentsStorageByFilename.g.cs index 88e31116..db412fa9 100644 --- a/src/libs/Together/Generated/Together.DeploymentsStorageClient.GetDeploymentsStorageByFilename.g.cs +++ b/src/libs/Together/Generated/Together.DeploymentsStorageClient.GetDeploymentsStorageByFilename.g.cs @@ -93,13 +93,13 @@ partial void ProcessGetDeploymentsStorageByFilenameResponse( if (ReadResponseAsString) { __content_307 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); + __value_307 = global::System.Text.Json.JsonSerializer.Deserialize(__content_307, JsonSerializerOptions); } else { __content_307 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_307 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_307, typeof(string), JsonSerializerContext); + __value_307 = global::System.Text.Json.JsonSerializer.Deserialize(__content_307, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -131,13 +131,13 @@ partial void ProcessGetDeploymentsStorageByFilenameResponse( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (global::System.Collections.Generic.Dictionary?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(global::System.Collections.Generic.Dictionary), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize?>(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (global::System.Collections.Generic.Dictionary?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(global::System.Collections.Generic.Dictionary), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize?>(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -169,13 +169,13 @@ partial void ProcessGetDeploymentsStorageByFilenameResponse( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (global::System.Collections.Generic.Dictionary?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(global::System.Collections.Generic.Dictionary), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize?>(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (global::System.Collections.Generic.Dictionary?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(global::System.Collections.Generic.Dictionary), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize?>(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -207,13 +207,13 @@ partial void ProcessGetDeploymentsStorageByFilenameResponse( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (global::System.Collections.Generic.Dictionary?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(global::System.Collections.Generic.Dictionary), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize?>(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (global::System.Collections.Generic.Dictionary?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(global::System.Collections.Generic.Dictionary), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize?>(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.DeploymentsStorageClient.g.cs b/src/libs/Together/Generated/Together.DeploymentsStorageClient.g.cs index 5cb78004..08abbb60 100644 --- a/src/libs/Together/Generated/Together.DeploymentsStorageClient.g.cs +++ b/src/libs/Together/Generated/Together.DeploymentsStorageClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class DeploymentsStorageClient : global::Together.IDeploym /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.DeploymentsVolumesClient.CreateDeploymentsStorageVolumes.g.cs b/src/libs/Together/Generated/Together.DeploymentsVolumesClient.CreateDeploymentsStorageVolumes.g.cs index f1c1849e..bfcc98ae 100644 --- a/src/libs/Together/Generated/Together.DeploymentsVolumesClient.CreateDeploymentsStorageVolumes.g.cs +++ b/src/libs/Together/Generated/Together.DeploymentsVolumesClient.CreateDeploymentsStorageVolumes.g.cs @@ -74,7 +74,7 @@ partial void ProcessCreateDeploymentsStorageVolumesResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -111,13 +111,13 @@ partial void ProcessCreateDeploymentsStorageVolumesResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -149,13 +149,13 @@ partial void ProcessCreateDeploymentsStorageVolumesResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -199,7 +199,7 @@ partial void ProcessCreateDeploymentsStorageVolumesResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.VolumeResponseItem.FromJson(__content, JsonSerializerContext) ?? + global::Together.VolumeResponseItem.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -230,7 +230,7 @@ partial void ProcessCreateDeploymentsStorageVolumesResponseContent( ).ConfigureAwait(false); return - await global::Together.VolumeResponseItem.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.VolumeResponseItem.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.DeploymentsVolumesClient.GetDeploymentsStorageVolumes.g.cs b/src/libs/Together/Generated/Together.DeploymentsVolumesClient.GetDeploymentsStorageVolumes.g.cs index a4296a3f..29b5b16b 100644 --- a/src/libs/Together/Generated/Together.DeploymentsVolumesClient.GetDeploymentsStorageVolumes.g.cs +++ b/src/libs/Together/Generated/Together.DeploymentsVolumesClient.GetDeploymentsStorageVolumes.g.cs @@ -96,13 +96,13 @@ partial void ProcessGetDeploymentsStorageVolumesResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessGetDeploymentsStorageVolumesResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.ListVolumesResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.ListVolumesResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -177,7 +177,7 @@ partial void ProcessGetDeploymentsStorageVolumesResponseContent( ).ConfigureAwait(false); return - await global::Together.ListVolumesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.ListVolumesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.DeploymentsVolumesClient.g.cs b/src/libs/Together/Generated/Together.DeploymentsVolumesClient.g.cs index f1791281..5de635b2 100644 --- a/src/libs/Together/Generated/Together.DeploymentsVolumesClient.g.cs +++ b/src/libs/Together/Generated/Together.DeploymentsVolumesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class DeploymentsVolumesClient : global::Together.IDeploym /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.EmbeddingsClient.Embeddings.g.cs b/src/libs/Together/Generated/Together.EmbeddingsClient.Embeddings.g.cs index 46cf38e6..6ca0a183 100644 --- a/src/libs/Together/Generated/Together.EmbeddingsClient.Embeddings.g.cs +++ b/src/libs/Together/Generated/Together.EmbeddingsClient.Embeddings.g.cs @@ -81,7 +81,7 @@ partial void ProcessEmbeddingsResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -118,13 +118,13 @@ partial void ProcessEmbeddingsResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -156,13 +156,13 @@ partial void ProcessEmbeddingsResponseContent( if (ReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerOptions); } else { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -194,13 +194,13 @@ partial void ProcessEmbeddingsResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -232,13 +232,13 @@ partial void ProcessEmbeddingsResponseContent( if (ReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerOptions); } else { __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -270,13 +270,13 @@ partial void ProcessEmbeddingsResponseContent( if (ReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_503 = global::Together.ErrorData.FromJson(__content_503, JsonSerializerContext); + __value_503 = global::Together.ErrorData.FromJson(__content_503, JsonSerializerOptions); } else { __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_503 = global::Together.ErrorData.FromJson(__content_503, JsonSerializerContext); + __value_503 = global::Together.ErrorData.FromJson(__content_503, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -308,13 +308,13 @@ partial void ProcessEmbeddingsResponseContent( if (ReadResponseAsString) { __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerContext); + __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerOptions); } else { __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerContext); + __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -358,7 +358,7 @@ partial void ProcessEmbeddingsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.EmbeddingsResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.EmbeddingsResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -389,7 +389,7 @@ partial void ProcessEmbeddingsResponseContent( ).ConfigureAwait(false); return - await global::Together.EmbeddingsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.EmbeddingsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.EmbeddingsClient.g.cs b/src/libs/Together/Generated/Together.EmbeddingsClient.g.cs index dcd9321a..f3fd9457 100644 --- a/src/libs/Together/Generated/Together.EmbeddingsClient.g.cs +++ b/src/libs/Together/Generated/Together.EmbeddingsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class EmbeddingsClient : global::Together.IEmbeddingsClien /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.Endpoints2Client.AvailabilityZones.g.cs b/src/libs/Together/Generated/Together.Endpoints2Client.AvailabilityZones.g.cs index 78600111..8b0f8326 100644 --- a/src/libs/Together/Generated/Together.Endpoints2Client.AvailabilityZones.g.cs +++ b/src/libs/Together/Generated/Together.Endpoints2Client.AvailabilityZones.g.cs @@ -111,7 +111,7 @@ partial void ProcessAvailabilityZonesResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.ListAvailibilityZonesResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.ListAvailibilityZonesResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -142,7 +142,7 @@ partial void ProcessAvailabilityZonesResponseContent( ).ConfigureAwait(false); return - await global::Together.ListAvailibilityZonesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.ListAvailibilityZonesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.Endpoints2Client.g.cs b/src/libs/Together/Generated/Together.Endpoints2Client.g.cs index 1296c285..43192718 100644 --- a/src/libs/Together/Generated/Together.Endpoints2Client.g.cs +++ b/src/libs/Together/Generated/Together.Endpoints2Client.g.cs @@ -33,7 +33,7 @@ public sealed partial class Endpoints2Client : global::Together.IEndpoints2Clien /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.EndpointsClient.CreateEndpoint.g.cs b/src/libs/Together/Generated/Together.EndpointsClient.CreateEndpoint.g.cs index cb9c47da..47b0258f 100644 --- a/src/libs/Together/Generated/Together.EndpointsClient.CreateEndpoint.g.cs +++ b/src/libs/Together/Generated/Together.EndpointsClient.CreateEndpoint.g.cs @@ -87,7 +87,7 @@ partial void ProcessCreateEndpointResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -124,13 +124,13 @@ partial void ProcessCreateEndpointResponseContent( if (ReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerContext); + __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerOptions); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerContext); + __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -162,13 +162,13 @@ partial void ProcessCreateEndpointResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -212,7 +212,7 @@ partial void ProcessCreateEndpointResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.DedicatedEndpoint.FromJson(__content, JsonSerializerContext) ?? + global::Together.DedicatedEndpoint.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -243,7 +243,7 @@ partial void ProcessCreateEndpointResponseContent( ).ConfigureAwait(false); return - await global::Together.DedicatedEndpoint.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.DedicatedEndpoint.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.EndpointsClient.DeleteEndpoint.g.cs b/src/libs/Together/Generated/Together.EndpointsClient.DeleteEndpoint.g.cs index e0e058d7..d265ecd3 100644 --- a/src/libs/Together/Generated/Together.EndpointsClient.DeleteEndpoint.g.cs +++ b/src/libs/Together/Generated/Together.EndpointsClient.DeleteEndpoint.g.cs @@ -104,13 +104,13 @@ partial void ProcessDeleteEndpointResponse( if (ReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerContext); + __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerOptions); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerContext); + __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -142,13 +142,13 @@ partial void ProcessDeleteEndpointResponse( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -180,13 +180,13 @@ partial void ProcessDeleteEndpointResponse( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.EndpointsClient.GetEndpoint.g.cs b/src/libs/Together/Generated/Together.EndpointsClient.GetEndpoint.g.cs index 18c1c2d0..627f8096 100644 --- a/src/libs/Together/Generated/Together.EndpointsClient.GetEndpoint.g.cs +++ b/src/libs/Together/Generated/Together.EndpointsClient.GetEndpoint.g.cs @@ -109,13 +109,13 @@ partial void ProcessGetEndpointResponseContent( if (ReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerContext); + __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerOptions); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerContext); + __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -147,13 +147,13 @@ partial void ProcessGetEndpointResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -185,13 +185,13 @@ partial void ProcessGetEndpointResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -235,7 +235,7 @@ partial void ProcessGetEndpointResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.DedicatedEndpoint.FromJson(__content, JsonSerializerContext) ?? + global::Together.DedicatedEndpoint.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -266,7 +266,7 @@ partial void ProcessGetEndpointResponseContent( ).ConfigureAwait(false); return - await global::Together.DedicatedEndpoint.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.DedicatedEndpoint.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.EndpointsClient.ListEndpoints.g.cs b/src/libs/Together/Generated/Together.EndpointsClient.ListEndpoints.g.cs index d2b8292d..239c10a9 100644 --- a/src/libs/Together/Generated/Together.EndpointsClient.ListEndpoints.g.cs +++ b/src/libs/Together/Generated/Together.EndpointsClient.ListEndpoints.g.cs @@ -130,13 +130,13 @@ partial void ProcessListEndpointsResponseContent( if (ReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerContext); + __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerOptions); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerContext); + __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -168,13 +168,13 @@ partial void ProcessListEndpointsResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -218,7 +218,7 @@ partial void ProcessListEndpointsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.ListEndpointsResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.ListEndpointsResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -249,7 +249,7 @@ partial void ProcessListEndpointsResponseContent( ).ConfigureAwait(false); return - await global::Together.ListEndpointsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.ListEndpointsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.EndpointsClient.UpdateEndpoint.g.cs b/src/libs/Together/Generated/Together.EndpointsClient.UpdateEndpoint.g.cs index 013ff9c1..3d1a434b 100644 --- a/src/libs/Together/Generated/Together.EndpointsClient.UpdateEndpoint.g.cs +++ b/src/libs/Together/Generated/Together.EndpointsClient.UpdateEndpoint.g.cs @@ -89,7 +89,7 @@ partial void ProcessUpdateEndpointResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -127,13 +127,13 @@ partial void ProcessUpdateEndpointResponseContent( if (ReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerContext); + __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerOptions); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerContext); + __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -165,13 +165,13 @@ partial void ProcessUpdateEndpointResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -203,13 +203,13 @@ partial void ProcessUpdateEndpointResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -253,7 +253,7 @@ partial void ProcessUpdateEndpointResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.DedicatedEndpoint.FromJson(__content, JsonSerializerContext) ?? + global::Together.DedicatedEndpoint.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -284,7 +284,7 @@ partial void ProcessUpdateEndpointResponseContent( ).ConfigureAwait(false); return - await global::Together.DedicatedEndpoint.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.DedicatedEndpoint.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.EndpointsClient.g.cs b/src/libs/Together/Generated/Together.EndpointsClient.g.cs index 1de07ba0..222f8548 100644 --- a/src/libs/Together/Generated/Together.EndpointsClient.g.cs +++ b/src/libs/Together/Generated/Together.EndpointsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class EndpointsClient : global::Together.IEndpointsClient, /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.EvaluationClient.CreateEvaluationJob.g.cs b/src/libs/Together/Generated/Together.EvaluationClient.CreateEvaluationJob.g.cs index 7f96479a..386d876b 100644 --- a/src/libs/Together/Generated/Together.EvaluationClient.CreateEvaluationJob.g.cs +++ b/src/libs/Together/Generated/Together.EvaluationClient.CreateEvaluationJob.g.cs @@ -90,7 +90,7 @@ partial void ProcessCreateEvaluationJobResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -127,13 +127,13 @@ partial void ProcessCreateEvaluationJobResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -165,13 +165,13 @@ partial void ProcessCreateEvaluationJobResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -215,7 +215,7 @@ partial void ProcessCreateEvaluationJobResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.EvaluationResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.EvaluationResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -246,7 +246,7 @@ partial void ProcessCreateEvaluationJobResponseContent( ).ConfigureAwait(false); return - await global::Together.EvaluationResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.EvaluationResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.EvaluationClient.GetAllEvaluationJobs.g.cs b/src/libs/Together/Generated/Together.EvaluationClient.GetAllEvaluationJobs.g.cs index 9e11c4e8..311b2bff 100644 --- a/src/libs/Together/Generated/Together.EvaluationClient.GetAllEvaluationJobs.g.cs +++ b/src/libs/Together/Generated/Together.EvaluationClient.GetAllEvaluationJobs.g.cs @@ -121,13 +121,13 @@ partial void ProcessGetAllEvaluationJobsResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -159,13 +159,13 @@ partial void ProcessGetAllEvaluationJobsResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -209,7 +209,7 @@ partial void ProcessGetAllEvaluationJobsResponseContent( __response.EnsureSuccessStatusCode(); return - (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -240,7 +240,7 @@ partial void ProcessGetAllEvaluationJobsResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.EvaluationClient.GetEvaluationJobDetails.g.cs b/src/libs/Together/Generated/Together.EvaluationClient.GetEvaluationJobDetails.g.cs index 03e967ff..a6f65cf6 100644 --- a/src/libs/Together/Generated/Together.EvaluationClient.GetEvaluationJobDetails.g.cs +++ b/src/libs/Together/Generated/Together.EvaluationClient.GetEvaluationJobDetails.g.cs @@ -107,13 +107,13 @@ partial void ProcessGetEvaluationJobDetailsResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -145,13 +145,13 @@ partial void ProcessGetEvaluationJobDetailsResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -195,7 +195,7 @@ partial void ProcessGetEvaluationJobDetailsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.EvaluationJob.FromJson(__content, JsonSerializerContext) ?? + global::Together.EvaluationJob.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -226,7 +226,7 @@ partial void ProcessGetEvaluationJobDetailsResponseContent( ).ConfigureAwait(false); return - await global::Together.EvaluationJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.EvaluationJob.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.EvaluationClient.GetEvaluationJobStatusAndResults.g.cs b/src/libs/Together/Generated/Together.EvaluationClient.GetEvaluationJobStatusAndResults.g.cs index 932af57e..0df1be83 100644 --- a/src/libs/Together/Generated/Together.EvaluationClient.GetEvaluationJobStatusAndResults.g.cs +++ b/src/libs/Together/Generated/Together.EvaluationClient.GetEvaluationJobStatusAndResults.g.cs @@ -108,13 +108,13 @@ partial void ProcessGetEvaluationJobStatusAndResultsResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -146,13 +146,13 @@ partial void ProcessGetEvaluationJobStatusAndResultsResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -196,7 +196,7 @@ partial void ProcessGetEvaluationJobStatusAndResultsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.GetEvaluationJobStatusAndResultsResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.GetEvaluationJobStatusAndResultsResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -227,7 +227,7 @@ partial void ProcessGetEvaluationJobStatusAndResultsResponseContent( ).ConfigureAwait(false); return - await global::Together.GetEvaluationJobStatusAndResultsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.GetEvaluationJobStatusAndResultsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.EvaluationClient.GetModelList.g.cs b/src/libs/Together/Generated/Together.EvaluationClient.GetModelList.g.cs index f752f77b..6eafab90 100644 --- a/src/libs/Together/Generated/Together.EvaluationClient.GetModelList.g.cs +++ b/src/libs/Together/Generated/Together.EvaluationClient.GetModelList.g.cs @@ -101,13 +101,13 @@ partial void ProcessGetModelListResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -139,13 +139,13 @@ partial void ProcessGetModelListResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -189,7 +189,7 @@ partial void ProcessGetModelListResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.GetModelListResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.GetModelListResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -220,7 +220,7 @@ partial void ProcessGetModelListResponseContent( ).ConfigureAwait(false); return - await global::Together.GetModelListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.GetModelListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.EvaluationClient.g.cs b/src/libs/Together/Generated/Together.EvaluationClient.g.cs index 1e49deed..ea12f120 100644 --- a/src/libs/Together/Generated/Together.EvaluationClient.g.cs +++ b/src/libs/Together/Generated/Together.EvaluationClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class EvaluationClient : global::Together.IEvaluationClien /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.FilesClient.CreateFilesUpload.g.cs b/src/libs/Together/Generated/Together.FilesClient.CreateFilesUpload.g.cs index eacf334a..2f75923e 100644 --- a/src/libs/Together/Generated/Together.FilesClient.CreateFilesUpload.g.cs +++ b/src/libs/Together/Generated/Together.FilesClient.CreateFilesUpload.g.cs @@ -135,13 +135,13 @@ partial void ProcessCreateFilesUploadResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -173,13 +173,13 @@ partial void ProcessCreateFilesUploadResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -211,13 +211,13 @@ partial void ProcessCreateFilesUploadResponseContent( if (ReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerOptions); } else { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -261,7 +261,7 @@ partial void ProcessCreateFilesUploadResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.FileResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.FileResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -292,7 +292,7 @@ partial void ProcessCreateFilesUploadResponseContent( ).ConfigureAwait(false); return - await global::Together.FileResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.FileResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.FilesClient.DeleteFilesById.g.cs b/src/libs/Together/Generated/Together.FilesClient.DeleteFilesById.g.cs index 120ad1e6..5a7cd732 100644 --- a/src/libs/Together/Generated/Together.FilesClient.DeleteFilesById.g.cs +++ b/src/libs/Together/Generated/Together.FilesClient.DeleteFilesById.g.cs @@ -120,7 +120,7 @@ partial void ProcessDeleteFilesByIdResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.FileDeleteResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.FileDeleteResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -151,7 +151,7 @@ partial void ProcessDeleteFilesByIdResponseContent( ).ConfigureAwait(false); return - await global::Together.FileDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.FileDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.FilesClient.GetFiles.g.cs b/src/libs/Together/Generated/Together.FilesClient.GetFiles.g.cs index fc0d9b2c..08bfeda2 100644 --- a/src/libs/Together/Generated/Together.FilesClient.GetFiles.g.cs +++ b/src/libs/Together/Generated/Together.FilesClient.GetFiles.g.cs @@ -113,7 +113,7 @@ partial void ProcessGetFilesResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.FileList.FromJson(__content, JsonSerializerContext) ?? + global::Together.FileList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGetFilesResponseContent( ).ConfigureAwait(false); return - await global::Together.FileList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.FileList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.FilesClient.GetFilesById.g.cs b/src/libs/Together/Generated/Together.FilesClient.GetFilesById.g.cs index 1c35fd83..7f8c52ea 100644 --- a/src/libs/Together/Generated/Together.FilesClient.GetFilesById.g.cs +++ b/src/libs/Together/Generated/Together.FilesClient.GetFilesById.g.cs @@ -120,7 +120,7 @@ partial void ProcessGetFilesByIdResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.FileResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.FileResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -151,7 +151,7 @@ partial void ProcessGetFilesByIdResponseContent( ).ConfigureAwait(false); return - await global::Together.FileResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.FileResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.FilesClient.GetFilesByIdContent.g.cs b/src/libs/Together/Generated/Together.FilesClient.GetFilesByIdContent.g.cs index 0099ebb1..5ea7a789 100644 --- a/src/libs/Together/Generated/Together.FilesClient.GetFilesByIdContent.g.cs +++ b/src/libs/Together/Generated/Together.FilesClient.GetFilesByIdContent.g.cs @@ -109,13 +109,13 @@ partial void ProcessGetFilesByIdContentResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.FilesClient.g.cs b/src/libs/Together/Generated/Together.FilesClient.g.cs index 21dd3c53..a7e3133f 100644 --- a/src/libs/Together/Generated/Together.FilesClient.g.cs +++ b/src/libs/Together/Generated/Together.FilesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class FilesClient : global::Together.IFilesClient, global: /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.FineTuningClient.CreateFineTunes.g.cs b/src/libs/Together/Generated/Together.FineTuningClient.CreateFineTunes.g.cs index 3321ea17..a526bb5a 100644 --- a/src/libs/Together/Generated/Together.FineTuningClient.CreateFineTunes.g.cs +++ b/src/libs/Together/Generated/Together.FineTuningClient.CreateFineTunes.g.cs @@ -83,7 +83,7 @@ partial void ProcessCreateFineTunesResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -132,7 +132,7 @@ partial void ProcessCreateFineTunesResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.FinetuneResponseTruncated.FromJson(__content, JsonSerializerContext) ?? + global::Together.FinetuneResponseTruncated.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessCreateFineTunesResponseContent( ).ConfigureAwait(false); return - await global::Together.FinetuneResponseTruncated.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.FinetuneResponseTruncated.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.FineTuningClient.CreateFineTunesByIdCancel.g.cs b/src/libs/Together/Generated/Together.FineTuningClient.CreateFineTunesByIdCancel.g.cs index 8493b8f1..f7f595c6 100644 --- a/src/libs/Together/Generated/Together.FineTuningClient.CreateFineTunesByIdCancel.g.cs +++ b/src/libs/Together/Generated/Together.FineTuningClient.CreateFineTunesByIdCancel.g.cs @@ -186,7 +186,7 @@ partial void ProcessCreateFineTunesByIdCancelResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.FinetuneResponseTruncated.FromJson(__content, JsonSerializerContext) ?? + global::Together.FinetuneResponseTruncated.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -217,7 +217,7 @@ partial void ProcessCreateFineTunesByIdCancelResponseContent( ).ConfigureAwait(false); return - await global::Together.FinetuneResponseTruncated.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.FinetuneResponseTruncated.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.FineTuningClient.CreateFineTunesEstimatePrice.g.cs b/src/libs/Together/Generated/Together.FineTuningClient.CreateFineTunesEstimatePrice.g.cs index a95ae956..ee9adce9 100644 --- a/src/libs/Together/Generated/Together.FineTuningClient.CreateFineTunesEstimatePrice.g.cs +++ b/src/libs/Together/Generated/Together.FineTuningClient.CreateFineTunesEstimatePrice.g.cs @@ -68,7 +68,7 @@ partial void ProcessCreateFineTunesEstimatePriceResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -105,13 +105,13 @@ partial void ProcessCreateFineTunesEstimatePriceResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessCreateFineTunesEstimatePriceResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.CreateFineTunesEstimatePriceResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.CreateFineTunesEstimatePriceResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -186,7 +186,7 @@ partial void ProcessCreateFineTunesEstimatePriceResponseContent( ).ConfigureAwait(false); return - await global::Together.CreateFineTunesEstimatePriceResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.CreateFineTunesEstimatePriceResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.FineTuningClient.DeleteFineTunesById.g.cs b/src/libs/Together/Generated/Together.FineTuningClient.DeleteFineTunesById.g.cs index aef604ee..c081edca 100644 --- a/src/libs/Together/Generated/Together.FineTuningClient.DeleteFineTunesById.g.cs +++ b/src/libs/Together/Generated/Together.FineTuningClient.DeleteFineTunesById.g.cs @@ -120,13 +120,13 @@ partial void ProcessDeleteFineTunesByIdResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -158,13 +158,13 @@ partial void ProcessDeleteFineTunesByIdResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -208,7 +208,7 @@ partial void ProcessDeleteFineTunesByIdResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.FinetuneDeleteResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.FinetuneDeleteResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -239,7 +239,7 @@ partial void ProcessDeleteFineTunesByIdResponseContent( ).ConfigureAwait(false); return - await global::Together.FinetuneDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.FinetuneDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunes.g.cs b/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunes.g.cs index 2dea65bd..5c508778 100644 --- a/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunes.g.cs +++ b/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunes.g.cs @@ -113,7 +113,7 @@ partial void ProcessGetFineTunesResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.FinetuneTruncatedList.FromJson(__content, JsonSerializerContext) ?? + global::Together.FinetuneTruncatedList.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -144,7 +144,7 @@ partial void ProcessGetFineTunesResponseContent( ).ConfigureAwait(false); return - await global::Together.FinetuneTruncatedList.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.FinetuneTruncatedList.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesById.g.cs b/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesById.g.cs index beda3c40..8d0ef3f3 100644 --- a/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesById.g.cs +++ b/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesById.g.cs @@ -120,7 +120,7 @@ partial void ProcessGetFineTunesByIdResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.FinetuneResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.FinetuneResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -151,7 +151,7 @@ partial void ProcessGetFineTunesByIdResponseContent( ).ConfigureAwait(false); return - await global::Together.FinetuneResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.FinetuneResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesByIdCheckpoints.g.cs b/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesByIdCheckpoints.g.cs index 64f894b1..917a8085 100644 --- a/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesByIdCheckpoints.g.cs +++ b/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesByIdCheckpoints.g.cs @@ -120,7 +120,7 @@ partial void ProcessGetFineTunesByIdCheckpointsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.FinetuneListCheckpoints.FromJson(__content, JsonSerializerContext) ?? + global::Together.FinetuneListCheckpoints.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -151,7 +151,7 @@ partial void ProcessGetFineTunesByIdCheckpointsResponseContent( ).ConfigureAwait(false); return - await global::Together.FinetuneListCheckpoints.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.FinetuneListCheckpoints.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesByIdEvents.g.cs b/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesByIdEvents.g.cs index c8e016d5..181d40b6 100644 --- a/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesByIdEvents.g.cs +++ b/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesByIdEvents.g.cs @@ -121,7 +121,7 @@ partial void ProcessGetFineTunesByIdEventsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.FinetuneListEvents.FromJson(__content, JsonSerializerContext) ?? + global::Together.FinetuneListEvents.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -152,7 +152,7 @@ partial void ProcessGetFineTunesByIdEventsResponseContent( ).ConfigureAwait(false); return - await global::Together.FinetuneListEvents.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.FinetuneListEvents.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesModelsLimits.g.cs b/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesModelsLimits.g.cs index 848059a9..43f47374 100644 --- a/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesModelsLimits.g.cs +++ b/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesModelsLimits.g.cs @@ -105,13 +105,13 @@ partial void ProcessGetFineTunesModelsLimitsResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.GetFineTunesModelsLimitsResponse.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.GetFineTunesModelsLimitsResponse.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.GetFineTunesModelsLimitsResponse.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.GetFineTunesModelsLimitsResponse.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessGetFineTunesModelsLimitsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.FineTuneModelLimits.FromJson(__content, JsonSerializerContext) ?? + global::Together.FineTuneModelLimits.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -186,7 +186,7 @@ partial void ProcessGetFineTunesModelsLimitsResponseContent( ).ConfigureAwait(false); return - await global::Together.FineTuneModelLimits.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.FineTuneModelLimits.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesModelsSupported.g.cs b/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesModelsSupported.g.cs index e4082864..2c5b7394 100644 --- a/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesModelsSupported.g.cs +++ b/src/libs/Together/Generated/Together.FineTuningClient.GetFineTunesModelsSupported.g.cs @@ -106,7 +106,7 @@ partial void ProcessGetFineTunesModelsSupportedResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.GetFineTunesModelsSupportedResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.GetFineTunesModelsSupportedResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -137,7 +137,7 @@ partial void ProcessGetFineTunesModelsSupportedResponseContent( ).ConfigureAwait(false); return - await global::Together.GetFineTunesModelsSupportedResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.GetFineTunesModelsSupportedResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.FineTuningClient.g.cs b/src/libs/Together/Generated/Together.FineTuningClient.g.cs index dfbf5c9c..a4ecb8ee 100644 --- a/src/libs/Together/Generated/Together.FineTuningClient.g.cs +++ b/src/libs/Together/Generated/Together.FineTuningClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class FineTuningClient : global::Together.IFineTuningClien /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceCreate.g.cs b/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceCreate.g.cs index 428cb743..f777ff28 100644 --- a/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceCreate.g.cs +++ b/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceCreate.g.cs @@ -84,7 +84,7 @@ partial void ProcessGPUClusterServiceCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -133,7 +133,7 @@ partial void ProcessGPUClusterServiceCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.GPUClusterInfo.FromJson(__content, JsonSerializerContext) ?? + global::Together.GPUClusterInfo.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -164,7 +164,7 @@ partial void ProcessGPUClusterServiceCreateResponseContent( ).ConfigureAwait(false); return - await global::Together.GPUClusterInfo.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.GPUClusterInfo.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceDelete.g.cs b/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceDelete.g.cs index a1509943..df142b34 100644 --- a/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceDelete.g.cs +++ b/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceDelete.g.cs @@ -116,7 +116,7 @@ partial void ProcessGPUClusterServiceDeleteResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.GPUClusterServiceDeleteResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.GPUClusterServiceDeleteResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessGPUClusterServiceDeleteResponseContent( ).ConfigureAwait(false); return - await global::Together.GPUClusterServiceDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.GPUClusterServiceDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceGet.g.cs b/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceGet.g.cs index 3f18f92d..904ceb15 100644 --- a/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceGet.g.cs +++ b/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceGet.g.cs @@ -116,7 +116,7 @@ partial void ProcessGPUClusterServiceGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.GPUClusterInfo.FromJson(__content, JsonSerializerContext) ?? + global::Together.GPUClusterInfo.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessGPUClusterServiceGetResponseContent( ).ConfigureAwait(false); return - await global::Together.GPUClusterInfo.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.GPUClusterInfo.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceList.g.cs b/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceList.g.cs index 2e6a782e..838f29d0 100644 --- a/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceList.g.cs +++ b/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceList.g.cs @@ -111,7 +111,7 @@ partial void ProcessGPUClusterServiceListResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.GPUClusters.FromJson(__content, JsonSerializerContext) ?? + global::Together.GPUClusters.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -142,7 +142,7 @@ partial void ProcessGPUClusterServiceListResponseContent( ).ConfigureAwait(false); return - await global::Together.GPUClusters.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.GPUClusters.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceUpdate.g.cs b/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceUpdate.g.cs index 53836ba4..eb47ea0a 100644 --- a/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceUpdate.g.cs +++ b/src/libs/Together/Generated/Together.GPUClusterServiceClient.GPUClusterServiceUpdate.g.cs @@ -81,7 +81,7 @@ partial void ProcessGPUClusterServiceUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -131,7 +131,7 @@ partial void ProcessGPUClusterServiceUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.GPUClusterInfo.FromJson(__content, JsonSerializerContext) ?? + global::Together.GPUClusterInfo.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -162,7 +162,7 @@ partial void ProcessGPUClusterServiceUpdateResponseContent( ).ConfigureAwait(false); return - await global::Together.GPUClusterInfo.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.GPUClusterInfo.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.GPUClusterServiceClient.g.cs b/src/libs/Together/Generated/Together.GPUClusterServiceClient.g.cs index 865ed4fb..e7b50c5d 100644 --- a/src/libs/Together/Generated/Together.GPUClusterServiceClient.g.cs +++ b/src/libs/Together/Generated/Together.GPUClusterServiceClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class GPUClusterServiceClient : global::Together.IGPUClust /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.HardwareClient.ListHardware.g.cs b/src/libs/Together/Generated/Together.HardwareClient.ListHardware.g.cs index 1d1f4748..f864a9d9 100644 --- a/src/libs/Together/Generated/Together.HardwareClient.ListHardware.g.cs +++ b/src/libs/Together/Generated/Together.HardwareClient.ListHardware.g.cs @@ -115,13 +115,13 @@ partial void ProcessListHardwareResponseContent( if (ReadResponseAsString) { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerContext); + __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerOptions); } else { __content_403 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerContext); + __value_403 = global::Together.ErrorData.FromJson(__content_403, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -153,13 +153,13 @@ partial void ProcessListHardwareResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.ErrorData.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -203,7 +203,7 @@ partial void ProcessListHardwareResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.ListHardwareResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.ListHardwareResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -234,7 +234,7 @@ partial void ProcessListHardwareResponseContent( ).ConfigureAwait(false); return - await global::Together.ListHardwareResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.ListHardwareResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.HardwareClient.g.cs b/src/libs/Together/Generated/Together.HardwareClient.g.cs index c789a82c..8e7249a0 100644 --- a/src/libs/Together/Generated/Together.HardwareClient.g.cs +++ b/src/libs/Together/Generated/Together.HardwareClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class HardwareClient : global::Together.IHardwareClient, g /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.IAudioClient.g.cs b/src/libs/Together/Generated/Together.IAudioClient.g.cs index 44ac0980..6e31b7ef 100644 --- a/src/libs/Together/Generated/Together.IAudioClient.g.cs +++ b/src/libs/Together/Generated/Together.IAudioClient.g.cs @@ -36,7 +36,7 @@ public partial interface IAudioClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IBatchesClient.g.cs b/src/libs/Together/Generated/Together.IBatchesClient.g.cs index 47236ac6..d88fffb6 100644 --- a/src/libs/Together/Generated/Together.IBatchesClient.g.cs +++ b/src/libs/Together/Generated/Together.IBatchesClient.g.cs @@ -36,7 +36,7 @@ public partial interface IBatchesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IChatClient.g.cs b/src/libs/Together/Generated/Together.IChatClient.g.cs index abac5853..6401c8e9 100644 --- a/src/libs/Together/Generated/Together.IChatClient.g.cs +++ b/src/libs/Together/Generated/Together.IChatClient.g.cs @@ -36,7 +36,7 @@ public partial interface IChatClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.ICodeInterpreterClient.g.cs b/src/libs/Together/Generated/Together.ICodeInterpreterClient.g.cs index fe5dfe84..1c87f831 100644 --- a/src/libs/Together/Generated/Together.ICodeInterpreterClient.g.cs +++ b/src/libs/Together/Generated/Together.ICodeInterpreterClient.g.cs @@ -36,7 +36,7 @@ public partial interface ICodeInterpreterClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.ICompletionClient.g.cs b/src/libs/Together/Generated/Together.ICompletionClient.g.cs index 0c7d8685..4a4159c7 100644 --- a/src/libs/Together/Generated/Together.ICompletionClient.g.cs +++ b/src/libs/Together/Generated/Together.ICompletionClient.g.cs @@ -36,7 +36,7 @@ public partial interface ICompletionClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IDeploymentsClient.g.cs b/src/libs/Together/Generated/Together.IDeploymentsClient.g.cs index 15d19410..91356a7a 100644 --- a/src/libs/Together/Generated/Together.IDeploymentsClient.g.cs +++ b/src/libs/Together/Generated/Together.IDeploymentsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IDeploymentsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IDeploymentsStorageClient.g.cs b/src/libs/Together/Generated/Together.IDeploymentsStorageClient.g.cs index 60ba240a..bae36d8a 100644 --- a/src/libs/Together/Generated/Together.IDeploymentsStorageClient.g.cs +++ b/src/libs/Together/Generated/Together.IDeploymentsStorageClient.g.cs @@ -36,7 +36,7 @@ public partial interface IDeploymentsStorageClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IDeploymentsVolumesClient.g.cs b/src/libs/Together/Generated/Together.IDeploymentsVolumesClient.g.cs index 49021d43..fd0219e4 100644 --- a/src/libs/Together/Generated/Together.IDeploymentsVolumesClient.g.cs +++ b/src/libs/Together/Generated/Together.IDeploymentsVolumesClient.g.cs @@ -36,7 +36,7 @@ public partial interface IDeploymentsVolumesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IEmbeddingsClient.g.cs b/src/libs/Together/Generated/Together.IEmbeddingsClient.g.cs index 02a892e2..19d1ae48 100644 --- a/src/libs/Together/Generated/Together.IEmbeddingsClient.g.cs +++ b/src/libs/Together/Generated/Together.IEmbeddingsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IEmbeddingsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IEndpoints2Client.g.cs b/src/libs/Together/Generated/Together.IEndpoints2Client.g.cs index 774e4832..feb9e360 100644 --- a/src/libs/Together/Generated/Together.IEndpoints2Client.g.cs +++ b/src/libs/Together/Generated/Together.IEndpoints2Client.g.cs @@ -36,7 +36,7 @@ public partial interface IEndpoints2Client : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IEndpointsClient.g.cs b/src/libs/Together/Generated/Together.IEndpointsClient.g.cs index 60334949..b3ffc469 100644 --- a/src/libs/Together/Generated/Together.IEndpointsClient.g.cs +++ b/src/libs/Together/Generated/Together.IEndpointsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IEndpointsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IEvaluationClient.g.cs b/src/libs/Together/Generated/Together.IEvaluationClient.g.cs index 09dd8889..50affc6c 100644 --- a/src/libs/Together/Generated/Together.IEvaluationClient.g.cs +++ b/src/libs/Together/Generated/Together.IEvaluationClient.g.cs @@ -36,7 +36,7 @@ public partial interface IEvaluationClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IFilesClient.g.cs b/src/libs/Together/Generated/Together.IFilesClient.g.cs index 629d69e0..d7a66ee7 100644 --- a/src/libs/Together/Generated/Together.IFilesClient.g.cs +++ b/src/libs/Together/Generated/Together.IFilesClient.g.cs @@ -36,7 +36,7 @@ public partial interface IFilesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IFineTuningClient.g.cs b/src/libs/Together/Generated/Together.IFineTuningClient.g.cs index fd04bf2a..d8b56ce4 100644 --- a/src/libs/Together/Generated/Together.IFineTuningClient.g.cs +++ b/src/libs/Together/Generated/Together.IFineTuningClient.g.cs @@ -36,7 +36,7 @@ public partial interface IFineTuningClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IGPUClusterServiceClient.g.cs b/src/libs/Together/Generated/Together.IGPUClusterServiceClient.g.cs index 4f7985ac..7e0d2b9a 100644 --- a/src/libs/Together/Generated/Together.IGPUClusterServiceClient.g.cs +++ b/src/libs/Together/Generated/Together.IGPUClusterServiceClient.g.cs @@ -36,7 +36,7 @@ public partial interface IGPUClusterServiceClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IHardwareClient.g.cs b/src/libs/Together/Generated/Together.IHardwareClient.g.cs index 18c2976a..f55451bd 100644 --- a/src/libs/Together/Generated/Together.IHardwareClient.g.cs +++ b/src/libs/Together/Generated/Together.IHardwareClient.g.cs @@ -36,7 +36,7 @@ public partial interface IHardwareClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IImagesClient.g.cs b/src/libs/Together/Generated/Together.IImagesClient.g.cs index 8133f1f9..123b8182 100644 --- a/src/libs/Together/Generated/Together.IImagesClient.g.cs +++ b/src/libs/Together/Generated/Together.IImagesClient.g.cs @@ -36,7 +36,7 @@ public partial interface IImagesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IJobsClient.g.cs b/src/libs/Together/Generated/Together.IJobsClient.g.cs index c0093701..5e0a084d 100644 --- a/src/libs/Together/Generated/Together.IJobsClient.g.cs +++ b/src/libs/Together/Generated/Together.IJobsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IJobsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IModelsClient.g.cs b/src/libs/Together/Generated/Together.IModelsClient.g.cs index 4b7a9063..11eac1e7 100644 --- a/src/libs/Together/Generated/Together.IModelsClient.g.cs +++ b/src/libs/Together/Generated/Together.IModelsClient.g.cs @@ -36,7 +36,7 @@ public partial interface IModelsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IQueueClient.g.cs b/src/libs/Together/Generated/Together.IQueueClient.g.cs index 02163ab1..f3169983 100644 --- a/src/libs/Together/Generated/Together.IQueueClient.g.cs +++ b/src/libs/Together/Generated/Together.IQueueClient.g.cs @@ -36,7 +36,7 @@ public partial interface IQueueClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IRegionServiceClient.g.cs b/src/libs/Together/Generated/Together.IRegionServiceClient.g.cs index d77ce287..baad3b5a 100644 --- a/src/libs/Together/Generated/Together.IRegionServiceClient.g.cs +++ b/src/libs/Together/Generated/Together.IRegionServiceClient.g.cs @@ -36,7 +36,7 @@ public partial interface IRegionServiceClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IRerankClient.g.cs b/src/libs/Together/Generated/Together.IRerankClient.g.cs index 647950a4..95b31162 100644 --- a/src/libs/Together/Generated/Together.IRerankClient.g.cs +++ b/src/libs/Together/Generated/Together.IRerankClient.g.cs @@ -36,7 +36,7 @@ public partial interface IRerankClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IRlClient.g.cs b/src/libs/Together/Generated/Together.IRlClient.g.cs index 51fc1e16..36b08788 100644 --- a/src/libs/Together/Generated/Together.IRlClient.g.cs +++ b/src/libs/Together/Generated/Together.IRlClient.g.cs @@ -36,7 +36,7 @@ public partial interface IRlClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.ISecretsClient.g.cs b/src/libs/Together/Generated/Together.ISecretsClient.g.cs index 0d2f61f5..ded7d683 100644 --- a/src/libs/Together/Generated/Together.ISecretsClient.g.cs +++ b/src/libs/Together/Generated/Together.ISecretsClient.g.cs @@ -36,7 +36,7 @@ public partial interface ISecretsClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.ISharedVolumeServiceClient.g.cs b/src/libs/Together/Generated/Together.ISharedVolumeServiceClient.g.cs index 15188d26..5855a932 100644 --- a/src/libs/Together/Generated/Together.ISharedVolumeServiceClient.g.cs +++ b/src/libs/Together/Generated/Together.ISharedVolumeServiceClient.g.cs @@ -36,7 +36,7 @@ public partial interface ISharedVolumeServiceClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.ITogetherClient.g.cs b/src/libs/Together/Generated/Together.ITogetherClient.g.cs index 19632bb3..91d3e631 100644 --- a/src/libs/Together/Generated/Together.ITogetherClient.g.cs +++ b/src/libs/Together/Generated/Together.ITogetherClient.g.cs @@ -37,7 +37,7 @@ public partial interface ITogetherClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } /// diff --git a/src/libs/Together/Generated/Together.IVideoClient.g.cs b/src/libs/Together/Generated/Together.IVideoClient.g.cs index f38e1a54..61216ad5 100644 --- a/src/libs/Together/Generated/Together.IVideoClient.g.cs +++ b/src/libs/Together/Generated/Together.IVideoClient.g.cs @@ -36,7 +36,7 @@ public partial interface IVideoClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IVoicesClient.g.cs b/src/libs/Together/Generated/Together.IVoicesClient.g.cs index 7c96abe9..cad72e81 100644 --- a/src/libs/Together/Generated/Together.IVoicesClient.g.cs +++ b/src/libs/Together/Generated/Together.IVoicesClient.g.cs @@ -36,7 +36,7 @@ public partial interface IVoicesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.IVolumesClient.g.cs b/src/libs/Together/Generated/Together.IVolumesClient.g.cs index 76431ab7..27f4fbd1 100644 --- a/src/libs/Together/Generated/Together.IVolumesClient.g.cs +++ b/src/libs/Together/Generated/Together.IVolumesClient.g.cs @@ -36,7 +36,7 @@ public partial interface IVolumesClient : global::System.IDisposable /// /// /// - global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } + global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } } diff --git a/src/libs/Together/Generated/Together.ImagesClient.CreateImagesGenerations.g.cs b/src/libs/Together/Generated/Together.ImagesClient.CreateImagesGenerations.g.cs index 1a248357..22bfb365 100644 --- a/src/libs/Together/Generated/Together.ImagesClient.CreateImagesGenerations.g.cs +++ b/src/libs/Together/Generated/Together.ImagesClient.CreateImagesGenerations.g.cs @@ -82,7 +82,7 @@ partial void ProcessCreateImagesGenerationsResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -131,7 +131,7 @@ partial void ProcessCreateImagesGenerationsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.ImageResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.ImageResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -162,7 +162,7 @@ partial void ProcessCreateImagesGenerationsResponseContent( ).ConfigureAwait(false); return - await global::Together.ImageResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.ImageResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.ImagesClient.g.cs b/src/libs/Together/Generated/Together.ImagesClient.g.cs index 8f9f4316..dec1315d 100644 --- a/src/libs/Together/Generated/Together.ImagesClient.g.cs +++ b/src/libs/Together/Generated/Together.ImagesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ImagesClient : global::Together.IImagesClient, globa /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.JobsClient.GetJob.g.cs b/src/libs/Together/Generated/Together.JobsClient.GetJob.g.cs index e5394289..eeb941d6 100644 --- a/src/libs/Together/Generated/Together.JobsClient.GetJob.g.cs +++ b/src/libs/Together/Generated/Together.JobsClient.GetJob.g.cs @@ -111,7 +111,7 @@ partial void ProcessGetJobResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.JobInfoSuccessResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.JobInfoSuccessResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -142,7 +142,7 @@ partial void ProcessGetJobResponseContent( ).ConfigureAwait(false); return - await global::Together.JobInfoSuccessResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.JobInfoSuccessResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.JobsClient.ListJobs.g.cs b/src/libs/Together/Generated/Together.JobsClient.ListJobs.g.cs index 3a64d986..1d762791 100644 --- a/src/libs/Together/Generated/Together.JobsClient.ListJobs.g.cs +++ b/src/libs/Together/Generated/Together.JobsClient.ListJobs.g.cs @@ -102,7 +102,7 @@ partial void ProcessListJobsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.JobsInfoSuccessResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.JobsInfoSuccessResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -133,7 +133,7 @@ partial void ProcessListJobsResponseContent( ).ConfigureAwait(false); return - await global::Together.JobsInfoSuccessResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.JobsInfoSuccessResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.JobsClient.g.cs b/src/libs/Together/Generated/Together.JobsClient.g.cs index b7d5b65c..778ece62 100644 --- a/src/libs/Together/Generated/Together.JobsClient.g.cs +++ b/src/libs/Together/Generated/Together.JobsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class JobsClient : global::Together.IJobsClient, global::S /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.JsonConverters.AllOf2.g.cs b/src/libs/Together/Generated/Together.JsonConverters.AllOf2.g.cs index bb83e918..e28071d0 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.AllOf2.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.AllOf2.g.cs @@ -11,8 +11,7 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -27,27 +26,7 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -62,9 +41,7 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -79,9 +56,7 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -97,9 +72,7 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -111,9 +84,7 @@ public class AllOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -138,20 +109,15 @@ public override void Write( global::Together.AllOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsValue1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); } else if (value.IsValue2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.AnyOf2.g.cs b/src/libs/Together/Generated/Together.JsonConverters.AnyOf2.g.cs index 4c1a2085..5ee31db7 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.AnyOf2.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.AnyOf2.g.cs @@ -11,8 +11,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -27,27 +26,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -62,9 +41,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -79,9 +56,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -97,9 +72,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -111,9 +84,7 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -138,20 +109,15 @@ public override void Write( global::Together.AnyOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsValue1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); } else if (value.IsValue2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.AudioSpeechStreamResponse.g.cs b/src/libs/Together/Generated/Together.JsonConverters.AudioSpeechStreamResponse.g.cs index e2af3bbb..a0c24a14 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.AudioSpeechStreamResponse.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.AudioSpeechStreamResponse.g.cs @@ -12,8 +12,7 @@ public class AudioSpeechStreamResponseJsonConverter : global::System.Text.Json.S global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -43,9 +42,7 @@ public class AudioSpeechStreamResponseJsonConverter : global::System.Text.Json.S { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.AudioSpeechStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.AudioSpeechStreamEvent).Name}"); - @event = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @event = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -58,9 +55,7 @@ public class AudioSpeechStreamResponseJsonConverter : global::System.Text.Json.S { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.StreamSentinel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.StreamSentinel).Name}"); - sentinel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + sentinel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -75,9 +70,7 @@ public class AudioSpeechStreamResponseJsonConverter : global::System.Text.Json.S { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.AudioSpeechStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.AudioSpeechStreamEvent).Name}"); - @event = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @event = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -88,9 +81,7 @@ public class AudioSpeechStreamResponseJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.StreamSentinel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.StreamSentinel).Name}"); - sentinel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + sentinel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -115,20 +106,15 @@ public override void Write( global::Together.AudioSpeechStreamResponse value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsEvent) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.AudioSpeechStreamEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.AudioSpeechStreamEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Event!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Event, typeof(global::Together.AudioSpeechStreamEvent), options); } else if (value.IsSentinel) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.StreamSentinel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.StreamSentinel).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sentinel!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sentinel, typeof(global::Together.StreamSentinel), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.AudioTranscriptionResponse.g.cs b/src/libs/Together/Generated/Together.JsonConverters.AudioTranscriptionResponse.g.cs index 4d742353..f3d23bfa 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.AudioTranscriptionResponse.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.AudioTranscriptionResponse.g.cs @@ -12,8 +12,7 @@ public class AudioTranscriptionResponseJsonConverter : global::System.Text.Json. global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -49,9 +48,7 @@ public class AudioTranscriptionResponseJsonConverter : global::System.Text.Json. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.AudioTranscriptionJsonResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.AudioTranscriptionJsonResponse).Name}"); - json = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + json = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -64,9 +61,7 @@ public class AudioTranscriptionResponseJsonConverter : global::System.Text.Json. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.AudioTranscriptionVerboseJsonResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.AudioTranscriptionVerboseJsonResponse).Name}"); - verboseJson = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + verboseJson = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -81,9 +76,7 @@ public class AudioTranscriptionResponseJsonConverter : global::System.Text.Json. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.AudioTranscriptionJsonResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.AudioTranscriptionJsonResponse).Name}"); - json = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + json = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -94,9 +87,7 @@ public class AudioTranscriptionResponseJsonConverter : global::System.Text.Json. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.AudioTranscriptionVerboseJsonResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.AudioTranscriptionVerboseJsonResponse).Name}"); - verboseJson = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + verboseJson = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -121,20 +112,15 @@ public override void Write( global::Together.AudioTranscriptionResponse value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsJson) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.AudioTranscriptionJsonResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.AudioTranscriptionJsonResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Json!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Json, typeof(global::Together.AudioTranscriptionJsonResponse), options); } else if (value.IsVerboseJson) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.AudioTranscriptionVerboseJsonResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.AudioTranscriptionVerboseJsonResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VerboseJson!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.VerboseJson, typeof(global::Together.AudioTranscriptionVerboseJsonResponse), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.AudioTranslationResponse.g.cs b/src/libs/Together/Generated/Together.JsonConverters.AudioTranslationResponse.g.cs index 7f597aea..4fafd460 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.AudioTranslationResponse.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.AudioTranslationResponse.g.cs @@ -12,8 +12,7 @@ public class AudioTranslationResponseJsonConverter : global::System.Text.Json.Se global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -48,9 +47,7 @@ public class AudioTranslationResponseJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.AudioTranslationJsonResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.AudioTranslationJsonResponse).Name}"); - json = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + json = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -63,9 +60,7 @@ public class AudioTranslationResponseJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.AudioTranslationVerboseJsonResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.AudioTranslationVerboseJsonResponse).Name}"); - verboseJson = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + verboseJson = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +75,7 @@ public class AudioTranslationResponseJsonConverter : global::System.Text.Json.Se { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.AudioTranslationJsonResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.AudioTranslationJsonResponse).Name}"); - json = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + json = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -93,9 +86,7 @@ public class AudioTranslationResponseJsonConverter : global::System.Text.Json.Se try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.AudioTranslationVerboseJsonResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.AudioTranslationVerboseJsonResponse).Name}"); - verboseJson = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + verboseJson = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -120,20 +111,15 @@ public override void Write( global::Together.AudioTranslationResponse value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsJson) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.AudioTranslationJsonResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.AudioTranslationJsonResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Json!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Json, typeof(global::Together.AudioTranslationJsonResponse), options); } else if (value.IsVerboseJson) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.AudioTranslationVerboseJsonResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.AudioTranslationVerboseJsonResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.VerboseJson!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.VerboseJson, typeof(global::Together.AudioTranslationVerboseJsonResponse), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.ChatCompletionMessageParam.g.cs b/src/libs/Together/Generated/Together.JsonConverters.ChatCompletionMessageParam.g.cs index a6b01363..b6ef085a 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.ChatCompletionMessageParam.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.ChatCompletionMessageParam.g.cs @@ -12,8 +12,7 @@ public class ChatCompletionMessageParamJsonConverter : global::System.Text.Json. global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -68,9 +67,7 @@ public class ChatCompletionMessageParamJsonConverter : global::System.Text.Json. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ChatCompletionSystemMessageParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ChatCompletionSystemMessageParam).Name}"); - system = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + system = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -83,9 +80,7 @@ public class ChatCompletionMessageParamJsonConverter : global::System.Text.Json. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ChatCompletionUserMessageParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ChatCompletionUserMessageParam).Name}"); - user = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + user = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -98,9 +93,7 @@ public class ChatCompletionMessageParamJsonConverter : global::System.Text.Json. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ChatCompletionAssistantMessageParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ChatCompletionAssistantMessageParam).Name}"); - assistant = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + assistant = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -113,9 +106,7 @@ public class ChatCompletionMessageParamJsonConverter : global::System.Text.Json. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ChatCompletionToolMessageParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ChatCompletionToolMessageParam).Name}"); - tool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + tool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -128,9 +119,7 @@ public class ChatCompletionMessageParamJsonConverter : global::System.Text.Json. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ChatCompletionFunctionMessageParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ChatCompletionFunctionMessageParam).Name}"); - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -145,9 +134,7 @@ public class ChatCompletionMessageParamJsonConverter : global::System.Text.Json. { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ChatCompletionSystemMessageParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ChatCompletionSystemMessageParam).Name}"); - system = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + system = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -158,9 +145,7 @@ public class ChatCompletionMessageParamJsonConverter : global::System.Text.Json. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ChatCompletionUserMessageParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ChatCompletionUserMessageParam).Name}"); - user = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + user = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -171,9 +156,7 @@ public class ChatCompletionMessageParamJsonConverter : global::System.Text.Json. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ChatCompletionAssistantMessageParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ChatCompletionAssistantMessageParam).Name}"); - assistant = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + assistant = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -184,9 +167,7 @@ public class ChatCompletionMessageParamJsonConverter : global::System.Text.Json. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ChatCompletionToolMessageParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ChatCompletionToolMessageParam).Name}"); - tool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + tool = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -197,9 +178,7 @@ public class ChatCompletionMessageParamJsonConverter : global::System.Text.Json. try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ChatCompletionFunctionMessageParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ChatCompletionFunctionMessageParam).Name}"); - function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + function = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -230,38 +209,27 @@ public override void Write( global::Together.ChatCompletionMessageParam value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsSystem) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ChatCompletionSystemMessageParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ChatCompletionSystemMessageParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.System!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.System, typeof(global::Together.ChatCompletionSystemMessageParam), options); } else if (value.IsUser) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ChatCompletionUserMessageParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ChatCompletionUserMessageParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.User!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.User, typeof(global::Together.ChatCompletionUserMessageParam), options); } else if (value.IsAssistant) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ChatCompletionAssistantMessageParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ChatCompletionAssistantMessageParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Assistant!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Assistant, typeof(global::Together.ChatCompletionAssistantMessageParam), options); } else if (value.IsTool) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ChatCompletionToolMessageParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ChatCompletionToolMessageParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tool!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Tool, typeof(global::Together.ChatCompletionToolMessageParam), options); } else if (value.IsFunction) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ChatCompletionFunctionMessageParam), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ChatCompletionFunctionMessageParam).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Function, typeof(global::Together.ChatCompletionFunctionMessageParam), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.ChatCompletionStream.g.cs b/src/libs/Together/Generated/Together.JsonConverters.ChatCompletionStream.g.cs index 817cee3a..41ea7923 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.ChatCompletionStream.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.ChatCompletionStream.g.cs @@ -12,8 +12,7 @@ public class ChatCompletionStreamJsonConverter : global::System.Text.Json.Serial global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -43,9 +42,7 @@ public class ChatCompletionStreamJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ChatCompletionEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ChatCompletionEvent).Name}"); - @event = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @event = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -58,9 +55,7 @@ public class ChatCompletionStreamJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.StreamSentinel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.StreamSentinel).Name}"); - sentinel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + sentinel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -75,9 +70,7 @@ public class ChatCompletionStreamJsonConverter : global::System.Text.Json.Serial { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ChatCompletionEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ChatCompletionEvent).Name}"); - @event = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @event = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -88,9 +81,7 @@ public class ChatCompletionStreamJsonConverter : global::System.Text.Json.Serial try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.StreamSentinel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.StreamSentinel).Name}"); - sentinel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + sentinel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -115,20 +106,15 @@ public override void Write( global::Together.ChatCompletionStream value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsEvent) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ChatCompletionEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ChatCompletionEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Event!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Event, typeof(global::Together.ChatCompletionEvent), options); } else if (value.IsSentinel) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.StreamSentinel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.StreamSentinel).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sentinel!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sentinel, typeof(global::Together.StreamSentinel), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.ChatCompletionUserMessageContent.g.cs b/src/libs/Together/Generated/Together.JsonConverters.ChatCompletionUserMessageContent.g.cs index f2e56096..2760a9f1 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.ChatCompletionUserMessageContent.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.ChatCompletionUserMessageContent.g.cs @@ -12,8 +12,7 @@ public class ChatCompletionUserMessageContentJsonConverter : global::System.Text global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -28,27 +27,7 @@ public class ChatCompletionUserMessageContentJsonConverter : global::System.Text } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList>), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -63,9 +42,7 @@ public class ChatCompletionUserMessageContentJsonConverter : global::System.Text try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - @string = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @string = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +57,7 @@ public class ChatCompletionUserMessageContentJsonConverter : global::System.Text try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList>), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo>> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList>).Name}"); - multimodal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + multimodal = global::System.Text.Json.JsonSerializer.Deserialize>>(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -98,9 +73,7 @@ public class ChatCompletionUserMessageContentJsonConverter : global::System.Text try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - @string = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @string = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -112,9 +85,7 @@ public class ChatCompletionUserMessageContentJsonConverter : global::System.Text try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList>), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo>> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList>).Name}"); - multimodal = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + multimodal = global::System.Text.Json.JsonSerializer.Deserialize>>(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -139,20 +110,15 @@ public override void Write( global::Together.ChatCompletionUserMessageContent value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsString) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.String!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.String, typeof(string), options); } else if (value.IsMultimodal) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList>), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo>?> ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList>).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Multimodal!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Multimodal, typeof(global::System.Collections.Generic.IList>), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.CompletionStream.g.cs b/src/libs/Together/Generated/Together.JsonConverters.CompletionStream.g.cs index 2e0c7ab2..f00531b3 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.CompletionStream.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.CompletionStream.g.cs @@ -12,8 +12,7 @@ public class CompletionStreamJsonConverter : global::System.Text.Json.Serializat global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -43,9 +42,7 @@ public class CompletionStreamJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.CompletionEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.CompletionEvent).Name}"); - @event = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @event = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -58,9 +55,7 @@ public class CompletionStreamJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.StreamSentinel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.StreamSentinel).Name}"); - sentinel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + sentinel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -75,9 +70,7 @@ public class CompletionStreamJsonConverter : global::System.Text.Json.Serializat { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.CompletionEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.CompletionEvent).Name}"); - @event = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + @event = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -88,9 +81,7 @@ public class CompletionStreamJsonConverter : global::System.Text.Json.Serializat try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.StreamSentinel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.StreamSentinel).Name}"); - sentinel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + sentinel = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -115,20 +106,15 @@ public override void Write( global::Together.CompletionStream value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsEvent) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.CompletionEvent), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.CompletionEvent).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Event!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Event, typeof(global::Together.CompletionEvent), options); } else if (value.IsSentinel) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.StreamSentinel), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.StreamSentinel).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sentinel!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Sentinel, typeof(global::Together.StreamSentinel), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.DataItem3.g.cs b/src/libs/Together/Generated/Together.JsonConverters.DataItem3.g.cs index 2a4d514e..6d8f80b5 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.DataItem3.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.DataItem3.g.cs @@ -12,8 +12,7 @@ public class DataItem3JsonConverter : global::System.Text.Json.Serialization.Jso global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -47,9 +46,7 @@ public class DataItem3JsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ImageResponseDataB64), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ImageResponseDataB64).Name}"); - b64Json = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + b64Json = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -62,9 +59,7 @@ public class DataItem3JsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ImageResponseDataUrl), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ImageResponseDataUrl).Name}"); - url = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + url = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -79,9 +74,7 @@ public class DataItem3JsonConverter : global::System.Text.Json.Serialization.Jso { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ImageResponseDataB64), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ImageResponseDataB64).Name}"); - b64Json = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + b64Json = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -92,9 +85,7 @@ public class DataItem3JsonConverter : global::System.Text.Json.Serialization.Jso try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ImageResponseDataUrl), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ImageResponseDataUrl).Name}"); - url = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + url = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -119,20 +110,15 @@ public override void Write( global::Together.DataItem3 value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsB64Json) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ImageResponseDataB64), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ImageResponseDataB64).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.B64Json!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.B64Json, typeof(global::Together.ImageResponseDataB64), options); } else if (value.IsUrl) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ImageResponseDataUrl), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ImageResponseDataUrl).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Url!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Url, typeof(global::Together.ImageResponseDataUrl), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.Error.g.cs b/src/libs/Together/Generated/Together.JsonConverters.Error.g.cs index 25cb6524..398d146a 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.Error.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.Error.g.cs @@ -12,8 +12,7 @@ public class ErrorJsonConverter : global::System.Text.Json.Serialization.JsonCon global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -28,27 +27,7 @@ public class ErrorJsonConverter : global::System.Text.Json.Serialization.JsonCon } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(object), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -63,9 +42,7 @@ public class ErrorJsonConverter : global::System.Text.Json.Serialization.JsonCon try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - errorVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + errorVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +57,7 @@ public class ErrorJsonConverter : global::System.Text.Json.Serialization.JsonCon try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - errorVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + errorVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -98,9 +73,7 @@ public class ErrorJsonConverter : global::System.Text.Json.Serialization.JsonCon try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - errorVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + errorVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -112,9 +85,7 @@ public class ErrorJsonConverter : global::System.Text.Json.Serialization.JsonCon try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - errorVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + errorVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -139,20 +110,15 @@ public override void Write( global::Together.Error value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsErrorVariant1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ErrorVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ErrorVariant1, typeof(string), options); } else if (value.IsErrorVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(object), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(object).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ErrorVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ErrorVariant2, typeof(object), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.EvaluationModelOrString.g.cs b/src/libs/Together/Generated/Together.JsonConverters.EvaluationModelOrString.g.cs index b9a07d2d..ecc53334 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.EvaluationModelOrString.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.EvaluationModelOrString.g.cs @@ -12,8 +12,7 @@ public class EvaluationModelOrStringJsonConverter : global::System.Text.Json.Ser global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -49,9 +48,7 @@ public class EvaluationModelOrStringJsonConverter : global::System.Text.Json.Ser { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - evaluationModelOrStringVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + evaluationModelOrStringVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -64,9 +61,7 @@ public class EvaluationModelOrStringJsonConverter : global::System.Text.Json.Ser { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.EvaluationModelRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.EvaluationModelRequest).Name}"); - request = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + request = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -81,9 +76,7 @@ public class EvaluationModelOrStringJsonConverter : global::System.Text.Json.Ser { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - evaluationModelOrStringVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + evaluationModelOrStringVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -94,9 +87,7 @@ public class EvaluationModelOrStringJsonConverter : global::System.Text.Json.Ser try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.EvaluationModelRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.EvaluationModelRequest).Name}"); - request = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + request = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -121,20 +112,15 @@ public override void Write( global::Together.EvaluationModelOrString value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsEvaluationModelOrStringVariant1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvaluationModelOrStringVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.EvaluationModelOrStringVariant1, typeof(string), options); } else if (value.IsRequest) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.EvaluationModelRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.EvaluationModelRequest).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Request!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Request, typeof(global::Together.EvaluationModelRequest), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.ExecuteResponse.g.cs b/src/libs/Together/Generated/Together.JsonConverters.ExecuteResponse.g.cs index 2a51576b..df7fa3c4 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.ExecuteResponse.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.ExecuteResponse.g.cs @@ -12,8 +12,7 @@ public class ExecuteResponseJsonConverter : global::System.Text.Json.Serializati global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -45,9 +44,7 @@ public class ExecuteResponseJsonConverter : global::System.Text.Json.Serializati { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ExecuteResponseSuccessfulExecution), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ExecuteResponseSuccessfulExecution).Name}"); - successfulExecution = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + successfulExecution = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -60,9 +57,7 @@ public class ExecuteResponseJsonConverter : global::System.Text.Json.Serializati { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ExecuteResponseFailedExecution), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ExecuteResponseFailedExecution).Name}"); - failedExecution = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + failedExecution = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -77,9 +72,7 @@ public class ExecuteResponseJsonConverter : global::System.Text.Json.Serializati { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ExecuteResponseSuccessfulExecution), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ExecuteResponseSuccessfulExecution).Name}"); - successfulExecution = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + successfulExecution = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -90,9 +83,7 @@ public class ExecuteResponseJsonConverter : global::System.Text.Json.Serializati try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ExecuteResponseFailedExecution), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ExecuteResponseFailedExecution).Name}"); - failedExecution = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + failedExecution = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -117,20 +108,15 @@ public override void Write( global::Together.ExecuteResponse value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsSuccessfulExecution) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ExecuteResponseSuccessfulExecution), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ExecuteResponseSuccessfulExecution).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SuccessfulExecution!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SuccessfulExecution, typeof(global::Together.ExecuteResponseSuccessfulExecution), options); } else if (value.IsFailedExecution) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ExecuteResponseFailedExecution), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ExecuteResponseFailedExecution).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.FailedExecution!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.FailedExecution, typeof(global::Together.ExecuteResponseFailedExecution), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.InterpreterOutput.g.cs b/src/libs/Together/Generated/Together.JsonConverters.InterpreterOutput.g.cs index b048f22e..681a766d 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.InterpreterOutput.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.InterpreterOutput.g.cs @@ -12,8 +12,7 @@ public class InterpreterOutputJsonConverter : global::System.Text.Json.Serializa global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -50,9 +49,7 @@ public class InterpreterOutputJsonConverter : global::System.Text.Json.Serializa { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.InterpreterOutputStreamOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.InterpreterOutputStreamOutput).Name}"); - streamOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + streamOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -65,9 +62,7 @@ public class InterpreterOutputJsonConverter : global::System.Text.Json.Serializa { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.InterpreterOutputErrorOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.InterpreterOutputErrorOutput).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +75,7 @@ public class InterpreterOutputJsonConverter : global::System.Text.Json.Serializa { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.InterpreterOutputDisplayorExecuteOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.InterpreterOutputDisplayorExecuteOutput).Name}"); - displayorExecuteOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + displayorExecuteOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -97,9 +90,7 @@ public class InterpreterOutputJsonConverter : global::System.Text.Json.Serializa { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.InterpreterOutputStreamOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.InterpreterOutputStreamOutput).Name}"); - streamOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + streamOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -110,9 +101,7 @@ public class InterpreterOutputJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.InterpreterOutputErrorOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.InterpreterOutputErrorOutput).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -123,9 +112,7 @@ public class InterpreterOutputJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.InterpreterOutputDisplayorExecuteOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.InterpreterOutputDisplayorExecuteOutput).Name}"); - displayorExecuteOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + displayorExecuteOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -152,26 +139,19 @@ public override void Write( global::Together.InterpreterOutput value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsStreamOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.InterpreterOutputStreamOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.InterpreterOutputStreamOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StreamOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.StreamOutput, typeof(global::Together.InterpreterOutputStreamOutput), options); } else if (value.IsError) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.InterpreterOutputErrorOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.InterpreterOutputErrorOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error, typeof(global::Together.InterpreterOutputErrorOutput), options); } else if (value.IsDisplayorExecuteOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.InterpreterOutputDisplayorExecuteOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.InterpreterOutputDisplayorExecuteOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DisplayorExecuteOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.DisplayorExecuteOutput, typeof(global::Together.InterpreterOutputDisplayorExecuteOutput), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.OneOf2.g.cs b/src/libs/Together/Generated/Together.JsonConverters.OneOf2.g.cs index d1b0b6ad..fd54c4ef 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.OneOf2.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.OneOf2.g.cs @@ -11,8 +11,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -27,27 +26,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -62,9 +41,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -79,9 +56,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -97,9 +72,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -111,9 +84,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -138,20 +109,15 @@ public override void Write( global::Together.OneOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsValue1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); } else if (value.IsValue2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.OneOf3.g.cs b/src/libs/Together/Generated/Together.JsonConverters.OneOf3.g.cs index f6049317..ff728946 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.OneOf3.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.OneOf3.g.cs @@ -11,8 +11,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -27,38 +26,8 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -75,9 +44,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -92,9 +59,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -109,9 +74,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -127,9 +90,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -141,9 +102,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -155,9 +114,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -184,26 +141,19 @@ public override void Write( global::Together.OneOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsValue1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); } else if (value.IsValue2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); } else if (value.IsValue3) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeof(T3), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.OneOf4.g.cs b/src/libs/Together/Generated/Together.JsonConverters.OneOf4.g.cs index 7741e43a..72651331 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.OneOf4.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.OneOf4.g.cs @@ -11,8 +11,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -27,49 +26,9 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } var __score3 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T4), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score3++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -88,9 +47,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -105,9 +62,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -122,9 +77,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -139,9 +92,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -157,9 +108,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -171,9 +120,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -185,9 +132,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -199,9 +144,7 @@ public class OneOfJsonConverter : global::System.Text.Json.Seria try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -230,32 +173,23 @@ public override void Write( global::Together.OneOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsValue1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); } else if (value.IsValue2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); } else if (value.IsValue3) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeof(T3), options); } else if (value.IsValue4) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4, typeof(T4), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.OneOf5.g.cs b/src/libs/Together/Generated/Together.JsonConverters.OneOf5.g.cs index 269591bb..b18075f3 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.OneOf5.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.OneOf5.g.cs @@ -11,8 +11,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); @@ -27,60 +26,10 @@ public class OneOfJsonConverter : global::System.Text.Json.S } var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T1), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T2), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } var __score2 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T3), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score2++; - } - } - } var __score3 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T4), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score3++; - } - } - } var __score4 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(T5), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score4++; - } - } - } var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -101,9 +50,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -118,9 +65,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -135,9 +80,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -152,9 +95,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -169,9 +110,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -187,9 +126,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -201,9 +138,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -215,9 +150,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -229,9 +162,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value4 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -243,9 +174,7 @@ public class OneOfJsonConverter : global::System.Text.Json.S try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + value5 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -276,38 +205,27 @@ public override void Write( global::Together.OneOf value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsValue1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T1).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeof(T1), options); } else if (value.IsValue2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value2, typeof(T2), options); } else if (value.IsValue3) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T3), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T3).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value3, typeof(T3), options); } else if (value.IsValue4) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T4), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T4).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value4, typeof(T4), options); } else if (value.IsValue5) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(T5), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(T5).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value5, typeof(T5), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.OutputsItem.g.cs b/src/libs/Together/Generated/Together.JsonConverters.OutputsItem.g.cs index 2fc16d7b..bbf1552d 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.OutputsItem.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.OutputsItem.g.cs @@ -12,8 +12,7 @@ public class OutputsItemJsonConverter : global::System.Text.Json.Serialization.J global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -50,9 +49,7 @@ public class OutputsItemJsonConverter : global::System.Text.Json.Serialization.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputStreamOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputStreamOutput).Name}"); - streamOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + streamOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -65,9 +62,7 @@ public class OutputsItemJsonConverter : global::System.Text.Json.Serialization.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputErrorOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputErrorOutput).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -80,9 +75,7 @@ public class OutputsItemJsonConverter : global::System.Text.Json.Serialization.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputDisplayorExecuteOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputDisplayorExecuteOutput).Name}"); - displayorExecuteOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + displayorExecuteOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -97,9 +90,7 @@ public class OutputsItemJsonConverter : global::System.Text.Json.Serialization.J { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputStreamOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputStreamOutput).Name}"); - streamOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + streamOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -110,9 +101,7 @@ public class OutputsItemJsonConverter : global::System.Text.Json.Serialization.J try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputErrorOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputErrorOutput).Name}"); - error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + error = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -123,9 +112,7 @@ public class OutputsItemJsonConverter : global::System.Text.Json.Serialization.J try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputDisplayorExecuteOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputDisplayorExecuteOutput).Name}"); - displayorExecuteOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + displayorExecuteOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -152,26 +139,19 @@ public override void Write( global::Together.OutputsItem value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsStreamOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputStreamOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputStreamOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.StreamOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.StreamOutput, typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputStreamOutput), options); } else if (value.IsError) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputErrorOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputErrorOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Error, typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputErrorOutput), options); } else if (value.IsDisplayorExecuteOutput) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputDisplayorExecuteOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputDisplayorExecuteOutput).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.DisplayorExecuteOutput!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.DisplayorExecuteOutput, typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputDisplayorExecuteOutput), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.ResponseFormat.g.cs b/src/libs/Together/Generated/Together.JsonConverters.ResponseFormat.g.cs index e1beaa3c..eceb8307 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.ResponseFormat.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.ResponseFormat.g.cs @@ -12,8 +12,7 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -48,9 +47,7 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ResponseFormatText).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -63,9 +60,7 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ResponseFormatJsonSchema).Name}"); - jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -78,9 +73,7 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ResponseFormatJsonObject).Name}"); - jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -95,9 +88,7 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ResponseFormatText).Name}"); - text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -108,9 +99,7 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ResponseFormatJsonSchema).Name}"); - jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -121,9 +110,7 @@ public class ResponseFormatJsonConverter : global::System.Text.Json.Serializatio try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ResponseFormatJsonObject).Name}"); - jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -150,26 +137,19 @@ public override void Write( global::Together.ResponseFormat value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsText) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ResponseFormatText).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Text, typeof(global::Together.ResponseFormatText), options); } else if (value.IsJsonSchema) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ResponseFormatJsonSchema).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonSchema!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonSchema, typeof(global::Together.ResponseFormatJsonSchema), options); } else if (value.IsJsonObject) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.ResponseFormatJsonObject).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonObject!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.JsonObject, typeof(global::Together.ResponseFormatJsonObject), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonConverters.SessionListResponse.g.cs b/src/libs/Together/Generated/Together.JsonConverters.SessionListResponse.g.cs index 4898bc4e..e7d03e63 100644 --- a/src/libs/Together/Generated/Together.JsonConverters.SessionListResponse.g.cs +++ b/src/libs/Together/Generated/Together.JsonConverters.SessionListResponse.g.cs @@ -12,8 +12,7 @@ public class SessionListResponseJsonConverter : global::System.Text.Json.Seriali global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); var __rawJson = __jsonDocument.RootElement.GetRawText(); @@ -43,9 +42,7 @@ public class SessionListResponseJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.SessionListResponseResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.SessionListResponseResponse).Name}"); - response = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + response = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -58,9 +55,7 @@ public class SessionListResponseJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.SessionListResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.SessionListResponseVariant2).Name}"); - sessionListResponseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + sessionListResponseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -75,9 +70,7 @@ public class SessionListResponseJsonConverter : global::System.Text.Json.Seriali { try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.SessionListResponseResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.SessionListResponseResponse).Name}"); - response = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + response = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -88,9 +81,7 @@ public class SessionListResponseJsonConverter : global::System.Text.Json.Seriali try { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.SessionListResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.SessionListResponseVariant2).Name}"); - sessionListResponseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + sessionListResponseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, options); } catch (global::System.Text.Json.JsonException) { @@ -115,20 +106,15 @@ public override void Write( global::Together.SessionListResponse value, global::System.Text.Json.JsonSerializerOptions options) { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); + options = options ?? throw new global::System.ArgumentNullException(nameof(options)); if (value.IsResponse) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.SessionListResponseResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.SessionListResponseResponse).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.Response!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.Response, typeof(global::Together.SessionListResponseResponse), options); } else if (value.IsSessionListResponseVariant2) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Together.SessionListResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Together.SessionListResponseVariant2).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionListResponseVariant2!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.SessionListResponseVariant2, typeof(global::Together.SessionListResponseVariant2), options); } } } diff --git a/src/libs/Together/Generated/Together.JsonSerializerContext.g.cs b/src/libs/Together/Generated/Together.JsonSerializerContext.g.cs deleted file mode 100644 index 02a4cccf..00000000 --- a/src/libs/Together/Generated/Together.JsonSerializerContext.g.cs +++ /dev/null @@ -1,1272 +0,0 @@ - -#nullable enable - -#pragma warning disable CS0618 // Type or member is obsolete -#pragma warning disable CS3016 // Arrays as attribute arguments is not CLS-compliant - -namespace Together -{ - /// - /// - /// - [global::System.Text.Json.Serialization.JsonSourceGenerationOptions( - DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, - Converters = new global::System.Type[] - { - typeof(global::Together.JsonConverters.RlDTypeJsonConverter), - - typeof(global::Together.JsonConverters.RlDTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.RlLossTypeJsonConverter), - - typeof(global::Together.JsonConverters.RlLossTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.RlGRPOLossAggregationTypeJsonConverter), - - typeof(global::Together.JsonConverters.RlGRPOLossAggregationTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.RlTrainingOperationErrorCodeJsonConverter), - - typeof(global::Together.JsonConverters.RlTrainingOperationErrorCodeNullableJsonConverter), - - typeof(global::Together.JsonConverters.RlTrainingOperationStatusJsonConverter), - - typeof(global::Together.JsonConverters.RlTrainingOperationStatusNullableJsonConverter), - - typeof(global::Together.JsonConverters.RlTrainingSessionStatusJsonConverter), - - typeof(global::Together.JsonConverters.RlTrainingSessionStatusNullableJsonConverter), - - typeof(global::Together.JsonConverters.RlCheckpointVariantJsonConverter), - - typeof(global::Together.JsonConverters.RlCheckpointVariantNullableJsonConverter), - - typeof(global::Together.JsonConverters.GPUClusterCreateRequestClusterTypeJsonConverter), - - typeof(global::Together.JsonConverters.GPUClusterCreateRequestClusterTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.GPUClusterCreateRequestGpuTypeJsonConverter), - - typeof(global::Together.JsonConverters.GPUClusterCreateRequestGpuTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.GPUClusterCreateRequestDriverVersionJsonConverter), - - typeof(global::Together.JsonConverters.GPUClusterCreateRequestDriverVersionNullableJsonConverter), - - typeof(global::Together.JsonConverters.GPUClusterCreateRequestBillingTypeJsonConverter), - - typeof(global::Together.JsonConverters.GPUClusterCreateRequestBillingTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.GPUClusterInfoClusterTypeJsonConverter), - - typeof(global::Together.JsonConverters.GPUClusterInfoClusterTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.GPUClusterInfoGpuTypeJsonConverter), - - typeof(global::Together.JsonConverters.GPUClusterInfoGpuTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.GPUClusterInfoDriverVersionJsonConverter), - - typeof(global::Together.JsonConverters.GPUClusterInfoDriverVersionNullableJsonConverter), - - typeof(global::Together.JsonConverters.GPUClusterInfoStatusJsonConverter), - - typeof(global::Together.JsonConverters.GPUClusterInfoStatusNullableJsonConverter), - - typeof(global::Together.JsonConverters.GPUClusterUpdateRequestClusterTypeJsonConverter), - - typeof(global::Together.JsonConverters.GPUClusterUpdateRequestClusterTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.InstanceTypesResponseTypeJsonConverter), - - typeof(global::Together.JsonConverters.InstanceTypesResponseTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.GPUClustersSharedVolumeStatusJsonConverter), - - typeof(global::Together.JsonConverters.GPUClustersSharedVolumeStatusNullableJsonConverter), - - typeof(global::Together.JsonConverters.RerankRequestModelJsonConverter), - - typeof(global::Together.JsonConverters.RerankRequestModelNullableJsonConverter), - - typeof(global::Together.JsonConverters.FinishReasonJsonConverter), - - typeof(global::Together.JsonConverters.FinishReasonNullableJsonConverter), - - typeof(global::Together.JsonConverters.CompletionRequestModelJsonConverter), - - typeof(global::Together.JsonConverters.CompletionRequestModelNullableJsonConverter), - - typeof(global::Together.JsonConverters.CompletionRequestSafetyModelJsonConverter), - - typeof(global::Together.JsonConverters.CompletionRequestSafetyModelNullableJsonConverter), - - typeof(global::Together.JsonConverters.CompletionChoiceDeltaRoleJsonConverter), - - typeof(global::Together.JsonConverters.CompletionChoiceDeltaRoleNullableJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionMessageRoleJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionMessageRoleNullableJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionToolTypeJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionToolTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionRequestContextLengthExceededBehaviorJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionRequestContextLengthExceededBehaviorNullableJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionRequestFunctionCallEnumJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionRequestFunctionCallEnumNullableJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionRequestReasoningEffortJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionRequestReasoningEffortNullableJsonConverter), - - typeof(global::Together.JsonConverters.ResponseFormatTextTypeJsonConverter), - - typeof(global::Together.JsonConverters.ResponseFormatTextTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.ResponseFormatJsonObjectTypeJsonConverter), - - typeof(global::Together.JsonConverters.ResponseFormatJsonObjectTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.ResponseFormatJsonSchemaTypeJsonConverter), - - typeof(global::Together.JsonConverters.ResponseFormatJsonSchemaTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionSystemMessageParamRoleJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionSystemMessageParamRoleNullableJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionUserMessageParamRoleJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionUserMessageParamRoleNullableJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemVariant1TypeJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemVariant1TypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemVariant2TypeJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemVariant2TypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemVideoTypeJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemVideoTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemAudioTypeJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemAudioTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemInputAudioTypeJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemInputAudioTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemInputAudioInputAudioFormatJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemInputAudioInputAudioFormatNullableJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionAssistantMessageParamRoleJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionAssistantMessageParamRoleNullableJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionFunctionMessageParamRoleJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionFunctionMessageParamRoleNullableJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionToolMessageParamRoleJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionToolMessageParamRoleNullableJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionChunkChoiceDeltaRoleJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionChunkChoiceDeltaRoleNullableJsonConverter), - - typeof(global::Together.JsonConverters.AudioSpeechRequestModelJsonConverter), - - typeof(global::Together.JsonConverters.AudioSpeechRequestModelNullableJsonConverter), - - typeof(global::Together.JsonConverters.AudioSpeechRequestResponseFormatJsonConverter), - - typeof(global::Together.JsonConverters.AudioSpeechRequestResponseFormatNullableJsonConverter), - - typeof(global::Together.JsonConverters.AudioSpeechRequestLanguageJsonConverter), - - typeof(global::Together.JsonConverters.AudioSpeechRequestLanguageNullableJsonConverter), - - typeof(global::Together.JsonConverters.AudioSpeechRequestResponseEncodingJsonConverter), - - typeof(global::Together.JsonConverters.AudioSpeechRequestResponseEncodingNullableJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranscriptionRequestModelJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranscriptionRequestModelNullableJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranscriptionRequestResponseFormatJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranscriptionRequestResponseFormatNullableJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranscriptionRequestTimestampGranularitiesJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranscriptionRequestTimestampGranularitiesNullableJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranscriptionRequestTimestampGranularitieJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranscriptionRequestTimestampGranularitieNullableJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranscriptionVerboseJsonResponseTaskJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranscriptionVerboseJsonResponseTaskNullableJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranslationRequestModelJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranslationRequestModelNullableJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranslationRequestResponseFormatJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranslationRequestResponseFormatNullableJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranslationRequestTimestampGranularitiesJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranslationRequestTimestampGranularitiesNullableJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranslationRequestTimestampGranularitieJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranslationRequestTimestampGranularitieNullableJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranslationVerboseJsonResponseTaskJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranslationVerboseJsonResponseTaskNullableJsonConverter), - - typeof(global::Together.JsonConverters.StreamSentinelDataJsonConverter), - - typeof(global::Together.JsonConverters.StreamSentinelDataNullableJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionChoiceDeltaRoleJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionChoiceDeltaRoleNullableJsonConverter), - - typeof(global::Together.JsonConverters.EmbeddingsRequestModelJsonConverter), - - typeof(global::Together.JsonConverters.EmbeddingsRequestModelNullableJsonConverter), - - typeof(global::Together.JsonConverters.ModelInfoTypeJsonConverter), - - typeof(global::Together.JsonConverters.ModelInfoTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.ModelUploadRequestModelTypeJsonConverter), - - typeof(global::Together.JsonConverters.ModelUploadRequestModelTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.ImageResponseDataB64TypeJsonConverter), - - typeof(global::Together.JsonConverters.ImageResponseDataB64TypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.ImageResponseDataUrlTypeJsonConverter), - - typeof(global::Together.JsonConverters.ImageResponseDataUrlTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.JobInfoSuccessResponseStatusJsonConverter), - - typeof(global::Together.JsonConverters.JobInfoSuccessResponseStatusNullableJsonConverter), - - typeof(global::Together.JsonConverters.ToolChoiceTypeJsonConverter), - - typeof(global::Together.JsonConverters.ToolChoiceTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.FilePurposeJsonConverter), - - typeof(global::Together.JsonConverters.FilePurposeNullableJsonConverter), - - typeof(global::Together.JsonConverters.FileTypeJsonConverter), - - typeof(global::Together.JsonConverters.FileTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.FinetuneResponseBatchSizeJsonConverter), - - typeof(global::Together.JsonConverters.FinetuneResponseBatchSizeNullableJsonConverter), - - typeof(global::Together.JsonConverters.FinetuneResponseTrainOnInputsJsonConverter), - - typeof(global::Together.JsonConverters.FinetuneResponseTrainOnInputsNullableJsonConverter), - - typeof(global::Together.JsonConverters.FinetuneJobStatusJsonConverter), - - typeof(global::Together.JsonConverters.FinetuneJobStatusNullableJsonConverter), - - typeof(global::Together.JsonConverters.FinetuneEventLevelsJsonConverter), - - typeof(global::Together.JsonConverters.FinetuneEventLevelsNullableJsonConverter), - - typeof(global::Together.JsonConverters.FinetuneEventTypeJsonConverter), - - typeof(global::Together.JsonConverters.FinetuneEventTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.FullTrainingTypeTypeJsonConverter), - - typeof(global::Together.JsonConverters.FullTrainingTypeTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.LoRATrainingTypeTypeJsonConverter), - - typeof(global::Together.JsonConverters.LoRATrainingTypeTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.TrainingMethodSFTMethodJsonConverter), - - typeof(global::Together.JsonConverters.TrainingMethodSFTMethodNullableJsonConverter), - - typeof(global::Together.JsonConverters.TrainingMethodSFTTrainOnInputsJsonConverter), - - typeof(global::Together.JsonConverters.TrainingMethodSFTTrainOnInputsNullableJsonConverter), - - typeof(global::Together.JsonConverters.TrainingMethodDPOMethodJsonConverter), - - typeof(global::Together.JsonConverters.TrainingMethodDPOMethodNullableJsonConverter), - - typeof(global::Together.JsonConverters.LRSchedulerLrSchedulerTypeJsonConverter), - - typeof(global::Together.JsonConverters.LRSchedulerLrSchedulerTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.HardwareAvailabilityStatusJsonConverter), - - typeof(global::Together.JsonConverters.HardwareAvailabilityStatusNullableJsonConverter), - - typeof(global::Together.JsonConverters.CreateEndpointRequestStateJsonConverter), - - typeof(global::Together.JsonConverters.CreateEndpointRequestStateNullableJsonConverter), - - typeof(global::Together.JsonConverters.DedicatedEndpointTypeJsonConverter), - - typeof(global::Together.JsonConverters.DedicatedEndpointTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.DedicatedEndpointStateJsonConverter), - - typeof(global::Together.JsonConverters.DedicatedEndpointStateNullableJsonConverter), - - typeof(global::Together.JsonConverters.ListEndpointTypeJsonConverter), - - typeof(global::Together.JsonConverters.ListEndpointTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.ListEndpointStateJsonConverter), - - typeof(global::Together.JsonConverters.ListEndpointStateNullableJsonConverter), - - typeof(global::Together.JsonConverters.DisplayorExecuteOutputTypeJsonConverter), - - typeof(global::Together.JsonConverters.DisplayorExecuteOutputTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.ErrorOutputTypeJsonConverter), - - typeof(global::Together.JsonConverters.ErrorOutputTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.ExecuteRequestFileEncodingJsonConverter), - - typeof(global::Together.JsonConverters.ExecuteRequestFileEncodingNullableJsonConverter), - - typeof(global::Together.JsonConverters.ExecuteRequestLanguageJsonConverter), - - typeof(global::Together.JsonConverters.ExecuteRequestLanguageNullableJsonConverter), - - typeof(global::Together.JsonConverters.ExecuteResponseSuccessfulExecutionDataOutputStreamOutputTypeJsonConverter), - - typeof(global::Together.JsonConverters.ExecuteResponseSuccessfulExecutionDataOutputStreamOutputTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.ExecuteResponseSuccessfulExecutionDataOutputErrorOutputTypeJsonConverter), - - typeof(global::Together.JsonConverters.ExecuteResponseSuccessfulExecutionDataOutputErrorOutputTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.ExecuteResponseSuccessfulExecutionDataOutputDisplayorExecuteOutputTypeJsonConverter), - - typeof(global::Together.JsonConverters.ExecuteResponseSuccessfulExecutionDataOutputDisplayorExecuteOutputTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.ExecuteResponseSuccessfulExecutionDataStatusJsonConverter), - - typeof(global::Together.JsonConverters.ExecuteResponseSuccessfulExecutionDataStatusNullableJsonConverter), - - typeof(global::Together.JsonConverters.InterpreterOutputStreamOutputTypeJsonConverter), - - typeof(global::Together.JsonConverters.InterpreterOutputStreamOutputTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.InterpreterOutputErrorOutputTypeJsonConverter), - - typeof(global::Together.JsonConverters.InterpreterOutputErrorOutputTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.InterpreterOutputDisplayorExecuteOutputTypeJsonConverter), - - typeof(global::Together.JsonConverters.InterpreterOutputDisplayorExecuteOutputTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.StreamOutputTypeJsonConverter), - - typeof(global::Together.JsonConverters.StreamOutputTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.BatchJobStatusJsonConverter), - - typeof(global::Together.JsonConverters.BatchJobStatusNullableJsonConverter), - - typeof(global::Together.JsonConverters.EvaluationTypedRequestTypeJsonConverter), - - typeof(global::Together.JsonConverters.EvaluationTypedRequestTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.EvaluationJudgeModelConfigModelSourceJsonConverter), - - typeof(global::Together.JsonConverters.EvaluationJudgeModelConfigModelSourceNullableJsonConverter), - - typeof(global::Together.JsonConverters.EvaluationModelRequestModelSourceJsonConverter), - - typeof(global::Together.JsonConverters.EvaluationModelRequestModelSourceNullableJsonConverter), - - typeof(global::Together.JsonConverters.EvaluationResponseStatusJsonConverter), - - typeof(global::Together.JsonConverters.EvaluationResponseStatusNullableJsonConverter), - - typeof(global::Together.JsonConverters.EvaluationJobTypeJsonConverter), - - typeof(global::Together.JsonConverters.EvaluationJobTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.EvaluationJobStatusJsonConverter), - - typeof(global::Together.JsonConverters.EvaluationJobStatusNullableJsonConverter), - - typeof(global::Together.JsonConverters.VideoStatusJsonConverter), - - typeof(global::Together.JsonConverters.VideoStatusNullableJsonConverter), - - typeof(global::Together.JsonConverters.VideoFrameImageInputFrameJsonConverter), - - typeof(global::Together.JsonConverters.VideoFrameImageInputFrameNullableJsonConverter), - - typeof(global::Together.JsonConverters.VideoOutputFormatJsonConverter), - - typeof(global::Together.JsonConverters.VideoOutputFormatNullableJsonConverter), - - typeof(global::Together.JsonConverters.CreateDeploymentRequestGpuTypeJsonConverter), - - typeof(global::Together.JsonConverters.CreateDeploymentRequestGpuTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.DeploymentResponseItemGpuTypeJsonConverter), - - typeof(global::Together.JsonConverters.DeploymentResponseItemGpuTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.DeploymentStatusJsonConverter), - - typeof(global::Together.JsonConverters.DeploymentStatusNullableJsonConverter), - - typeof(global::Together.JsonConverters.HTTPAutoscalingConfigMetricJsonConverter), - - typeof(global::Together.JsonConverters.HTTPAutoscalingConfigMetricNullableJsonConverter), - - typeof(global::Together.JsonConverters.QueueAutoscalingConfigMetricJsonConverter), - - typeof(global::Together.JsonConverters.QueueAutoscalingConfigMetricNullableJsonConverter), - - typeof(global::Together.JsonConverters.CustomMetricAutoscalingConfigMetricJsonConverter), - - typeof(global::Together.JsonConverters.CustomMetricAutoscalingConfigMetricNullableJsonConverter), - - typeof(global::Together.JsonConverters.UpdateDeploymentRequestGpuTypeJsonConverter), - - typeof(global::Together.JsonConverters.UpdateDeploymentRequestGpuTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.VolumeContentRequestTypeJsonConverter), - - typeof(global::Together.JsonConverters.VolumeContentRequestTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.VolumeContentTypeJsonConverter), - - typeof(global::Together.JsonConverters.VolumeContentTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.VolumeTypeJsonConverter), - - typeof(global::Together.JsonConverters.VolumeTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.QueueCancelResponseStatusJsonConverter), - - typeof(global::Together.JsonConverters.QueueCancelResponseStatusNullableJsonConverter), - - typeof(global::Together.JsonConverters.QueueJobStatusResponseStatusJsonConverter), - - typeof(global::Together.JsonConverters.QueueJobStatusResponseStatusNullableJsonConverter), - - typeof(global::Together.JsonConverters.CreateImagesGenerationsRequestModelJsonConverter), - - typeof(global::Together.JsonConverters.CreateImagesGenerationsRequestModelNullableJsonConverter), - - typeof(global::Together.JsonConverters.CreateImagesGenerationsRequestResponseFormatJsonConverter), - - typeof(global::Together.JsonConverters.CreateImagesGenerationsRequestResponseFormatNullableJsonConverter), - - typeof(global::Together.JsonConverters.CreateImagesGenerationsRequestOutputFormatJsonConverter), - - typeof(global::Together.JsonConverters.CreateImagesGenerationsRequestOutputFormatNullableJsonConverter), - - typeof(global::Together.JsonConverters.CreateFineTunesRequestBatchSizeJsonConverter), - - typeof(global::Together.JsonConverters.CreateFineTunesRequestBatchSizeNullableJsonConverter), - - typeof(global::Together.JsonConverters.CreateFineTunesRequestTrainOnInputsJsonConverter), - - typeof(global::Together.JsonConverters.CreateFineTunesRequestTrainOnInputsNullableJsonConverter), - - typeof(global::Together.JsonConverters.UpdateEndpointRequestStateJsonConverter), - - typeof(global::Together.JsonConverters.UpdateEndpointRequestStateNullableJsonConverter), - - typeof(global::Together.JsonConverters.GetFinetuneDownloadCheckpointJsonConverter), - - typeof(global::Together.JsonConverters.GetFinetuneDownloadCheckpointNullableJsonConverter), - - typeof(global::Together.JsonConverters.RealtimeTtsModelJsonConverter), - - typeof(global::Together.JsonConverters.RealtimeTtsModelNullableJsonConverter), - - typeof(global::Together.JsonConverters.ListEndpointsTypeJsonConverter), - - typeof(global::Together.JsonConverters.ListEndpointsTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.ListEndpointsUsageTypeJsonConverter), - - typeof(global::Together.JsonConverters.ListEndpointsUsageTypeNullableJsonConverter), - - typeof(global::Together.JsonConverters.RealtimeTranscriptionInputAudioFormatJsonConverter), - - typeof(global::Together.JsonConverters.RealtimeTranscriptionInputAudioFormatNullableJsonConverter), - - typeof(global::Together.JsonConverters.GetEvaluationJobStatusAndResultsResponseStatusJsonConverter), - - typeof(global::Together.JsonConverters.GetEvaluationJobStatusAndResultsResponseStatusNullableJsonConverter), - - typeof(global::Together.JsonConverters.CompletionStreamJsonConverter), - - typeof(global::Together.JsonConverters.ResponseFormatJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionMessageParamJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionUserMessageContentJsonConverter), - - typeof(global::Together.JsonConverters.ChatCompletionStreamJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranscriptionResponseJsonConverter), - - typeof(global::Together.JsonConverters.AudioTranslationResponseJsonConverter), - - typeof(global::Together.JsonConverters.AudioSpeechStreamResponseJsonConverter), - - typeof(global::Together.JsonConverters.DataItem3JsonConverter), - - typeof(global::Together.JsonConverters.ErrorJsonConverter), - - typeof(global::Together.JsonConverters.ExecuteResponseJsonConverter), - - typeof(global::Together.JsonConverters.OutputsItemJsonConverter), - - typeof(global::Together.JsonConverters.InterpreterOutputJsonConverter), - - typeof(global::Together.JsonConverters.SessionListResponseJsonConverter), - - typeof(global::Together.JsonConverters.EvaluationModelOrStringJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.AnyOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList>), - - typeof(global::Together.JsonConverters.AnyOfJsonConverter), - - typeof(global::Together.JsonConverters.AnyOfJsonConverter), - - typeof(global::Together.JsonConverters.AllOfJsonConverter), - - typeof(global::Together.JsonConverters.AllOfJsonConverter), - - typeof(global::Together.JsonConverters.AllOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.AllOfJsonConverter), - - typeof(global::Together.JsonConverters.AnyOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter>), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter>), - - typeof(global::Together.JsonConverters.AnyOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter>), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.AnyOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.AnyOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.AnyOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.OneOfJsonConverter), - - typeof(global::Together.JsonConverters.UnixTimestampJsonConverter), - })] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.JsonSerializerContextTypes))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlOptimStepBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(float))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlAdamWOptimizerParams))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlSampleBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlModelInput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlSamplingParams))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(long))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlForwardBackwardBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlTrainingSample))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlLossConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlInputChunk))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlEncodedText))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlListMeta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfStringInt322")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlDType), TypeInfoPropertyName = "RlDType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlLossType), TypeInfoPropertyName = "RlLossType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlCrossEntropyLossParams))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlGRPOLossParams))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlGRPOLossAggregationType), TypeInfoPropertyName = "RlGRPOLossAggregationType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlLossTargetTokens))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlLossMask))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlLossAdvantages))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlLossLogprobs))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlGRPOLossInputs))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlLossInputs))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlOptimStepOperation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlTrainingOperationStatus), TypeInfoPropertyName = "RlTrainingOperationStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlOptimStepResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlTrainingOperationError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlSampleOperation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlSampleResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlSampleRollout))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlSampleSequence))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlForwardBackwardOperation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlForwardBackwardResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlTrainingOperationErrorCode), TypeInfoPropertyName = "RlTrainingOperationErrorCode2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlStartTrainingSessionRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlLoraConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlTrainingSessionStatus), TypeInfoPropertyName = "RlTrainingSessionStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlTrainingSession))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlInferenceCheckpoint))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlTrainingCheckpoint))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTime))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlTrainingSessionsListResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlInferenceCheckpointOperation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlInferenceCheckpointResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlInferenceCheckpointRegistration))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlTrainingCheckpointResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlTrainingCheckpointOperation))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlCheckpointVariant), TypeInfoPropertyName = "RlCheckpointVariant2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlCheckpointFile))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RlCheckpointDownloadResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ErrorResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClusterControlPlaneNode))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClusterCreateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClusterCreateRequestClusterType), TypeInfoPropertyName = "GPUClusterCreateRequestClusterType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClusterCreateRequestGpuType), TypeInfoPropertyName = "GPUClusterCreateRequestGpuType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClusterCreateRequestDriverVersion), TypeInfoPropertyName = "GPUClusterCreateRequestDriverVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClustersSharedVolumeCreateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClusterCreateRequestBillingType), TypeInfoPropertyName = "GPUClusterCreateRequestBillingType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClusterGPUWorkerNode))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClusterInfo))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClusterInfoClusterType), TypeInfoPropertyName = "GPUClusterInfoClusterType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClusterInfoGpuType), TypeInfoPropertyName = "GPUClusterInfoGpuType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClusterInfoDriverVersion), TypeInfoPropertyName = "GPUClusterInfoDriverVersion2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClusterVolume))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClusterInfoStatus), TypeInfoPropertyName = "GPUClusterInfoStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClusterUpdateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClusterUpdateRequestClusterType), TypeInfoPropertyName = "GPUClusterUpdateRequestClusterType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClusters))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.InstanceTypesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.InstanceTypesResponseType), TypeInfoPropertyName = "InstanceTypesResponseType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RegionListResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RegionListResponseRegion))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClustersSharedVolumeDeleteResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClustersSharedVolume))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClustersSharedVolumeStatus), TypeInfoPropertyName = "GPUClustersSharedVolumeStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClustersSharedVolumeUpdateRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClustersSharedVolumes))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ListVoicesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ModelVoices))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ModelVoicesVoice))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ListAvailibilityZonesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RerankRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AnyOf), TypeInfoPropertyName = "AnyOfRerankRequestModelString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RerankRequestModel), TypeInfoPropertyName = "RerankRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf, global::System.Collections.Generic.IList>), TypeInfoPropertyName = "OneOfIListObjectIListString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RerankResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RerankResponseResult))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RerankResponseResultDocument))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.UsageData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ErrorData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ErrorDataError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FinishReason), TypeInfoPropertyName = "FinishReason2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.LogprobsPart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.PromptPartItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.InferenceWarning))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CompletionChoicesDataItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CompletionRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AnyOf), TypeInfoPropertyName = "AnyOfCompletionRequestModelString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CompletionRequestModel), TypeInfoPropertyName = "CompletionRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AnyOf), TypeInfoPropertyName = "AnyOfCompletionRequestSafetyModelString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CompletionRequestSafetyModel), TypeInfoPropertyName = "CompletionRequestSafetyModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CompletionResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CompletionStream), TypeInfoPropertyName = "CompletionStream2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CompletionEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.StreamSentinel))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CompletionChunk))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CompletionToken))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CompletionChoice))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AllOf), TypeInfoPropertyName = "AllOfUsageDataObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AllOf), TypeInfoPropertyName = "AllOfFinishReasonObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CompletionChoiceDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CompletionChoiceDeltaRole), TypeInfoPropertyName = "CompletionChoiceDeltaRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ToolChoice2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CompletionChoiceDeltaFunctionCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionChoicesDataItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionMessage))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AllOf), TypeInfoPropertyName = "AllOfObjectLogprobsPart2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionMessageRole), TypeInfoPropertyName = "ChatCompletionMessageRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionMessageFunctionCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionTool))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionToolType), TypeInfoPropertyName = "ChatCompletionToolType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionToolFunction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionMessageParam), TypeInfoPropertyName = "ChatCompletionMessageParam2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionRequestContextLengthExceededBehavior), TypeInfoPropertyName = "ChatCompletionRequestContextLengthExceededBehavior2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfChatCompletionRequestFunctionCallEnumChatCompletionRequestFunctionCallEnum22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionRequestFunctionCallEnum), TypeInfoPropertyName = "ChatCompletionRequestFunctionCallEnum3")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionRequestFunctionCallEnum2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ResponseFormat), TypeInfoPropertyName = "ResponseFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ResponseFormatText))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ResponseFormatJsonSchema))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ResponseFormatJsonObject))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionRequestResponseFormatDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ToolsPart))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfStringToolChoice22")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionRequestReasoningEffort), TypeInfoPropertyName = "ChatCompletionRequestReasoningEffort2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionRequestReasoning))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ResponseFormatTextType), TypeInfoPropertyName = "ResponseFormatTextType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ResponseFormatJsonObjectType), TypeInfoPropertyName = "ResponseFormatJsonObjectType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ResponseFormatJsonSchemaType), TypeInfoPropertyName = "ResponseFormatJsonSchemaType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ResponseFormatJsonSchemaJsonSchema))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ResponseFormatJsonSchemaSchema))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionSystemMessageParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionUserMessageParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionAssistantMessageParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionToolMessageParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionFunctionMessageParam))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionSystemMessageParamRole), TypeInfoPropertyName = "ChatCompletionSystemMessageParamRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionUserMessageContent), TypeInfoPropertyName = "ChatCompletionUserMessageContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionUserMessageParamRole), TypeInfoPropertyName = "ChatCompletionUserMessageParamRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfChatCompletionUserMessageContentMultimodalItemVariant1ChatCompletionUserMessageContentMultimodalItemVariant2ChatCompletionUserMessageContentMultimodalItemVideoChatCompletionUserMessageContentMultimodalItemAudioChatCompletionUserMessageContentMultimodalItemInputAudio2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionUserMessageContentMultimodalItemVariant1))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionUserMessageContentMultimodalItemVariant1Type), TypeInfoPropertyName = "ChatCompletionUserMessageContentMultimodalItemVariant1Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionUserMessageContentMultimodalItemVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionUserMessageContentMultimodalItemVariant2Type), TypeInfoPropertyName = "ChatCompletionUserMessageContentMultimodalItemVariant2Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionUserMessageContentMultimodalItemVariant2ImageUrl))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionUserMessageContentMultimodalItemVideo))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionUserMessageContentMultimodalItemVideoType), TypeInfoPropertyName = "ChatCompletionUserMessageContentMultimodalItemVideoType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionUserMessageContentMultimodalItemVideoVideoUrl))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionUserMessageContentMultimodalItemAudio))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionUserMessageContentMultimodalItemAudioType), TypeInfoPropertyName = "ChatCompletionUserMessageContentMultimodalItemAudioType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionUserMessageContentMultimodalItemAudioAudioUrl))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionUserMessageContentMultimodalItemInputAudio))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionUserMessageContentMultimodalItemInputAudioType), TypeInfoPropertyName = "ChatCompletionUserMessageContentMultimodalItemInputAudioType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionUserMessageContentMultimodalItemInputAudioInputAudio))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionUserMessageContentMultimodalItemInputAudioInputAudioFormat), TypeInfoPropertyName = "ChatCompletionUserMessageContentMultimodalItemInputAudioInputAudioFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionAssistantMessageParamRole), TypeInfoPropertyName = "ChatCompletionAssistantMessageParamRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionAssistantMessageParamFunctionCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionFunctionMessageParamRole), TypeInfoPropertyName = "ChatCompletionFunctionMessageParamRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionToolMessageParamRole), TypeInfoPropertyName = "ChatCompletionToolMessageParamRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionStream), TypeInfoPropertyName = "ChatCompletionStream2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionChunk))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionChunkChoice))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionChunkChoiceDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionChunkChoiceDeltaRole), TypeInfoPropertyName = "ChatCompletionChunkChoiceDeltaRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionChunkChoiceDeltaFunctionCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioSpeechRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AnyOf), TypeInfoPropertyName = "AnyOfAudioSpeechRequestModelString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioSpeechRequestModel), TypeInfoPropertyName = "AudioSpeechRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioSpeechRequestResponseFormat), TypeInfoPropertyName = "AudioSpeechRequestResponseFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioSpeechRequestLanguage), TypeInfoPropertyName = "AudioSpeechRequestLanguage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioSpeechRequestResponseEncoding), TypeInfoPropertyName = "AudioSpeechRequestResponseEncoding2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranscriptionRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfByteArrayString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranscriptionRequestModel), TypeInfoPropertyName = "AudioTranscriptionRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranscriptionRequestResponseFormat), TypeInfoPropertyName = "AudioTranscriptionRequestResponseFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf>), TypeInfoPropertyName = "OneOfAudioTranscriptionRequestTimestampGranularitiesIListAudioTranscriptionRequestTimestampGranularitie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranscriptionRequestTimestampGranularities), TypeInfoPropertyName = "AudioTranscriptionRequestTimestampGranularities2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranscriptionRequestTimestampGranularitie), TypeInfoPropertyName = "AudioTranscriptionRequestTimestampGranularitie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranscriptionResponse), TypeInfoPropertyName = "AudioTranscriptionResponse2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranscriptionJsonResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranscriptionVerboseJsonResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranscriptionVerboseJsonResponseTask), TypeInfoPropertyName = "AudioTranscriptionVerboseJsonResponseTask2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranscriptionSegment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranscriptionWord))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranscriptionSpeakerSegment))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranslationRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranslationRequestModel), TypeInfoPropertyName = "AudioTranslationRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranslationRequestResponseFormat), TypeInfoPropertyName = "AudioTranslationRequestResponseFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf>), TypeInfoPropertyName = "OneOfAudioTranslationRequestTimestampGranularitiesIListAudioTranslationRequestTimestampGranularitie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranslationRequestTimestampGranularities), TypeInfoPropertyName = "AudioTranslationRequestTimestampGranularities2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranslationRequestTimestampGranularitie), TypeInfoPropertyName = "AudioTranslationRequestTimestampGranularitie2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranslationResponse), TypeInfoPropertyName = "AudioTranslationResponse2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranslationJsonResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranslationVerboseJsonResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioTranslationVerboseJsonResponseTask), TypeInfoPropertyName = "AudioTranslationVerboseJsonResponseTask2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioSpeechStreamResponse), TypeInfoPropertyName = "AudioSpeechStreamResponse2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioSpeechStreamEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AudioSpeechStreamChunk))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.StreamSentinelData), TypeInfoPropertyName = "StreamSentinelData2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionToken))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionChoice))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionChoiceDelta))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionChoiceDeltaRole), TypeInfoPropertyName = "ChatCompletionChoiceDeltaRole2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ChatCompletionChoiceDeltaFunctionCall))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EmbeddingsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AnyOf), TypeInfoPropertyName = "AnyOfEmbeddingsRequestModelString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EmbeddingsRequestModel), TypeInfoPropertyName = "EmbeddingsRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf>), TypeInfoPropertyName = "OneOfStringIListString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EmbeddingsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EmbeddingsResponseDataItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ModelInfo))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ModelInfoType), TypeInfoPropertyName = "ModelInfoType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.Pricing))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ModelUploadRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ModelUploadRequestModelType), TypeInfoPropertyName = "ModelUploadRequestModelType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ModelUploadSuccessResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ModelUploadSuccessResponseData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ImageResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DataItem3), TypeInfoPropertyName = "DataItem32")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ImageResponseDataB64))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ImageResponseDataUrl))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ImageResponseDataItemDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ImageResponseDataB64Type), TypeInfoPropertyName = "ImageResponseDataB64Type2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ImageResponseDataUrlType), TypeInfoPropertyName = "ImageResponseDataUrlType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.JobInfoSuccessResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.JobInfoSuccessResponseStatus), TypeInfoPropertyName = "JobInfoSuccessResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.JobInfoSuccessResponseStatusUpdate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.JobInfoSuccessResponseArgs))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.JobsInfoSuccessResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ToolsPartFunction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ToolChoiceType), TypeInfoPropertyName = "ToolChoiceType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ToolChoiceFunction))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FileResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FilePurpose), TypeInfoPropertyName = "FilePurpose2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FileType), TypeInfoPropertyName = "FileType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FileList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FileDeleteResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FinetuneResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Guid))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfInt32FinetuneResponseBatchSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FinetuneResponseBatchSize), TypeInfoPropertyName = "FinetuneResponseBatchSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.LRScheduler))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfBooleanFinetuneResponseTrainOnInputs2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FinetuneResponseTrainOnInputs), TypeInfoPropertyName = "FinetuneResponseTrainOnInputs2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfTrainingMethodSFTTrainingMethodDPO2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.TrainingMethodSFT))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.TrainingMethodDPO))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfFullTrainingTypeLoRATrainingType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FullTrainingType))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.LoRATrainingType))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.MultimodalParams))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FinetuneJobStatus), TypeInfoPropertyName = "FinetuneJobStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FineTuneEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FineTuneProgress))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FinetuneResponseTruncated))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FinetuneDeleteResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FineTuneModelLimits))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FineTuneModelLimitsFullTraining))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FineTuneModelLimitsLoraTraining))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FinetuneEventLevels), TypeInfoPropertyName = "FinetuneEventLevels2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FinetuneEventType), TypeInfoPropertyName = "FinetuneEventType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FinetuneTruncatedList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FinetuneListEvents))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FinetuneListCheckpoints))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FineTuneCheckpoint))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FullTrainingTypeType), TypeInfoPropertyName = "FullTrainingTypeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.LoRATrainingTypeType), TypeInfoPropertyName = "LoRATrainingTypeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.TrainingMethodSFTMethod), TypeInfoPropertyName = "TrainingMethodSFTMethod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfBooleanTrainingMethodSFTTrainOnInputs2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.TrainingMethodSFTTrainOnInputs), TypeInfoPropertyName = "TrainingMethodSFTTrainOnInputs2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.TrainingMethodDPOMethod), TypeInfoPropertyName = "TrainingMethodDPOMethod2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.LRSchedulerLrSchedulerType), TypeInfoPropertyName = "LRSchedulerLrSchedulerType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfLinearLRSchedulerArgsCosineLRSchedulerArgs2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.LinearLRSchedulerArgs))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CosineLRSchedulerArgs))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.Autoscaling))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.HardwareSpec))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EndpointPricing))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.HardwareAvailability))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.HardwareAvailabilityStatus), TypeInfoPropertyName = "HardwareAvailabilityStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.HardwareWithStatus))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateEndpointRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateEndpointRequestState), TypeInfoPropertyName = "CreateEndpointRequestState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DedicatedEndpoint))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DedicatedEndpointType), TypeInfoPropertyName = "DedicatedEndpointType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DedicatedEndpointState), TypeInfoPropertyName = "DedicatedEndpointState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ListEndpoint))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ListEndpointType), TypeInfoPropertyName = "ListEndpointType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ListEndpointState), TypeInfoPropertyName = "ListEndpointState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DisplayorExecuteOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DisplayorExecuteOutputData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DisplayorExecuteOutputType), TypeInfoPropertyName = "DisplayorExecuteOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.Error), TypeInfoPropertyName = "Error2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ErrorOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ErrorOutputType), TypeInfoPropertyName = "ErrorOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ExecuteRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ExecuteRequestFile))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ExecuteRequestFileEncoding), TypeInfoPropertyName = "ExecuteRequestFileEncoding2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ExecuteRequestLanguage), TypeInfoPropertyName = "ExecuteRequestLanguage2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ExecuteResponse), TypeInfoPropertyName = "ExecuteResponse2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ExecuteResponseSuccessfulExecution))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ExecuteResponseSuccessfulExecutionData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OutputsItem), TypeInfoPropertyName = "OutputsItem2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputStreamOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputStreamOutputType), TypeInfoPropertyName = "ExecuteResponseSuccessfulExecutionDataOutputStreamOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputErrorOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputErrorOutputType), TypeInfoPropertyName = "ExecuteResponseSuccessfulExecutionDataOutputErrorOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputDisplayorExecuteOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputDisplayorExecuteOutputData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputDisplayorExecuteOutputType), TypeInfoPropertyName = "ExecuteResponseSuccessfulExecutionDataOutputDisplayorExecuteOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ExecuteResponseSuccessfulExecutionDataOutputDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ExecuteResponseSuccessfulExecutionDataStatus), TypeInfoPropertyName = "ExecuteResponseSuccessfulExecutionDataStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ExecuteResponseFailedExecution))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfStringObject2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.InterpreterOutput), TypeInfoPropertyName = "InterpreterOutput2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.InterpreterOutputStreamOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.InterpreterOutputStreamOutputType), TypeInfoPropertyName = "InterpreterOutputStreamOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.InterpreterOutputErrorOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.InterpreterOutputErrorOutputType), TypeInfoPropertyName = "InterpreterOutputErrorOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.InterpreterOutputDisplayorExecuteOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.InterpreterOutputDisplayorExecuteOutputData))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.InterpreterOutputDisplayorExecuteOutputType), TypeInfoPropertyName = "InterpreterOutputDisplayorExecuteOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.InterpreterOutputDiscriminator))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.Response))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.SessionListResponse), TypeInfoPropertyName = "SessionListResponse2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.SessionListResponseResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.SessionListResponseVariant2))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.SessionListResponseVariant2Data))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.SessionListResponseVariant2DataSession))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.StreamOutput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.StreamOutputType), TypeInfoPropertyName = "StreamOutputType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateBatchRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.BatchErrorResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.BatchJobWithWarning))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.BatchJob))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.BatchJobStatus), TypeInfoPropertyName = "BatchJobStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationTypedRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationTypedRequestType), TypeInfoPropertyName = "EvaluationTypedRequestType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfEvaluationClassifyParametersEvaluationScoreParametersEvaluationCompareParameters2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationClassifyParameters))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationScoreParameters))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationCompareParameters))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationJudgeModelConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationModelOrString), TypeInfoPropertyName = "EvaluationModelOrString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationJudgeModelConfigModelSource), TypeInfoPropertyName = "EvaluationJudgeModelConfigModelSource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationModelRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationModelRequestModelSource), TypeInfoPropertyName = "EvaluationModelRequestModelSource2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationResponseStatus), TypeInfoPropertyName = "EvaluationResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationJob))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationJobType), TypeInfoPropertyName = "EvaluationJobType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationJobStatus), TypeInfoPropertyName = "EvaluationJobStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationJobStatusUpdate))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfEvaluationClassifyResultsEvaluationScoreResultsEvaluationCompareResultsEvaluationJobResults2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationClassifyResults))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationScoreResults))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationCompareResults))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationJobResults))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EvaluationScoreResultsAggregatedScores))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateVideoBody))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VideoOutputFormat), TypeInfoPropertyName = "VideoOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VideoFrameImageInput))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VideoStatus), TypeInfoPropertyName = "VideoStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AnyOf), TypeInfoPropertyName = "AnyOfDoubleVideoFrameImageInputFrame2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VideoFrameImageInputFrame), TypeInfoPropertyName = "VideoFrameImageInputFrame2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VideoJob))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VideoJobError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VideoJobOutputs))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ContainerStatus))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateDeploymentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfHTTPAutoscalingConfigQueueAutoscalingConfigCustomMetricAutoscalingConfig2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.HTTPAutoscalingConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.QueueAutoscalingConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CustomMetricAutoscalingConfig))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.EnvironmentVariable))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateDeploymentRequestGpuType), TypeInfoPropertyName = "CreateDeploymentRequestGpuType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VolumeMount))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateSecretRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateVolumeRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VolumeContentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VolumeType), TypeInfoPropertyName = "VolumeType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeploymentListResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeploymentResponseItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeploymentLogs))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeploymentResponseItemGpuType), TypeInfoPropertyName = "DeploymentResponseItemGpuType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ReplicaEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.DeploymentStatus), TypeInfoPropertyName = "DeploymentStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.HTTPAutoscalingConfigMetric), TypeInfoPropertyName = "HTTPAutoscalingConfigMetric2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.QueueAutoscalingConfigMetric), TypeInfoPropertyName = "QueueAutoscalingConfigMetric2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CustomMetricAutoscalingConfigMetric), TypeInfoPropertyName = "CustomMetricAutoscalingConfigMetric2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.KubernetesEvent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ListSecretsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.SecretResponseItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ListVolumesResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VolumeResponseItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.UpdateDeploymentRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.UpdateDeploymentRequestGpuType), TypeInfoPropertyName = "UpdateDeploymentRequestGpuType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.UpdateSecretRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.UpdateVolumeRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VolumeContent))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VersionHistoryItem))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VolumeContentRequestType), TypeInfoPropertyName = "VolumeContentRequestType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.FileInfo))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.VolumeContentType), TypeInfoPropertyName = "VolumeContentType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.QueueError))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.QueueMetricsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.QueueCancelRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.QueueCancelResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.QueueCancelResponseStatus), TypeInfoPropertyName = "QueueCancelResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.QueueJobRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.QueueJobResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.QueueJobStatusResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.QueueJobStatusResponseStatus), TypeInfoPropertyName = "QueueJobStatusResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateImagesGenerationsRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AnyOf), TypeInfoPropertyName = "AnyOfCreateImagesGenerationsRequestModelString2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateImagesGenerationsRequestModel), TypeInfoPropertyName = "CreateImagesGenerationsRequestModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateImagesGenerationsRequestResponseFormat), TypeInfoPropertyName = "CreateImagesGenerationsRequestResponseFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateImagesGenerationsRequestOutputFormat), TypeInfoPropertyName = "CreateImagesGenerationsRequestOutputFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateImagesGenerationsRequestImageLora))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateFilesUploadRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateFineTunesRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfInt32CreateFineTunesRequestBatchSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateFineTunesRequestBatchSize), TypeInfoPropertyName = "CreateFineTunesRequestBatchSize2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfBooleanCreateFineTunesRequestTrainOnInputs2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateFineTunesRequestTrainOnInputs), TypeInfoPropertyName = "CreateFineTunesRequestTrainOnInputs2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.AnyOf), TypeInfoPropertyName = "AnyOfFullTrainingTypeLoRATrainingType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateFineTunesEstimatePriceRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.UpdateEndpointRequest))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.UpdateEndpointRequestState), TypeInfoPropertyName = "UpdateEndpointRequestState2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GetFinetuneDownloadCheckpoint), TypeInfoPropertyName = "GetFinetuneDownloadCheckpoint2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RealtimeTtsModel), TypeInfoPropertyName = "RealtimeTtsModel2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ListEndpointsType), TypeInfoPropertyName = "ListEndpointsType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ListEndpointsUsageType), TypeInfoPropertyName = "ListEndpointsUsageType2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.RealtimeTranscriptionInputAudioFormat), TypeInfoPropertyName = "RealtimeTranscriptionInputAudioFormat2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.CreateFineTunesEstimatePriceResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GetFineTunesModelsSupportedResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GetFineTunesModelsLimitsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GPUClusterServiceDeleteResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ListEndpointsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.ListHardwareResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GetModelListResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GetEvaluationJobStatusAndResultsResponse))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.GetEvaluationJobStatusAndResultsResponseStatus), TypeInfoPropertyName = "GetEvaluationJobStatusAndResultsResponseStatus2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf), TypeInfoPropertyName = "OneOfEvaluationClassifyResultsEvaluationScoreResultsEvaluationCompareResults2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf, global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::Together.OneOf>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - public sealed partial class SourceGenerationContext : global::System.Text.Json.Serialization.JsonSerializerContext - { - } -} \ No newline at end of file diff --git a/src/libs/Together/Generated/Together.JsonSerializerContextTypes.g.cs b/src/libs/Together/Generated/Together.JsonSerializerContextTypes.g.cs deleted file mode 100644 index e5440cc5..00000000 --- a/src/libs/Together/Generated/Together.JsonSerializerContextTypes.g.cs +++ /dev/null @@ -1,2446 +0,0 @@ - -#nullable enable - -#pragma warning disable CS0618 // Type or member is obsolete - -namespace Together -{ - /// - /// - /// - public sealed partial class JsonSerializerContextTypes - { - /// - /// - /// - public global::System.Collections.Generic.Dictionary? StringStringDictionary { get; set; } - - /// - /// - /// - public global::System.Collections.Generic.Dictionary? StringObjectDictionary { get; set; } - - /// - /// - /// - public global::System.Text.Json.JsonElement? JsonElement { get; set; } - - /// - /// - /// - public global::Together.RlOptimStepBody? Type0 { get; set; } - /// - /// - /// - public float? Type1 { get; set; } - /// - /// - /// - public global::Together.RlAdamWOptimizerParams? Type2 { get; set; } - /// - /// - /// - public global::Together.RlSampleBody? Type3 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type4 { get; set; } - /// - /// - /// - public global::Together.RlModelInput? Type5 { get; set; } - /// - /// - /// - public global::Together.RlSamplingParams? Type6 { get; set; } - /// - /// - /// - public long? Type7 { get; set; } - /// - /// - /// - public global::Together.RlForwardBackwardBody? Type8 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type9 { get; set; } - /// - /// - /// - public global::Together.RlTrainingSample? Type10 { get; set; } - /// - /// - /// - public global::Together.RlLossConfig? Type11 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type12 { get; set; } - /// - /// - /// - public global::Together.RlInputChunk? Type13 { get; set; } - /// - /// - /// - public int? Type14 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type15 { get; set; } - /// - /// - /// - public string? Type16 { get; set; } - /// - /// - /// - public global::Together.RlEncodedText? Type17 { get; set; } - /// - /// - /// - public global::Together.RlListMeta? Type18 { get; set; } - /// - /// - /// - public bool? Type19 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type20 { get; set; } - /// - /// - /// - public global::Together.OneOf? Type21 { get; set; } - /// - /// - /// - public global::Together.RlDType? Type22 { get; set; } - /// - /// - /// - public global::Together.RlLossType? Type23 { get; set; } - /// - /// - /// - public global::Together.RlCrossEntropyLossParams? Type24 { get; set; } - /// - /// - /// - public global::Together.RlGRPOLossParams? Type25 { get; set; } - /// - /// - /// - public global::Together.RlGRPOLossAggregationType? Type26 { get; set; } - /// - /// - /// - public global::Together.RlLossTargetTokens? Type27 { get; set; } - /// - /// - /// - public global::Together.RlLossMask? Type28 { get; set; } - /// - /// - /// - public global::Together.RlLossAdvantages? Type29 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type30 { get; set; } - /// - /// - /// - public global::Together.RlLossLogprobs? Type31 { get; set; } - /// - /// - /// - public global::Together.RlGRPOLossInputs? Type32 { get; set; } - /// - /// - /// - public global::Together.RlLossInputs? Type33 { get; set; } - /// - /// - /// - public global::Together.RlOptimStepOperation? Type34 { get; set; } - /// - /// - /// - public global::Together.RlTrainingOperationStatus? Type35 { get; set; } - /// - /// - /// - public global::Together.RlOptimStepResult? Type36 { get; set; } - /// - /// - /// - public global::Together.RlTrainingOperationError? Type37 { get; set; } - /// - /// - /// - public global::Together.RlSampleOperation? Type38 { get; set; } - /// - /// - /// - public global::Together.RlSampleResult? Type39 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type40 { get; set; } - /// - /// - /// - public global::Together.RlSampleRollout? Type41 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type42 { get; set; } - /// - /// - /// - public global::Together.RlSampleSequence? Type43 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type44 { get; set; } - /// - /// - /// - public double? Type45 { get; set; } - /// - /// - /// - public global::Together.RlForwardBackwardOperation? Type46 { get; set; } - /// - /// - /// - public global::Together.RlForwardBackwardResult? Type47 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.Dictionary? Type48 { get; set; } - /// - /// - /// - public global::Together.RlTrainingOperationErrorCode? Type49 { get; set; } - /// - /// - /// - public global::Together.RlStartTrainingSessionRequest? Type50 { get; set; } - /// - /// - /// - public global::Together.RlLoraConfig? Type51 { get; set; } - /// - /// - /// - public global::Together.RlTrainingSessionStatus? Type52 { get; set; } - /// - /// - /// - public global::Together.RlTrainingSession? Type53 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type54 { get; set; } - /// - /// - /// - public global::Together.RlInferenceCheckpoint? Type55 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type56 { get; set; } - /// - /// - /// - public global::Together.RlTrainingCheckpoint? Type57 { get; set; } - /// - /// - /// - public global::System.DateTime? Type58 { get; set; } - /// - /// - /// - public global::Together.RlTrainingSessionsListResponse? Type59 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type60 { get; set; } - /// - /// - /// - public global::Together.RlInferenceCheckpointOperation? Type61 { get; set; } - /// - /// - /// - public global::Together.RlInferenceCheckpointResult? Type62 { get; set; } - /// - /// - /// - public global::Together.RlInferenceCheckpointRegistration? Type63 { get; set; } - /// - /// - /// - public global::Together.RlTrainingCheckpointResult? Type64 { get; set; } - /// - /// - /// - public global::Together.RlTrainingCheckpointOperation? Type65 { get; set; } - /// - /// - /// - public global::Together.RlCheckpointVariant? Type66 { get; set; } - /// - /// - /// - public global::Together.RlCheckpointFile? Type67 { get; set; } - /// - /// - /// - public global::Together.RlCheckpointDownloadResponse? Type68 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type69 { get; set; } - /// - /// - /// - public global::Together.ErrorResponse? Type70 { get; set; } - /// - /// - /// - public global::Together.GPUClusterControlPlaneNode? Type71 { get; set; } - /// - /// - /// - public global::Together.GPUClusterCreateRequest? Type72 { get; set; } - /// - /// - /// - public global::Together.GPUClusterCreateRequestClusterType? Type73 { get; set; } - /// - /// - /// - public global::Together.GPUClusterCreateRequestGpuType? Type74 { get; set; } - /// - /// - /// - public global::Together.GPUClusterCreateRequestDriverVersion? Type75 { get; set; } - /// - /// - /// - public global::Together.GPUClustersSharedVolumeCreateRequest? Type76 { get; set; } - /// - /// - /// - public global::Together.GPUClusterCreateRequestBillingType? Type77 { get; set; } - /// - /// - /// - public global::Together.GPUClusterGPUWorkerNode? Type78 { get; set; } - /// - /// - /// - public global::Together.GPUClusterInfo? Type79 { get; set; } - /// - /// - /// - public global::Together.GPUClusterInfoClusterType? Type80 { get; set; } - /// - /// - /// - public global::Together.GPUClusterInfoGpuType? Type81 { get; set; } - /// - /// - /// - public global::Together.GPUClusterInfoDriverVersion? Type82 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type83 { get; set; } - /// - /// - /// - public global::Together.GPUClusterVolume? Type84 { get; set; } - /// - /// - /// - public global::Together.GPUClusterInfoStatus? Type85 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type86 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type87 { get; set; } - /// - /// - /// - public global::Together.GPUClusterUpdateRequest? Type88 { get; set; } - /// - /// - /// - public global::Together.GPUClusterUpdateRequestClusterType? Type89 { get; set; } - /// - /// - /// - public global::Together.GPUClusters? Type90 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type91 { get; set; } - /// - /// - /// - public global::Together.InstanceTypesResponse? Type92 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type93 { get; set; } - /// - /// - /// - public global::Together.InstanceTypesResponseType? Type94 { get; set; } - /// - /// - /// - public global::Together.RegionListResponse? Type95 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type96 { get; set; } - /// - /// - /// - public global::Together.RegionListResponseRegion? Type97 { get; set; } - /// - /// - /// - public global::Together.GPUClustersSharedVolumeDeleteResponse? Type98 { get; set; } - /// - /// - /// - public global::Together.GPUClustersSharedVolume? Type99 { get; set; } - /// - /// - /// - public global::Together.GPUClustersSharedVolumeStatus? Type100 { get; set; } - /// - /// - /// - public global::Together.GPUClustersSharedVolumeUpdateRequest? Type101 { get; set; } - /// - /// - /// - public global::Together.GPUClustersSharedVolumes? Type102 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type103 { get; set; } - /// - /// - /// - public global::Together.ListVoicesResponse? Type104 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type105 { get; set; } - /// - /// - /// - public global::Together.ModelVoices? Type106 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type107 { get; set; } - /// - /// - /// - public global::Together.ModelVoicesVoice? Type108 { get; set; } - /// - /// - /// - public global::Together.ListAvailibilityZonesResponse? Type109 { get; set; } - /// - /// - /// - public global::Together.RerankRequest? Type110 { get; set; } - /// - /// - /// - public global::Together.AnyOf? Type111 { get; set; } - /// - /// - /// - public global::Together.RerankRequestModel? Type112 { get; set; } - /// - /// - /// - public global::Together.OneOf, global::System.Collections.Generic.IList>? Type113 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type114 { get; set; } - /// - /// - /// - public object? Type115 { get; set; } - /// - /// - /// - public global::Together.RerankResponse? Type116 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type117 { get; set; } - /// - /// - /// - public global::Together.RerankResponseResult? Type118 { get; set; } - /// - /// - /// - public global::Together.RerankResponseResultDocument? Type119 { get; set; } - /// - /// - /// - public global::Together.UsageData? Type120 { get; set; } - /// - /// - /// - public global::Together.ErrorData? Type121 { get; set; } - /// - /// - /// - public global::Together.ErrorDataError? Type122 { get; set; } - /// - /// - /// - public global::Together.FinishReason? Type123 { get; set; } - /// - /// - /// - public global::Together.LogprobsPart? Type124 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type125 { get; set; } - /// - /// - /// - public global::Together.PromptPartItem? Type126 { get; set; } - /// - /// - /// - public global::Together.InferenceWarning? Type127 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type128 { get; set; } - /// - /// - /// - public global::Together.CompletionChoicesDataItem? Type129 { get; set; } - /// - /// - /// - public global::Together.CompletionRequest? Type130 { get; set; } - /// - /// - /// - public global::Together.AnyOf? Type131 { get; set; } - /// - /// - /// - public global::Together.CompletionRequestModel? Type132 { get; set; } - /// - /// - /// - public global::Together.AnyOf? Type133 { get; set; } - /// - /// - /// - public global::Together.CompletionRequestSafetyModel? Type134 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.Dictionary? Type135 { get; set; } - /// - /// - /// - public global::Together.CompletionResponse? Type136 { get; set; } - /// - /// - /// - public global::Together.CompletionStream? Type137 { get; set; } - /// - /// - /// - public global::Together.CompletionEvent? Type138 { get; set; } - /// - /// - /// - public global::Together.StreamSentinel? Type139 { get; set; } - /// - /// - /// - public global::Together.CompletionChunk? Type140 { get; set; } - /// - /// - /// - public global::Together.CompletionToken? Type141 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type142 { get; set; } - /// - /// - /// - public global::Together.CompletionChoice? Type143 { get; set; } - /// - /// - /// - public global::Together.AllOf? Type144 { get; set; } - /// - /// - /// - public global::Together.AllOf? Type145 { get; set; } - /// - /// - /// - public global::Together.CompletionChoiceDelta? Type146 { get; set; } - /// - /// - /// - public global::Together.CompletionChoiceDeltaRole? Type147 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type148 { get; set; } - /// - /// - /// - public global::Together.ToolChoice2? Type149 { get; set; } - /// - /// - /// - public global::Together.CompletionChoiceDeltaFunctionCall? Type150 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type151 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionChoicesDataItem? Type152 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionMessage? Type153 { get; set; } - /// - /// - /// - public global::Together.AllOf? Type154 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionMessageRole? Type155 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionMessageFunctionCall? Type156 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionTool? Type157 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionToolType? Type158 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionToolFunction? Type159 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionRequest? Type160 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type161 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionMessageParam? Type162 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionRequestContextLengthExceededBehavior? Type163 { get; set; } - /// - /// - /// - public global::Together.OneOf? Type164 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionRequestFunctionCallEnum? Type165 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionRequestFunctionCallEnum2? Type166 { get; set; } - /// - /// - /// - public global::Together.ResponseFormat? Type167 { get; set; } - /// - /// - /// - public global::Together.ResponseFormatText? Type168 { get; set; } - /// - /// - /// - public global::Together.ResponseFormatJsonSchema? Type169 { get; set; } - /// - /// - /// - public global::Together.ResponseFormatJsonObject? Type170 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionRequestResponseFormatDiscriminator? Type171 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type172 { get; set; } - /// - /// - /// - public global::Together.ToolsPart? Type173 { get; set; } - /// - /// - /// - public global::Together.OneOf? Type174 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionRequestReasoningEffort? Type175 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionRequestReasoning? Type176 { get; set; } - /// - /// - /// - public global::Together.ResponseFormatTextType? Type177 { get; set; } - /// - /// - /// - public global::Together.ResponseFormatJsonObjectType? Type178 { get; set; } - /// - /// - /// - public global::Together.ResponseFormatJsonSchemaType? Type179 { get; set; } - /// - /// - /// - public global::Together.ResponseFormatJsonSchemaJsonSchema? Type180 { get; set; } - /// - /// - /// - public global::Together.ResponseFormatJsonSchemaSchema? Type181 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionSystemMessageParam? Type182 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionUserMessageParam? Type183 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionAssistantMessageParam? Type184 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionToolMessageParam? Type185 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionFunctionMessageParam? Type186 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionSystemMessageParamRole? Type187 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionUserMessageContent? Type188 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionUserMessageParamRole? Type189 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type190 { get; set; } - /// - /// - /// - public global::Together.OneOf? Type191 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionUserMessageContentMultimodalItemVariant1? Type192 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionUserMessageContentMultimodalItemVariant1Type? Type193 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionUserMessageContentMultimodalItemVariant2? Type194 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionUserMessageContentMultimodalItemVariant2Type? Type195 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionUserMessageContentMultimodalItemVariant2ImageUrl? Type196 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionUserMessageContentMultimodalItemVideo? Type197 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionUserMessageContentMultimodalItemVideoType? Type198 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionUserMessageContentMultimodalItemVideoVideoUrl? Type199 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionUserMessageContentMultimodalItemAudio? Type200 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionUserMessageContentMultimodalItemAudioType? Type201 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionUserMessageContentMultimodalItemAudioAudioUrl? Type202 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionUserMessageContentMultimodalItemInputAudio? Type203 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionUserMessageContentMultimodalItemInputAudioType? Type204 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionUserMessageContentMultimodalItemInputAudioInputAudio? Type205 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionUserMessageContentMultimodalItemInputAudioInputAudioFormat? Type206 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionAssistantMessageParamRole? Type207 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionAssistantMessageParamFunctionCall? Type208 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionFunctionMessageParamRole? Type209 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionToolMessageParamRole? Type210 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionResponse? Type211 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type212 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionStream? Type213 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionEvent? Type214 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionChunk? Type215 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type216 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionChunkChoice? Type217 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionChunkChoiceDelta? Type218 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionChunkChoiceDeltaRole? Type219 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionChunkChoiceDeltaFunctionCall? Type220 { get; set; } - /// - /// - /// - public global::Together.AudioSpeechRequest? Type221 { get; set; } - /// - /// - /// - public global::Together.AnyOf? Type222 { get; set; } - /// - /// - /// - public global::Together.AudioSpeechRequestModel? Type223 { get; set; } - /// - /// - /// - public global::Together.AudioSpeechRequestResponseFormat? Type224 { get; set; } - /// - /// - /// - public global::Together.AudioSpeechRequestLanguage? Type225 { get; set; } - /// - /// - /// - public global::Together.AudioSpeechRequestResponseEncoding? Type226 { get; set; } - /// - /// - /// - public global::Together.AudioTranscriptionRequest? Type227 { get; set; } - /// - /// - /// - public global::Together.OneOf? Type228 { get; set; } - /// - /// - /// - public byte[]? Type229 { get; set; } - /// - /// - /// - public global::Together.AudioTranscriptionRequestModel? Type230 { get; set; } - /// - /// - /// - public global::Together.AudioTranscriptionRequestResponseFormat? Type231 { get; set; } - /// - /// - /// - public global::Together.OneOf>? Type232 { get; set; } - /// - /// - /// - public global::Together.AudioTranscriptionRequestTimestampGranularities? Type233 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type234 { get; set; } - /// - /// - /// - public global::Together.AudioTranscriptionRequestTimestampGranularitie? Type235 { get; set; } - /// - /// - /// - public global::Together.AudioTranscriptionResponse? Type236 { get; set; } - /// - /// - /// - public global::Together.AudioTranscriptionJsonResponse? Type237 { get; set; } - /// - /// - /// - public global::Together.AudioTranscriptionVerboseJsonResponse? Type238 { get; set; } - /// - /// - /// - public global::Together.AudioTranscriptionVerboseJsonResponseTask? Type239 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type240 { get; set; } - /// - /// - /// - public global::Together.AudioTranscriptionSegment? Type241 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type242 { get; set; } - /// - /// - /// - public global::Together.AudioTranscriptionWord? Type243 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type244 { get; set; } - /// - /// - /// - public global::Together.AudioTranscriptionSpeakerSegment? Type245 { get; set; } - /// - /// - /// - public global::Together.AudioTranslationRequest? Type246 { get; set; } - /// - /// - /// - public global::Together.AudioTranslationRequestModel? Type247 { get; set; } - /// - /// - /// - public global::Together.AudioTranslationRequestResponseFormat? Type248 { get; set; } - /// - /// - /// - public global::Together.OneOf>? Type249 { get; set; } - /// - /// - /// - public global::Together.AudioTranslationRequestTimestampGranularities? Type250 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type251 { get; set; } - /// - /// - /// - public global::Together.AudioTranslationRequestTimestampGranularitie? Type252 { get; set; } - /// - /// - /// - public global::Together.AudioTranslationResponse? Type253 { get; set; } - /// - /// - /// - public global::Together.AudioTranslationJsonResponse? Type254 { get; set; } - /// - /// - /// - public global::Together.AudioTranslationVerboseJsonResponse? Type255 { get; set; } - /// - /// - /// - public global::Together.AudioTranslationVerboseJsonResponseTask? Type256 { get; set; } - /// - /// - /// - public global::Together.AudioSpeechStreamResponse? Type257 { get; set; } - /// - /// - /// - public global::Together.AudioSpeechStreamEvent? Type258 { get; set; } - /// - /// - /// - public global::Together.AudioSpeechStreamChunk? Type259 { get; set; } - /// - /// - /// - public global::Together.StreamSentinelData? Type260 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionToken? Type261 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionChoice? Type262 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionChoiceDelta? Type263 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionChoiceDeltaRole? Type264 { get; set; } - /// - /// - /// - public global::Together.ChatCompletionChoiceDeltaFunctionCall? Type265 { get; set; } - /// - /// - /// - public global::Together.EmbeddingsRequest? Type266 { get; set; } - /// - /// - /// - public global::Together.AnyOf? Type267 { get; set; } - /// - /// - /// - public global::Together.EmbeddingsRequestModel? Type268 { get; set; } - /// - /// - /// - public global::Together.OneOf>? Type269 { get; set; } - /// - /// - /// - public global::Together.EmbeddingsResponse? Type270 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type271 { get; set; } - /// - /// - /// - public global::Together.EmbeddingsResponseDataItem? Type272 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type273 { get; set; } - /// - /// - /// - public global::Together.ModelInfo? Type274 { get; set; } - /// - /// - /// - public global::Together.ModelInfoType? Type275 { get; set; } - /// - /// - /// - public global::Together.Pricing? Type276 { get; set; } - /// - /// - /// - public global::Together.ModelUploadRequest? Type277 { get; set; } - /// - /// - /// - public global::Together.ModelUploadRequestModelType? Type278 { get; set; } - /// - /// - /// - public global::Together.ModelUploadSuccessResponse? Type279 { get; set; } - /// - /// - /// - public global::Together.ModelUploadSuccessResponseData? Type280 { get; set; } - /// - /// - /// - public global::Together.ImageResponse? Type281 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type282 { get; set; } - /// - /// - /// - public global::Together.DataItem3? Type283 { get; set; } - /// - /// - /// - public global::Together.ImageResponseDataB64? Type284 { get; set; } - /// - /// - /// - public global::Together.ImageResponseDataUrl? Type285 { get; set; } - /// - /// - /// - public global::Together.ImageResponseDataItemDiscriminator? Type286 { get; set; } - /// - /// - /// - public global::Together.ImageResponseDataB64Type? Type287 { get; set; } - /// - /// - /// - public global::Together.ImageResponseDataUrlType? Type288 { get; set; } - /// - /// - /// - public global::Together.JobInfoSuccessResponse? Type289 { get; set; } - /// - /// - /// - public global::Together.JobInfoSuccessResponseStatus? Type290 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type291 { get; set; } - /// - /// - /// - public global::Together.JobInfoSuccessResponseStatusUpdate? Type292 { get; set; } - /// - /// - /// - public global::Together.JobInfoSuccessResponseArgs? Type293 { get; set; } - /// - /// - /// - public global::Together.JobsInfoSuccessResponse? Type294 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type295 { get; set; } - /// - /// - /// - public global::Together.ToolsPartFunction? Type296 { get; set; } - /// - /// - /// - public global::Together.ToolChoiceType? Type297 { get; set; } - /// - /// - /// - public global::Together.ToolChoiceFunction? Type298 { get; set; } - /// - /// - /// - public global::Together.FileResponse? Type299 { get; set; } - /// - /// - /// - public global::Together.FilePurpose? Type300 { get; set; } - /// - /// - /// - public global::Together.FileType? Type301 { get; set; } - /// - /// - /// - public global::Together.FileList? Type302 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type303 { get; set; } - /// - /// - /// - public global::Together.FileDeleteResponse? Type304 { get; set; } - /// - /// - /// - public global::Together.FinetuneResponse? Type305 { get; set; } - /// - /// - /// - public global::System.Guid? Type306 { get; set; } - /// - /// - /// - public global::Together.OneOf? Type307 { get; set; } - /// - /// - /// - public global::Together.FinetuneResponseBatchSize? Type308 { get; set; } - /// - /// - /// - public global::Together.LRScheduler? Type309 { get; set; } - /// - /// - /// - public global::Together.OneOf? Type310 { get; set; } - /// - /// - /// - public global::Together.FinetuneResponseTrainOnInputs? Type311 { get; set; } - /// - /// - /// - public global::Together.OneOf? Type312 { get; set; } - /// - /// - /// - public global::Together.TrainingMethodSFT? Type313 { get; set; } - /// - /// - /// - public global::Together.TrainingMethodDPO? Type314 { get; set; } - /// - /// - /// - public global::Together.OneOf? Type315 { get; set; } - /// - /// - /// - public global::Together.FullTrainingType? Type316 { get; set; } - /// - /// - /// - public global::Together.LoRATrainingType? Type317 { get; set; } - /// - /// - /// - public global::Together.MultimodalParams? Type318 { get; set; } - /// - /// - /// - public global::Together.FinetuneJobStatus? Type319 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type320 { get; set; } - /// - /// - /// - public global::Together.FineTuneEvent? Type321 { get; set; } - /// - /// - /// - public global::Together.FineTuneProgress? Type322 { get; set; } - /// - /// - /// - public global::Together.FinetuneResponseTruncated? Type323 { get; set; } - /// - /// - /// - public global::Together.FinetuneDeleteResponse? Type324 { get; set; } - /// - /// - /// - public global::Together.FineTuneModelLimits? Type325 { get; set; } - /// - /// - /// - public global::Together.FineTuneModelLimitsFullTraining? Type326 { get; set; } - /// - /// - /// - public global::Together.FineTuneModelLimitsLoraTraining? Type327 { get; set; } - /// - /// - /// - public global::Together.FinetuneEventLevels? Type328 { get; set; } - /// - /// - /// - public global::Together.FinetuneEventType? Type329 { get; set; } - /// - /// - /// - public global::Together.FinetuneTruncatedList? Type330 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type331 { get; set; } - /// - /// - /// - public global::Together.FinetuneListEvents? Type332 { get; set; } - /// - /// - /// - public global::Together.FinetuneListCheckpoints? Type333 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type334 { get; set; } - /// - /// - /// - public global::Together.FineTuneCheckpoint? Type335 { get; set; } - /// - /// - /// - public global::Together.FullTrainingTypeType? Type336 { get; set; } - /// - /// - /// - public global::Together.LoRATrainingTypeType? Type337 { get; set; } - /// - /// - /// - public global::Together.TrainingMethodSFTMethod? Type338 { get; set; } - /// - /// - /// - public global::Together.OneOf? Type339 { get; set; } - /// - /// - /// - public global::Together.TrainingMethodSFTTrainOnInputs? Type340 { get; set; } - /// - /// - /// - public global::Together.TrainingMethodDPOMethod? Type341 { get; set; } - /// - /// - /// - public global::Together.LRSchedulerLrSchedulerType? Type342 { get; set; } - /// - /// - /// - public global::Together.OneOf? Type343 { get; set; } - /// - /// - /// - public global::Together.LinearLRSchedulerArgs? Type344 { get; set; } - /// - /// - /// - public global::Together.CosineLRSchedulerArgs? Type345 { get; set; } - /// - /// - /// - public global::Together.Autoscaling? Type346 { get; set; } - /// - /// - /// - public global::Together.HardwareSpec? Type347 { get; set; } - /// - /// - /// - public global::Together.EndpointPricing? Type348 { get; set; } - /// - /// - /// - public global::Together.HardwareAvailability? Type349 { get; set; } - /// - /// - /// - public global::Together.HardwareAvailabilityStatus? Type350 { get; set; } - /// - /// - /// - public global::Together.HardwareWithStatus? Type351 { get; set; } - /// - /// - /// - public global::Together.CreateEndpointRequest? Type352 { get; set; } - /// - /// - /// - public global::Together.CreateEndpointRequestState? Type353 { get; set; } - /// - /// - /// - public global::Together.DedicatedEndpoint? Type354 { get; set; } - /// - /// - /// - public global::Together.DedicatedEndpointType? Type355 { get; set; } - /// - /// - /// - public global::Together.DedicatedEndpointState? Type356 { get; set; } - /// - /// - /// - public global::Together.ListEndpoint? Type357 { get; set; } - /// - /// - /// - public global::Together.ListEndpointType? Type358 { get; set; } - /// - /// - /// - public global::Together.ListEndpointState? Type359 { get; set; } - /// - /// - /// - public global::Together.DisplayorExecuteOutput? Type360 { get; set; } - /// - /// - /// - public global::Together.DisplayorExecuteOutputData? Type361 { get; set; } - /// - /// - /// - public global::Together.DisplayorExecuteOutputType? Type362 { get; set; } - /// - /// - /// - public global::Together.Error? Type363 { get; set; } - /// - /// - /// - public global::Together.ErrorOutput? Type364 { get; set; } - /// - /// - /// - public global::Together.ErrorOutputType? Type365 { get; set; } - /// - /// - /// - public global::Together.ExecuteRequest? Type366 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type367 { get; set; } - /// - /// - /// - public global::Together.ExecuteRequestFile? Type368 { get; set; } - /// - /// - /// - public global::Together.ExecuteRequestFileEncoding? Type369 { get; set; } - /// - /// - /// - public global::Together.ExecuteRequestLanguage? Type370 { get; set; } - /// - /// - /// - public global::Together.ExecuteResponse? Type371 { get; set; } - /// - /// - /// - public global::Together.ExecuteResponseSuccessfulExecution? Type372 { get; set; } - /// - /// - /// - public global::Together.ExecuteResponseSuccessfulExecutionData? Type373 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type374 { get; set; } - /// - /// - /// - public global::Together.OutputsItem? Type375 { get; set; } - /// - /// - /// - public global::Together.ExecuteResponseSuccessfulExecutionDataOutputStreamOutput? Type376 { get; set; } - /// - /// - /// - public global::Together.ExecuteResponseSuccessfulExecutionDataOutputStreamOutputType? Type377 { get; set; } - /// - /// - /// - public global::Together.ExecuteResponseSuccessfulExecutionDataOutputErrorOutput? Type378 { get; set; } - /// - /// - /// - public global::Together.ExecuteResponseSuccessfulExecutionDataOutputErrorOutputType? Type379 { get; set; } - /// - /// - /// - public global::Together.ExecuteResponseSuccessfulExecutionDataOutputDisplayorExecuteOutput? Type380 { get; set; } - /// - /// - /// - public global::Together.ExecuteResponseSuccessfulExecutionDataOutputDisplayorExecuteOutputData? Type381 { get; set; } - /// - /// - /// - public global::Together.ExecuteResponseSuccessfulExecutionDataOutputDisplayorExecuteOutputType? Type382 { get; set; } - /// - /// - /// - public global::Together.ExecuteResponseSuccessfulExecutionDataOutputDiscriminator? Type383 { get; set; } - /// - /// - /// - public global::Together.ExecuteResponseSuccessfulExecutionDataStatus? Type384 { get; set; } - /// - /// - /// - public global::Together.ExecuteResponseFailedExecution? Type385 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList>? Type386 { get; set; } - /// - /// - /// - public global::Together.OneOf? Type387 { get; set; } - /// - /// - /// - public global::Together.InterpreterOutput? Type388 { get; set; } - /// - /// - /// - public global::Together.InterpreterOutputStreamOutput? Type389 { get; set; } - /// - /// - /// - public global::Together.InterpreterOutputStreamOutputType? Type390 { get; set; } - /// - /// - /// - public global::Together.InterpreterOutputErrorOutput? Type391 { get; set; } - /// - /// - /// - public global::Together.InterpreterOutputErrorOutputType? Type392 { get; set; } - /// - /// - /// - public global::Together.InterpreterOutputDisplayorExecuteOutput? Type393 { get; set; } - /// - /// - /// - public global::Together.InterpreterOutputDisplayorExecuteOutputData? Type394 { get; set; } - /// - /// - /// - public global::Together.InterpreterOutputDisplayorExecuteOutputType? Type395 { get; set; } - /// - /// - /// - public global::Together.InterpreterOutputDiscriminator? Type396 { get; set; } - /// - /// - /// - public global::Together.Response? Type397 { get; set; } - /// - /// - /// - public global::Together.SessionListResponse? Type398 { get; set; } - /// - /// - /// - public global::Together.SessionListResponseResponse? Type399 { get; set; } - /// - /// - /// - public global::Together.SessionListResponseVariant2? Type400 { get; set; } - /// - /// - /// - public global::Together.SessionListResponseVariant2Data? Type401 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type402 { get; set; } - /// - /// - /// - public global::Together.SessionListResponseVariant2DataSession? Type403 { get; set; } - /// - /// - /// - public global::Together.StreamOutput? Type404 { get; set; } - /// - /// - /// - public global::Together.StreamOutputType? Type405 { get; set; } - /// - /// - /// - public global::Together.CreateBatchRequest? Type406 { get; set; } - /// - /// - /// - public global::Together.BatchErrorResponse? Type407 { get; set; } - /// - /// - /// - public global::Together.BatchJobWithWarning? Type408 { get; set; } - /// - /// - /// - public global::Together.BatchJob? Type409 { get; set; } - /// - /// - /// - public global::Together.BatchJobStatus? Type410 { get; set; } - /// - /// - /// - public global::Together.EvaluationTypedRequest? Type411 { get; set; } - /// - /// - /// - public global::Together.EvaluationTypedRequestType? Type412 { get; set; } - /// - /// - /// - public global::Together.OneOf? Type413 { get; set; } - /// - /// - /// - public global::Together.EvaluationClassifyParameters? Type414 { get; set; } - /// - /// - /// - public global::Together.EvaluationScoreParameters? Type415 { get; set; } - /// - /// - /// - public global::Together.EvaluationCompareParameters? Type416 { get; set; } - /// - /// - /// - public global::Together.EvaluationJudgeModelConfig? Type417 { get; set; } - /// - /// - /// - public global::Together.EvaluationModelOrString? Type418 { get; set; } - /// - /// - /// - public global::Together.EvaluationJudgeModelConfigModelSource? Type419 { get; set; } - /// - /// - /// - public global::Together.EvaluationModelRequest? Type420 { get; set; } - /// - /// - /// - public global::Together.EvaluationModelRequestModelSource? Type421 { get; set; } - /// - /// - /// - public global::Together.EvaluationResponse? Type422 { get; set; } - /// - /// - /// - public global::Together.EvaluationResponseStatus? Type423 { get; set; } - /// - /// - /// - public global::Together.EvaluationJob? Type424 { get; set; } - /// - /// - /// - public global::Together.EvaluationJobType? Type425 { get; set; } - /// - /// - /// - public global::Together.EvaluationJobStatus? Type426 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type427 { get; set; } - /// - /// - /// - public global::Together.EvaluationJobStatusUpdate? Type428 { get; set; } - /// - /// - /// - public global::Together.OneOf? Type429 { get; set; } - /// - /// - /// - public global::Together.EvaluationClassifyResults? Type430 { get; set; } - /// - /// - /// - public global::Together.EvaluationScoreResults? Type431 { get; set; } - /// - /// - /// - public global::Together.EvaluationCompareResults? Type432 { get; set; } - /// - /// - /// - public global::Together.EvaluationJobResults? Type433 { get; set; } - /// - /// - /// - public global::Together.EvaluationScoreResultsAggregatedScores? Type434 { get; set; } - /// - /// - /// - public global::Together.CreateVideoBody? Type435 { get; set; } - /// - /// - /// - public global::Together.VideoOutputFormat? Type436 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type437 { get; set; } - /// - /// - /// - public global::Together.VideoFrameImageInput? Type438 { get; set; } - /// - /// - /// - public global::Together.VideoStatus? Type439 { get; set; } - /// - /// - /// - public global::Together.AnyOf? Type440 { get; set; } - /// - /// - /// - public global::Together.VideoFrameImageInputFrame? Type441 { get; set; } - /// - /// - /// - public global::Together.VideoJob? Type442 { get; set; } - /// - /// - /// - public global::Together.VideoJobError? Type443 { get; set; } - /// - /// - /// - public global::Together.VideoJobOutputs? Type444 { get; set; } - /// - /// - /// - public global::Together.ContainerStatus? Type445 { get; set; } - /// - /// - /// - public global::Together.CreateDeploymentRequest? Type446 { get; set; } - /// - /// - /// - public global::Together.OneOf? Type447 { get; set; } - /// - /// - /// - public global::Together.HTTPAutoscalingConfig? Type448 { get; set; } - /// - /// - /// - public global::Together.QueueAutoscalingConfig? Type449 { get; set; } - /// - /// - /// - public global::Together.CustomMetricAutoscalingConfig? Type450 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type451 { get; set; } - /// - /// - /// - public global::Together.EnvironmentVariable? Type452 { get; set; } - /// - /// - /// - public global::Together.CreateDeploymentRequestGpuType? Type453 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type454 { get; set; } - /// - /// - /// - public global::Together.VolumeMount? Type455 { get; set; } - /// - /// - /// - public global::Together.CreateSecretRequest? Type456 { get; set; } - /// - /// - /// - public global::Together.CreateVolumeRequest? Type457 { get; set; } - /// - /// - /// - public global::Together.VolumeContentRequest? Type458 { get; set; } - /// - /// - /// - public global::Together.VolumeType? Type459 { get; set; } - /// - /// - /// - public global::Together.DeploymentListResponse? Type460 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type461 { get; set; } - /// - /// - /// - public global::Together.DeploymentResponseItem? Type462 { get; set; } - /// - /// - /// - public global::Together.DeploymentLogs? Type463 { get; set; } - /// - /// - /// - public global::Together.DeploymentResponseItemGpuType? Type464 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.Dictionary? Type465 { get; set; } - /// - /// - /// - public global::Together.ReplicaEvent? Type466 { get; set; } - /// - /// - /// - public global::Together.DeploymentStatus? Type467 { get; set; } - /// - /// - /// - public global::Together.HTTPAutoscalingConfigMetric? Type468 { get; set; } - /// - /// - /// - public global::Together.QueueAutoscalingConfigMetric? Type469 { get; set; } - /// - /// - /// - public global::Together.CustomMetricAutoscalingConfigMetric? Type470 { get; set; } - /// - /// - /// - public global::Together.KubernetesEvent? Type471 { get; set; } - /// - /// - /// - public global::Together.ListSecretsResponse? Type472 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type473 { get; set; } - /// - /// - /// - public global::Together.SecretResponseItem? Type474 { get; set; } - /// - /// - /// - public global::Together.ListVolumesResponse? Type475 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type476 { get; set; } - /// - /// - /// - public global::Together.VolumeResponseItem? Type477 { get; set; } - /// - /// - /// - public global::Together.UpdateDeploymentRequest? Type478 { get; set; } - /// - /// - /// - public global::Together.UpdateDeploymentRequestGpuType? Type479 { get; set; } - /// - /// - /// - public global::Together.UpdateSecretRequest? Type480 { get; set; } - /// - /// - /// - public global::Together.UpdateVolumeRequest? Type481 { get; set; } - /// - /// - /// - public global::Together.VolumeContent? Type482 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.Dictionary? Type483 { get; set; } - /// - /// - /// - public global::Together.VersionHistoryItem? Type484 { get; set; } - /// - /// - /// - public global::Together.VolumeContentRequestType? Type485 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type486 { get; set; } - /// - /// - /// - public global::Together.FileInfo? Type487 { get; set; } - /// - /// - /// - public global::Together.VolumeContentType? Type488 { get; set; } - /// - /// - /// - public global::Together.QueueError? Type489 { get; set; } - /// - /// - /// - public global::Together.QueueMetricsResponse? Type490 { get; set; } - /// - /// - /// - public global::Together.QueueCancelRequest? Type491 { get; set; } - /// - /// - /// - public global::Together.QueueCancelResponse? Type492 { get; set; } - /// - /// - /// - public global::Together.QueueCancelResponseStatus? Type493 { get; set; } - /// - /// - /// - public global::Together.QueueJobRequest? Type494 { get; set; } - /// - /// - /// - public global::Together.QueueJobResponse? Type495 { get; set; } - /// - /// - /// - public global::Together.QueueJobStatusResponse? Type496 { get; set; } - /// - /// - /// - public global::Together.QueueJobStatusResponseStatus? Type497 { get; set; } - /// - /// - /// - public global::Together.CreateImagesGenerationsRequest? Type498 { get; set; } - /// - /// - /// - public global::Together.AnyOf? Type499 { get; set; } - /// - /// - /// - public global::Together.CreateImagesGenerationsRequestModel? Type500 { get; set; } - /// - /// - /// - public global::Together.CreateImagesGenerationsRequestResponseFormat? Type501 { get; set; } - /// - /// - /// - public global::Together.CreateImagesGenerationsRequestOutputFormat? Type502 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type503 { get; set; } - /// - /// - /// - public global::Together.CreateImagesGenerationsRequestImageLora? Type504 { get; set; } - /// - /// - /// - public global::Together.CreateFilesUploadRequest? Type505 { get; set; } - /// - /// - /// - public global::Together.CreateFineTunesRequest? Type506 { get; set; } - /// - /// - /// - public global::Together.OneOf? Type507 { get; set; } - /// - /// - /// - public global::Together.CreateFineTunesRequestBatchSize? Type508 { get; set; } - /// - /// - /// - public global::Together.OneOf? Type509 { get; set; } - /// - /// - /// - public global::Together.CreateFineTunesRequestTrainOnInputs? Type510 { get; set; } - /// - /// - /// - public global::Together.AnyOf? Type511 { get; set; } - /// - /// - /// - public global::Together.CreateFineTunesEstimatePriceRequest? Type512 { get; set; } - /// - /// - /// - public global::Together.UpdateEndpointRequest? Type513 { get; set; } - /// - /// - /// - public global::Together.UpdateEndpointRequestState? Type514 { get; set; } - /// - /// - /// - public global::Together.GetFinetuneDownloadCheckpoint? Type515 { get; set; } - /// - /// - /// - public global::Together.RealtimeTtsModel? Type516 { get; set; } - /// - /// - /// - public global::Together.ListEndpointsType? Type517 { get; set; } - /// - /// - /// - public global::Together.ListEndpointsUsageType? Type518 { get; set; } - /// - /// - /// - public global::Together.RealtimeTranscriptionInputAudioFormat? Type519 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.Dictionary? Type520 { get; set; } - /// - /// - /// - public global::Together.CreateFineTunesEstimatePriceResponse? Type521 { get; set; } - /// - /// - /// - public global::Together.GetFineTunesModelsSupportedResponse? Type522 { get; set; } - /// - /// - /// - public global::Together.GetFineTunesModelsLimitsResponse? Type523 { get; set; } - /// - /// - /// - public global::Together.GPUClusterServiceDeleteResponse? Type524 { get; set; } - /// - /// - /// - public global::Together.ListEndpointsResponse? Type525 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type526 { get; set; } - /// - /// - /// - public global::Together.ListHardwareResponse? Type527 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type528 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type529 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type530 { get; set; } - /// - /// - /// - public global::Together.GetModelListResponse? Type531 { get; set; } - /// - /// - /// - public global::Together.GetEvaluationJobStatusAndResultsResponse? Type532 { get; set; } - /// - /// - /// - public global::Together.GetEvaluationJobStatusAndResultsResponseStatus? Type533 { get; set; } - /// - /// - /// - public global::Together.OneOf? Type534 { get; set; } - - /// - /// - /// - public global::System.Collections.Generic.List? ListType0 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType1 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType2 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType3 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType4 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType5 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType6 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType7 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType8 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType9 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType10 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType11 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType12 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType13 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType14 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType15 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType16 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType17 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType18 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType19 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType20 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType21 { get; set; } - /// - /// - /// - public global::Together.OneOf, global::System.Collections.Generic.List>? ListType22 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType23 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType24 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType25 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType26 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType27 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType28 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType29 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType30 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType31 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType32 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType33 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType34 { get; set; } - /// - /// - /// - public global::Together.OneOf>? ListType35 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType36 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType37 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType38 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType39 { get; set; } - /// - /// - /// - public global::Together.OneOf>? ListType40 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType41 { get; set; } - /// - /// - /// - public global::Together.OneOf>? ListType42 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType43 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType44 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType45 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType46 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType47 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType48 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType49 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType50 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType51 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType52 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType53 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List>? ListType54 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType55 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType56 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType57 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType58 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType59 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType60 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType61 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType62 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType63 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType64 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType65 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType66 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType67 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.List? ListType68 { get; set; } - } -} \ No newline at end of file diff --git a/src/libs/Together/Generated/Together.Models.RlGRPOLossAggregationType.g.cs b/src/libs/Together/Generated/Together.Models.RlGRPOLossAggregationType.g.cs index 6d3c24fd..8f3d9bf3 100644 --- a/src/libs/Together/Generated/Together.Models.RlGRPOLossAggregationType.g.cs +++ b/src/libs/Together/Generated/Together.Models.RlGRPOLossAggregationType.g.cs @@ -15,6 +15,10 @@ public enum RlGRPOLossAggregationType /// /// /// + GrpoLossAggregationTypeSequenceMean, + /// + /// + /// GrpoLossAggregationTypeTokenMean, /// /// @@ -35,6 +39,7 @@ public static string ToValueString(this RlGRPOLossAggregationType value) return value switch { RlGRPOLossAggregationType.GrpoLossAggregationTypeFixedHorizon => "GRPO_LOSS_AGGREGATION_TYPE_FIXED_HORIZON", + RlGRPOLossAggregationType.GrpoLossAggregationTypeSequenceMean => "GRPO_LOSS_AGGREGATION_TYPE_SEQUENCE_MEAN", RlGRPOLossAggregationType.GrpoLossAggregationTypeTokenMean => "GRPO_LOSS_AGGREGATION_TYPE_TOKEN_MEAN", RlGRPOLossAggregationType.GrpoLossAggregationTypeUnspecified => "GRPO_LOSS_AGGREGATION_TYPE_UNSPECIFIED", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), @@ -48,6 +53,7 @@ public static string ToValueString(this RlGRPOLossAggregationType value) return value switch { "GRPO_LOSS_AGGREGATION_TYPE_FIXED_HORIZON" => RlGRPOLossAggregationType.GrpoLossAggregationTypeFixedHorizon, + "GRPO_LOSS_AGGREGATION_TYPE_SEQUENCE_MEAN" => RlGRPOLossAggregationType.GrpoLossAggregationTypeSequenceMean, "GRPO_LOSS_AGGREGATION_TYPE_TOKEN_MEAN" => RlGRPOLossAggregationType.GrpoLossAggregationTypeTokenMean, "GRPO_LOSS_AGGREGATION_TYPE_UNSPECIFIED" => RlGRPOLossAggregationType.GrpoLossAggregationTypeUnspecified, _ => null, diff --git a/src/libs/Together/Generated/Together.Models.RlLossInputs.g.cs b/src/libs/Together/Generated/Together.Models.RlLossInputs.g.cs index bd5c8be6..10af3dc9 100644 --- a/src/libs/Together/Generated/Together.Models.RlLossInputs.g.cs +++ b/src/libs/Together/Generated/Together.Models.RlLossInputs.g.cs @@ -9,10 +9,11 @@ namespace Together public sealed partial class RlLossInputs { /// - /// Target tokens for loss computation (optional, defaults to shifted input_ids) + /// Target tokens for loss computation /// [global::System.Text.Json.Serialization.JsonPropertyName("target_tokens")] - public global::Together.RlLossTargetTokens? TargetTokens { get; set; } + [global::System.Text.Json.Serialization.JsonRequired] + public required global::Together.RlLossTargetTokens TargetTokens { get; set; } /// /// Per-token loss mask (1=compute loss, 0=ignore) @@ -36,7 +37,7 @@ public sealed partial class RlLossInputs /// Initializes a new instance of the class. /// /// - /// Target tokens for loss computation (optional, defaults to shifted input_ids) + /// Target tokens for loss computation /// /// /// Per-token loss mask (1=compute loss, 0=ignore) @@ -46,11 +47,11 @@ public sealed partial class RlLossInputs [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public RlLossInputs( - global::Together.RlLossTargetTokens? targetTokens, + global::Together.RlLossTargetTokens targetTokens, global::Together.RlLossMask? lossMask, global::Together.RlGRPOLossInputs? grpoInputs) { - this.TargetTokens = targetTokens; + this.TargetTokens = targetTokens ?? throw new global::System.ArgumentNullException(nameof(targetTokens)); this.LossMask = lossMask; this.GrpoInputs = grpoInputs; } diff --git a/src/libs/Together/Generated/Together.ModelsClient.Models.g.cs b/src/libs/Together/Generated/Together.ModelsClient.Models.g.cs index 48faa5ba..c8b75fd5 100644 --- a/src/libs/Together/Generated/Together.ModelsClient.Models.g.cs +++ b/src/libs/Together/Generated/Together.ModelsClient.Models.g.cs @@ -112,13 +112,13 @@ partial void ProcessModelsResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -150,13 +150,13 @@ partial void ProcessModelsResponseContent( if (ReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerOptions); } else { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -188,13 +188,13 @@ partial void ProcessModelsResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -226,13 +226,13 @@ partial void ProcessModelsResponseContent( if (ReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerOptions); } else { __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -264,13 +264,13 @@ partial void ProcessModelsResponseContent( if (ReadResponseAsString) { __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerContext); + __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerOptions); } else { __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerContext); + __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -314,7 +314,7 @@ partial void ProcessModelsResponseContent( __response.EnsureSuccessStatusCode(); return - (global::System.Collections.Generic.IList?)global::System.Text.Json.JsonSerializer.Deserialize(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext) ?? + global::System.Text.Json.JsonSerializer.Deserialize?>(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -345,7 +345,7 @@ partial void ProcessModelsResponseContent( ).ConfigureAwait(false); return - (global::System.Collections.Generic.IList?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(__content, typeof(global::System.Collections.Generic.IList), JsonSerializerContext).ConfigureAwait(false) ?? + await global::System.Text.Json.JsonSerializer.DeserializeAsync?>(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.ModelsClient.UploadModel.g.cs b/src/libs/Together/Generated/Together.ModelsClient.UploadModel.g.cs index 8fcc263a..909579c2 100644 --- a/src/libs/Together/Generated/Together.ModelsClient.UploadModel.g.cs +++ b/src/libs/Together/Generated/Together.ModelsClient.UploadModel.g.cs @@ -81,7 +81,7 @@ partial void ProcessUploadModelResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -130,7 +130,7 @@ partial void ProcessUploadModelResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.ModelUploadSuccessResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.ModelUploadSuccessResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -161,7 +161,7 @@ partial void ProcessUploadModelResponseContent( ).ConfigureAwait(false); return - await global::Together.ModelUploadSuccessResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.ModelUploadSuccessResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.ModelsClient.g.cs b/src/libs/Together/Generated/Together.ModelsClient.g.cs index 9a11416d..2966e594 100644 --- a/src/libs/Together/Generated/Together.ModelsClient.g.cs +++ b/src/libs/Together/Generated/Together.ModelsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class ModelsClient : global::Together.IModelsClient, globa /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.QueueClient.CancelQueueJob.g.cs b/src/libs/Together/Generated/Together.QueueClient.CancelQueueJob.g.cs index 1b0e846b..fe290824 100644 --- a/src/libs/Together/Generated/Together.QueueClient.CancelQueueJob.g.cs +++ b/src/libs/Together/Generated/Together.QueueClient.CancelQueueJob.g.cs @@ -71,7 +71,7 @@ partial void ProcessCancelQueueJobResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -108,13 +108,13 @@ partial void ProcessCancelQueueJobResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.QueueError.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.QueueError.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.QueueError.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.QueueError.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -146,13 +146,13 @@ partial void ProcessCancelQueueJobResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.QueueError.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.QueueError.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.QueueError.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.QueueError.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -184,13 +184,13 @@ partial void ProcessCancelQueueJobResponseContent( if (ReadResponseAsString) { __content_409 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_409 = global::Together.QueueCancelResponse.FromJson(__content_409, JsonSerializerContext); + __value_409 = global::Together.QueueCancelResponse.FromJson(__content_409, JsonSerializerOptions); } else { __content_409 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_409 = global::Together.QueueCancelResponse.FromJson(__content_409, JsonSerializerContext); + __value_409 = global::Together.QueueCancelResponse.FromJson(__content_409, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -222,13 +222,13 @@ partial void ProcessCancelQueueJobResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.QueueError.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.QueueError.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.QueueError.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.QueueError.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -272,7 +272,7 @@ partial void ProcessCancelQueueJobResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.QueueCancelResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.QueueCancelResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -303,7 +303,7 @@ partial void ProcessCancelQueueJobResponseContent( ).ConfigureAwait(false); return - await global::Together.QueueCancelResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.QueueCancelResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.QueueClient.GetQueueJobStatus.g.cs b/src/libs/Together/Generated/Together.QueueClient.GetQueueJobStatus.g.cs index a6332f84..dc797e9a 100644 --- a/src/libs/Together/Generated/Together.QueueClient.GetQueueJobStatus.g.cs +++ b/src/libs/Together/Generated/Together.QueueClient.GetQueueJobStatus.g.cs @@ -110,13 +110,13 @@ partial void ProcessGetQueueJobStatusResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.QueueError.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.QueueError.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.QueueError.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.QueueError.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -148,13 +148,13 @@ partial void ProcessGetQueueJobStatusResponseContent( if (ReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.QueueError.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.QueueError.FromJson(__content_401, JsonSerializerOptions); } else { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.QueueError.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.QueueError.FromJson(__content_401, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -186,13 +186,13 @@ partial void ProcessGetQueueJobStatusResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.QueueError.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.QueueError.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.QueueError.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.QueueError.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -224,13 +224,13 @@ partial void ProcessGetQueueJobStatusResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.QueueError.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.QueueError.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.QueueError.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.QueueError.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -274,7 +274,7 @@ partial void ProcessGetQueueJobStatusResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.QueueJobStatusResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.QueueJobStatusResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -305,7 +305,7 @@ partial void ProcessGetQueueJobStatusResponseContent( ).ConfigureAwait(false); return - await global::Together.QueueJobStatusResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.QueueJobStatusResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.QueueClient.GetQueueMetrics.g.cs b/src/libs/Together/Generated/Together.QueueClient.GetQueueMetrics.g.cs index 27894479..1ad14236 100644 --- a/src/libs/Together/Generated/Together.QueueClient.GetQueueMetrics.g.cs +++ b/src/libs/Together/Generated/Together.QueueClient.GetQueueMetrics.g.cs @@ -101,13 +101,13 @@ partial void ProcessGetQueueMetricsResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.QueueError.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.QueueError.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.QueueError.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.QueueError.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -139,13 +139,13 @@ partial void ProcessGetQueueMetricsResponseContent( if (ReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.QueueError.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.QueueError.FromJson(__content_401, JsonSerializerOptions); } else { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.QueueError.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.QueueError.FromJson(__content_401, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -177,13 +177,13 @@ partial void ProcessGetQueueMetricsResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.QueueError.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.QueueError.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.QueueError.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.QueueError.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -227,7 +227,7 @@ partial void ProcessGetQueueMetricsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.QueueMetricsResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.QueueMetricsResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -258,7 +258,7 @@ partial void ProcessGetQueueMetricsResponseContent( ).ConfigureAwait(false); return - await global::Together.QueueMetricsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.QueueMetricsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.QueueClient.SubmitQueueJob.g.cs b/src/libs/Together/Generated/Together.QueueClient.SubmitQueueJob.g.cs index 6addbf21..aa193bfe 100644 --- a/src/libs/Together/Generated/Together.QueueClient.SubmitQueueJob.g.cs +++ b/src/libs/Together/Generated/Together.QueueClient.SubmitQueueJob.g.cs @@ -71,7 +71,7 @@ partial void ProcessSubmitQueueJobResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -108,13 +108,13 @@ partial void ProcessSubmitQueueJobResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.QueueError.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.QueueError.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.QueueError.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.QueueError.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -146,13 +146,13 @@ partial void ProcessSubmitQueueJobResponseContent( if (ReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.QueueError.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.QueueError.FromJson(__content_401, JsonSerializerOptions); } else { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.QueueError.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.QueueError.FromJson(__content_401, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -184,13 +184,13 @@ partial void ProcessSubmitQueueJobResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.QueueError.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.QueueError.FromJson(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = global::Together.QueueError.FromJson(__content_500, JsonSerializerContext); + __value_500 = global::Together.QueueError.FromJson(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -234,7 +234,7 @@ partial void ProcessSubmitQueueJobResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.QueueJobResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.QueueJobResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -265,7 +265,7 @@ partial void ProcessSubmitQueueJobResponseContent( ).ConfigureAwait(false); return - await global::Together.QueueJobResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.QueueJobResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.QueueClient.g.cs b/src/libs/Together/Generated/Together.QueueClient.g.cs index 199eff9e..2076f17a 100644 --- a/src/libs/Together/Generated/Together.QueueClient.g.cs +++ b/src/libs/Together/Generated/Together.QueueClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class QueueClient : global::Together.IQueueClient, global: /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.RegionServiceClient.RegionServiceList.g.cs b/src/libs/Together/Generated/Together.RegionServiceClient.RegionServiceList.g.cs index 6fb89d50..e66cef65 100644 --- a/src/libs/Together/Generated/Together.RegionServiceClient.RegionServiceList.g.cs +++ b/src/libs/Together/Generated/Together.RegionServiceClient.RegionServiceList.g.cs @@ -107,7 +107,7 @@ partial void ProcessRegionServiceListResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.RegionListResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.RegionListResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -138,7 +138,7 @@ partial void ProcessRegionServiceListResponseContent( ).ConfigureAwait(false); return - await global::Together.RegionListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.RegionListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.RegionServiceClient.g.cs b/src/libs/Together/Generated/Together.RegionServiceClient.g.cs index b7c8a0da..0ef32c61 100644 --- a/src/libs/Together/Generated/Together.RegionServiceClient.g.cs +++ b/src/libs/Together/Generated/Together.RegionServiceClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class RegionServiceClient : global::Together.IRegionServic /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.RerankClient.Rerank.g.cs b/src/libs/Together/Generated/Together.RerankClient.Rerank.g.cs index 6cc480f9..52fe34b7 100644 --- a/src/libs/Together/Generated/Together.RerankClient.Rerank.g.cs +++ b/src/libs/Together/Generated/Together.RerankClient.Rerank.g.cs @@ -103,7 +103,7 @@ partial void ProcessRerankResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -140,13 +140,13 @@ partial void ProcessRerankResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerContext); + __value_400 = global::Together.ErrorData.FromJson(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -178,13 +178,13 @@ partial void ProcessRerankResponseContent( if (ReadResponseAsString) { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerOptions); } else { __content_401 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerContext); + __value_401 = global::Together.ErrorData.FromJson(__content_401, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -216,13 +216,13 @@ partial void ProcessRerankResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerContext); + __value_404 = global::Together.ErrorData.FromJson(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -254,13 +254,13 @@ partial void ProcessRerankResponseContent( if (ReadResponseAsString) { __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerOptions); } else { __content_429 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerContext); + __value_429 = global::Together.ErrorData.FromJson(__content_429, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -292,13 +292,13 @@ partial void ProcessRerankResponseContent( if (ReadResponseAsString) { __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_503 = global::Together.ErrorData.FromJson(__content_503, JsonSerializerContext); + __value_503 = global::Together.ErrorData.FromJson(__content_503, JsonSerializerOptions); } else { __content_503 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_503 = global::Together.ErrorData.FromJson(__content_503, JsonSerializerContext); + __value_503 = global::Together.ErrorData.FromJson(__content_503, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -330,13 +330,13 @@ partial void ProcessRerankResponseContent( if (ReadResponseAsString) { __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerContext); + __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerOptions); } else { __content_504 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerContext); + __value_504 = global::Together.ErrorData.FromJson(__content_504, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -380,7 +380,7 @@ partial void ProcessRerankResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.RerankResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.RerankResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -411,7 +411,7 @@ partial void ProcessRerankResponseContent( ).ConfigureAwait(false); return - await global::Together.RerankResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.RerankResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.RerankClient.g.cs b/src/libs/Together/Generated/Together.RerankClient.g.cs index 1dcbd010..8596b399 100644 --- a/src/libs/Together/Generated/Together.RerankClient.g.cs +++ b/src/libs/Together/Generated/Together.RerankClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class RerankClient : global::Together.IRerankClient, globa /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.RlClient.CreateInferenceCheckpoint.g.cs b/src/libs/Together/Generated/Together.RlClient.CreateInferenceCheckpoint.g.cs index 1b0b38ad..eaff9829 100644 --- a/src/libs/Together/Generated/Together.RlClient.CreateInferenceCheckpoint.g.cs +++ b/src/libs/Together/Generated/Together.RlClient.CreateInferenceCheckpoint.g.cs @@ -98,13 +98,13 @@ partial void ProcessCreateInferenceCheckpointResponseContent( if (ReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } else { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreateInferenceCheckpointResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.RlInferenceCheckpointOperation.FromJson(__content, JsonSerializerContext) ?? + global::Together.RlInferenceCheckpointOperation.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -179,7 +179,7 @@ partial void ProcessCreateInferenceCheckpointResponseContent( ).ConfigureAwait(false); return - await global::Together.RlInferenceCheckpointOperation.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.RlInferenceCheckpointOperation.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.RlClient.CreateTrainingCheckpoint.g.cs b/src/libs/Together/Generated/Together.RlClient.CreateTrainingCheckpoint.g.cs index 55d513fa..133cb69b 100644 --- a/src/libs/Together/Generated/Together.RlClient.CreateTrainingCheckpoint.g.cs +++ b/src/libs/Together/Generated/Together.RlClient.CreateTrainingCheckpoint.g.cs @@ -98,13 +98,13 @@ partial void ProcessCreateTrainingCheckpointResponseContent( if (ReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } else { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessCreateTrainingCheckpointResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.RlTrainingCheckpointOperation.FromJson(__content, JsonSerializerContext) ?? + global::Together.RlTrainingCheckpointOperation.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -179,7 +179,7 @@ partial void ProcessCreateTrainingCheckpointResponseContent( ).ConfigureAwait(false); return - await global::Together.RlTrainingCheckpointOperation.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.RlTrainingCheckpointOperation.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.RlClient.DownloadCheckpoint.g.cs b/src/libs/Together/Generated/Together.RlClient.DownloadCheckpoint.g.cs index e901603f..3b9659fa 100644 --- a/src/libs/Together/Generated/Together.RlClient.DownloadCheckpoint.g.cs +++ b/src/libs/Together/Generated/Together.RlClient.DownloadCheckpoint.g.cs @@ -110,13 +110,13 @@ partial void ProcessDownloadCheckpointResponseContent( if (ReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } else { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -160,7 +160,7 @@ partial void ProcessDownloadCheckpointResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.RlCheckpointDownloadResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.RlCheckpointDownloadResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -191,7 +191,7 @@ partial void ProcessDownloadCheckpointResponseContent( ).ConfigureAwait(false); return - await global::Together.RlCheckpointDownloadResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.RlCheckpointDownloadResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.RlClient.ForwardBackward.g.cs b/src/libs/Together/Generated/Together.RlClient.ForwardBackward.g.cs index 6cc97a0e..9d0871c0 100644 --- a/src/libs/Together/Generated/Together.RlClient.ForwardBackward.g.cs +++ b/src/libs/Together/Generated/Together.RlClient.ForwardBackward.g.cs @@ -75,7 +75,7 @@ partial void ProcessForwardBackwardResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -113,13 +113,13 @@ partial void ProcessForwardBackwardResponseContent( if (ReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } else { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessForwardBackwardResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.RlForwardBackwardOperation.FromJson(__content, JsonSerializerContext) ?? + global::Together.RlForwardBackwardOperation.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -194,7 +194,7 @@ partial void ProcessForwardBackwardResponseContent( ).ConfigureAwait(false); return - await global::Together.RlForwardBackwardOperation.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.RlForwardBackwardOperation.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.RlClient.GetForwardBackwardOperation.g.cs b/src/libs/Together/Generated/Together.RlClient.GetForwardBackwardOperation.g.cs index f81af5ae..06c68180 100644 --- a/src/libs/Together/Generated/Together.RlClient.GetForwardBackwardOperation.g.cs +++ b/src/libs/Together/Generated/Together.RlClient.GetForwardBackwardOperation.g.cs @@ -106,13 +106,13 @@ partial void ProcessGetForwardBackwardOperationResponseContent( if (ReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } else { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -156,7 +156,7 @@ partial void ProcessGetForwardBackwardOperationResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.RlForwardBackwardOperation.FromJson(__content, JsonSerializerContext) ?? + global::Together.RlForwardBackwardOperation.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -187,7 +187,7 @@ partial void ProcessGetForwardBackwardOperationResponseContent( ).ConfigureAwait(false); return - await global::Together.RlForwardBackwardOperation.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.RlForwardBackwardOperation.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.RlClient.GetInferenceCheckpointOperation.g.cs b/src/libs/Together/Generated/Together.RlClient.GetInferenceCheckpointOperation.g.cs index d69c8f02..d18fbadb 100644 --- a/src/libs/Together/Generated/Together.RlClient.GetInferenceCheckpointOperation.g.cs +++ b/src/libs/Together/Generated/Together.RlClient.GetInferenceCheckpointOperation.g.cs @@ -106,13 +106,13 @@ partial void ProcessGetInferenceCheckpointOperationResponseContent( if (ReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } else { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -156,7 +156,7 @@ partial void ProcessGetInferenceCheckpointOperationResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.RlInferenceCheckpointOperation.FromJson(__content, JsonSerializerContext) ?? + global::Together.RlInferenceCheckpointOperation.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -187,7 +187,7 @@ partial void ProcessGetInferenceCheckpointOperationResponseContent( ).ConfigureAwait(false); return - await global::Together.RlInferenceCheckpointOperation.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.RlInferenceCheckpointOperation.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.RlClient.GetOptimStepOperation.g.cs b/src/libs/Together/Generated/Together.RlClient.GetOptimStepOperation.g.cs index 590612bb..ba4f66cc 100644 --- a/src/libs/Together/Generated/Together.RlClient.GetOptimStepOperation.g.cs +++ b/src/libs/Together/Generated/Together.RlClient.GetOptimStepOperation.g.cs @@ -106,13 +106,13 @@ partial void ProcessGetOptimStepOperationResponseContent( if (ReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } else { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -156,7 +156,7 @@ partial void ProcessGetOptimStepOperationResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.RlOptimStepOperation.FromJson(__content, JsonSerializerContext) ?? + global::Together.RlOptimStepOperation.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -187,7 +187,7 @@ partial void ProcessGetOptimStepOperationResponseContent( ).ConfigureAwait(false); return - await global::Together.RlOptimStepOperation.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.RlOptimStepOperation.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.RlClient.GetSample.g.cs b/src/libs/Together/Generated/Together.RlClient.GetSample.g.cs index 9abe8dc8..ad08d549 100644 --- a/src/libs/Together/Generated/Together.RlClient.GetSample.g.cs +++ b/src/libs/Together/Generated/Together.RlClient.GetSample.g.cs @@ -106,13 +106,13 @@ partial void ProcessGetSampleResponseContent( if (ReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } else { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -156,7 +156,7 @@ partial void ProcessGetSampleResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.RlSampleOperation.FromJson(__content, JsonSerializerContext) ?? + global::Together.RlSampleOperation.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -187,7 +187,7 @@ partial void ProcessGetSampleResponseContent( ).ConfigureAwait(false); return - await global::Together.RlSampleOperation.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.RlSampleOperation.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.RlClient.GetTrainingCheckpointOperation.g.cs b/src/libs/Together/Generated/Together.RlClient.GetTrainingCheckpointOperation.g.cs index 25cb48d3..a8a0631a 100644 --- a/src/libs/Together/Generated/Together.RlClient.GetTrainingCheckpointOperation.g.cs +++ b/src/libs/Together/Generated/Together.RlClient.GetTrainingCheckpointOperation.g.cs @@ -106,13 +106,13 @@ partial void ProcessGetTrainingCheckpointOperationResponseContent( if (ReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } else { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -156,7 +156,7 @@ partial void ProcessGetTrainingCheckpointOperationResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.RlTrainingCheckpointOperation.FromJson(__content, JsonSerializerContext) ?? + global::Together.RlTrainingCheckpointOperation.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -187,7 +187,7 @@ partial void ProcessGetTrainingCheckpointOperationResponseContent( ).ConfigureAwait(false); return - await global::Together.RlTrainingCheckpointOperation.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.RlTrainingCheckpointOperation.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.RlClient.GetTrainingSession.g.cs b/src/libs/Together/Generated/Together.RlClient.GetTrainingSession.g.cs index 3d22f811..016b2007 100644 --- a/src/libs/Together/Generated/Together.RlClient.GetTrainingSession.g.cs +++ b/src/libs/Together/Generated/Together.RlClient.GetTrainingSession.g.cs @@ -98,13 +98,13 @@ partial void ProcessGetTrainingSessionResponseContent( if (ReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } else { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessGetTrainingSessionResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.RlTrainingSession.FromJson(__content, JsonSerializerContext) ?? + global::Together.RlTrainingSession.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -179,7 +179,7 @@ partial void ProcessGetTrainingSessionResponseContent( ).ConfigureAwait(false); return - await global::Together.RlTrainingSession.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.RlTrainingSession.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.RlClient.ListTrainingSessions.g.cs b/src/libs/Together/Generated/Together.RlClient.ListTrainingSessions.g.cs index fce0add6..045d7737 100644 --- a/src/libs/Together/Generated/Together.RlClient.ListTrainingSessions.g.cs +++ b/src/libs/Together/Generated/Together.RlClient.ListTrainingSessions.g.cs @@ -121,13 +121,13 @@ partial void ProcessListTrainingSessionsResponseContent( if (ReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } else { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -171,7 +171,7 @@ partial void ProcessListTrainingSessionsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.RlTrainingSessionsListResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.RlTrainingSessionsListResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -202,7 +202,7 @@ partial void ProcessListTrainingSessionsResponseContent( ).ConfigureAwait(false); return - await global::Together.RlTrainingSessionsListResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.RlTrainingSessionsListResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.RlClient.OptimStep.g.cs b/src/libs/Together/Generated/Together.RlClient.OptimStep.g.cs index 5963d4d0..b6bcc6a1 100644 --- a/src/libs/Together/Generated/Together.RlClient.OptimStep.g.cs +++ b/src/libs/Together/Generated/Together.RlClient.OptimStep.g.cs @@ -75,7 +75,7 @@ partial void ProcessOptimStepResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -113,13 +113,13 @@ partial void ProcessOptimStepResponseContent( if (ReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } else { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessOptimStepResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.RlOptimStepOperation.FromJson(__content, JsonSerializerContext) ?? + global::Together.RlOptimStepOperation.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -194,7 +194,7 @@ partial void ProcessOptimStepResponseContent( ).ConfigureAwait(false); return - await global::Together.RlOptimStepOperation.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.RlOptimStepOperation.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.RlClient.Sample.g.cs b/src/libs/Together/Generated/Together.RlClient.Sample.g.cs index 0176461b..9ff36ea7 100644 --- a/src/libs/Together/Generated/Together.RlClient.Sample.g.cs +++ b/src/libs/Together/Generated/Together.RlClient.Sample.g.cs @@ -75,7 +75,7 @@ partial void ProcessSampleResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -113,13 +113,13 @@ partial void ProcessSampleResponseContent( if (ReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } else { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -163,7 +163,7 @@ partial void ProcessSampleResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.RlSampleOperation.FromJson(__content, JsonSerializerContext) ?? + global::Together.RlSampleOperation.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -194,7 +194,7 @@ partial void ProcessSampleResponseContent( ).ConfigureAwait(false); return - await global::Together.RlSampleOperation.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.RlSampleOperation.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.RlClient.StartTrainingSession.g.cs b/src/libs/Together/Generated/Together.RlClient.StartTrainingSession.g.cs index adb87383..c0f76c8c 100644 --- a/src/libs/Together/Generated/Together.RlClient.StartTrainingSession.g.cs +++ b/src/libs/Together/Generated/Together.RlClient.StartTrainingSession.g.cs @@ -68,7 +68,7 @@ partial void ProcessStartTrainingSessionResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -105,13 +105,13 @@ partial void ProcessStartTrainingSessionResponseContent( if (ReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } else { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -155,7 +155,7 @@ partial void ProcessStartTrainingSessionResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.RlTrainingSession.FromJson(__content, JsonSerializerContext) ?? + global::Together.RlTrainingSession.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -186,7 +186,7 @@ partial void ProcessStartTrainingSessionResponseContent( ).ConfigureAwait(false); return - await global::Together.RlTrainingSession.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.RlTrainingSession.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.RlClient.StopTrainingSession.g.cs b/src/libs/Together/Generated/Together.RlClient.StopTrainingSession.g.cs index 8893d826..3031c845 100644 --- a/src/libs/Together/Generated/Together.RlClient.StopTrainingSession.g.cs +++ b/src/libs/Together/Generated/Together.RlClient.StopTrainingSession.g.cs @@ -98,13 +98,13 @@ partial void ProcessStopTrainingSessionResponseContent( if (ReadResponseAsString) { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } else { __content_default = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerContext); + __value_default = global::Together.ErrorData.FromJson(__content_default, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -148,7 +148,7 @@ partial void ProcessStopTrainingSessionResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.RlTrainingSession.FromJson(__content, JsonSerializerContext) ?? + global::Together.RlTrainingSession.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -179,7 +179,7 @@ partial void ProcessStopTrainingSessionResponseContent( ).ConfigureAwait(false); return - await global::Together.RlTrainingSession.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.RlTrainingSession.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.RlClient.g.cs b/src/libs/Together/Generated/Together.RlClient.g.cs index 7fcccebf..436793c8 100644 --- a/src/libs/Together/Generated/Together.RlClient.g.cs +++ b/src/libs/Together/Generated/Together.RlClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class RlClient : global::Together.IRlClient, global::Syste /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.SecretsClient.CreateDeploymentsSecrets.g.cs b/src/libs/Together/Generated/Together.SecretsClient.CreateDeploymentsSecrets.g.cs index e04f7d00..b2d99a73 100644 --- a/src/libs/Together/Generated/Together.SecretsClient.CreateDeploymentsSecrets.g.cs +++ b/src/libs/Together/Generated/Together.SecretsClient.CreateDeploymentsSecrets.g.cs @@ -73,7 +73,7 @@ partial void ProcessCreateDeploymentsSecretsResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -110,13 +110,13 @@ partial void ProcessCreateDeploymentsSecretsResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -148,13 +148,13 @@ partial void ProcessCreateDeploymentsSecretsResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -198,7 +198,7 @@ partial void ProcessCreateDeploymentsSecretsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.SecretResponseItem.FromJson(__content, JsonSerializerContext) ?? + global::Together.SecretResponseItem.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -229,7 +229,7 @@ partial void ProcessCreateDeploymentsSecretsResponseContent( ).ConfigureAwait(false); return - await global::Together.SecretResponseItem.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.SecretResponseItem.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.SecretsClient.DeleteDeploymentsSecretsById.g.cs b/src/libs/Together/Generated/Together.SecretsClient.DeleteDeploymentsSecretsById.g.cs index 6b98748f..5281155f 100644 --- a/src/libs/Together/Generated/Together.SecretsClient.DeleteDeploymentsSecretsById.g.cs +++ b/src/libs/Together/Generated/Together.SecretsClient.DeleteDeploymentsSecretsById.g.cs @@ -103,13 +103,13 @@ partial void ProcessDeleteDeploymentsSecretsByIdResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -141,13 +141,13 @@ partial void ProcessDeleteDeploymentsSecretsByIdResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.SecretsClient.EditDeploymentsSecretsById.g.cs b/src/libs/Together/Generated/Together.SecretsClient.EditDeploymentsSecretsById.g.cs index 052b1166..e42b0c44 100644 --- a/src/libs/Together/Generated/Together.SecretsClient.EditDeploymentsSecretsById.g.cs +++ b/src/libs/Together/Generated/Together.SecretsClient.EditDeploymentsSecretsById.g.cs @@ -80,7 +80,7 @@ partial void ProcessEditDeploymentsSecretsByIdResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -118,13 +118,13 @@ partial void ProcessEditDeploymentsSecretsByIdResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -156,13 +156,13 @@ partial void ProcessEditDeploymentsSecretsByIdResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -194,13 +194,13 @@ partial void ProcessEditDeploymentsSecretsByIdResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -244,7 +244,7 @@ partial void ProcessEditDeploymentsSecretsByIdResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.SecretResponseItem.FromJson(__content, JsonSerializerContext) ?? + global::Together.SecretResponseItem.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -275,7 +275,7 @@ partial void ProcessEditDeploymentsSecretsByIdResponseContent( ).ConfigureAwait(false); return - await global::Together.SecretResponseItem.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.SecretResponseItem.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.SecretsClient.GetDeploymentsSecrets.g.cs b/src/libs/Together/Generated/Together.SecretsClient.GetDeploymentsSecrets.g.cs index 5dc1acd2..17992214 100644 --- a/src/libs/Together/Generated/Together.SecretsClient.GetDeploymentsSecrets.g.cs +++ b/src/libs/Together/Generated/Together.SecretsClient.GetDeploymentsSecrets.g.cs @@ -96,13 +96,13 @@ partial void ProcessGetDeploymentsSecretsResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -146,7 +146,7 @@ partial void ProcessGetDeploymentsSecretsResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.ListSecretsResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.ListSecretsResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -177,7 +177,7 @@ partial void ProcessGetDeploymentsSecretsResponseContent( ).ConfigureAwait(false); return - await global::Together.ListSecretsResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.ListSecretsResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.SecretsClient.GetDeploymentsSecretsById.g.cs b/src/libs/Together/Generated/Together.SecretsClient.GetDeploymentsSecretsById.g.cs index 8e3dfd14..655e96b2 100644 --- a/src/libs/Together/Generated/Together.SecretsClient.GetDeploymentsSecretsById.g.cs +++ b/src/libs/Together/Generated/Together.SecretsClient.GetDeploymentsSecretsById.g.cs @@ -104,13 +104,13 @@ partial void ProcessGetDeploymentsSecretsByIdResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -142,13 +142,13 @@ partial void ProcessGetDeploymentsSecretsByIdResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -192,7 +192,7 @@ partial void ProcessGetDeploymentsSecretsByIdResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.SecretResponseItem.FromJson(__content, JsonSerializerContext) ?? + global::Together.SecretResponseItem.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -223,7 +223,7 @@ partial void ProcessGetDeploymentsSecretsByIdResponseContent( ).ConfigureAwait(false); return - await global::Together.SecretResponseItem.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.SecretResponseItem.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.SecretsClient.g.cs b/src/libs/Together/Generated/Together.SecretsClient.g.cs index dfca3b62..3eb3a483 100644 --- a/src/libs/Together/Generated/Together.SecretsClient.g.cs +++ b/src/libs/Together/Generated/Together.SecretsClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class SecretsClient : global::Together.ISecretsClient, glo /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceCreate.g.cs b/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceCreate.g.cs index c5c2d330..e9be0985 100644 --- a/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceCreate.g.cs +++ b/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceCreate.g.cs @@ -79,7 +79,7 @@ partial void ProcessSharedVolumeServiceCreateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -128,7 +128,7 @@ partial void ProcessSharedVolumeServiceCreateResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.GPUClustersSharedVolume.FromJson(__content, JsonSerializerContext) ?? + global::Together.GPUClustersSharedVolume.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -159,7 +159,7 @@ partial void ProcessSharedVolumeServiceCreateResponseContent( ).ConfigureAwait(false); return - await global::Together.GPUClustersSharedVolume.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.GPUClustersSharedVolume.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceDelete.g.cs b/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceDelete.g.cs index a6062502..d8043661 100644 --- a/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceDelete.g.cs +++ b/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceDelete.g.cs @@ -116,7 +116,7 @@ partial void ProcessSharedVolumeServiceDeleteResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.GPUClustersSharedVolumeDeleteResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.GPUClustersSharedVolumeDeleteResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessSharedVolumeServiceDeleteResponseContent( ).ConfigureAwait(false); return - await global::Together.GPUClustersSharedVolumeDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.GPUClustersSharedVolumeDeleteResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceGet.g.cs b/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceGet.g.cs index 88196932..270d78f9 100644 --- a/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceGet.g.cs +++ b/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceGet.g.cs @@ -116,7 +116,7 @@ partial void ProcessSharedVolumeServiceGetResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.GPUClustersSharedVolume.FromJson(__content, JsonSerializerContext) ?? + global::Together.GPUClustersSharedVolume.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -147,7 +147,7 @@ partial void ProcessSharedVolumeServiceGetResponseContent( ).ConfigureAwait(false); return - await global::Together.GPUClustersSharedVolume.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.GPUClustersSharedVolume.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceList.g.cs b/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceList.g.cs index 4216c6f3..48f4466c 100644 --- a/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceList.g.cs +++ b/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceList.g.cs @@ -108,7 +108,7 @@ partial void ProcessSharedVolumeServiceListResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.GPUClustersSharedVolumes.FromJson(__content, JsonSerializerContext) ?? + global::Together.GPUClustersSharedVolumes.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -139,7 +139,7 @@ partial void ProcessSharedVolumeServiceListResponseContent( ).ConfigureAwait(false); return - await global::Together.GPUClustersSharedVolumes.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.GPUClustersSharedVolumes.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceUpdate.g.cs b/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceUpdate.g.cs index 8190b086..e263dae8 100644 --- a/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceUpdate.g.cs +++ b/src/libs/Together/Generated/Together.SharedVolumeServiceClient.SharedVolumeServiceUpdate.g.cs @@ -77,7 +77,7 @@ partial void ProcessSharedVolumeServiceUpdateResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -126,7 +126,7 @@ partial void ProcessSharedVolumeServiceUpdateResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.GPUClustersSharedVolume.FromJson(__content, JsonSerializerContext) ?? + global::Together.GPUClustersSharedVolume.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -157,7 +157,7 @@ partial void ProcessSharedVolumeServiceUpdateResponseContent( ).ConfigureAwait(false); return - await global::Together.GPUClustersSharedVolume.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.GPUClustersSharedVolume.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.SharedVolumeServiceClient.g.cs b/src/libs/Together/Generated/Together.SharedVolumeServiceClient.g.cs index 89f31fbb..f7f1879f 100644 --- a/src/libs/Together/Generated/Together.SharedVolumeServiceClient.g.cs +++ b/src/libs/Together/Generated/Together.SharedVolumeServiceClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class SharedVolumeServiceClient : global::Together.IShared /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.TogetherClient.g.cs b/src/libs/Together/Generated/Together.TogetherClient.g.cs index 21d99a86..e1a759e8 100644 --- a/src/libs/Together/Generated/Together.TogetherClient.g.cs +++ b/src/libs/Together/Generated/Together.TogetherClient.g.cs @@ -34,7 +34,340 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + #pragma warning disable CS0618 // Type or member is obsolete + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions + { + PropertyNameCaseInsensitive = true, + DefaultIgnoreCondition = global::System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull, + Converters = + { + new global::Together.JsonConverters.RlDTypeJsonConverter(), + new global::Together.JsonConverters.RlDTypeNullableJsonConverter(), + new global::Together.JsonConverters.RlLossTypeJsonConverter(), + new global::Together.JsonConverters.RlLossTypeNullableJsonConverter(), + new global::Together.JsonConverters.RlGRPOLossAggregationTypeJsonConverter(), + new global::Together.JsonConverters.RlGRPOLossAggregationTypeNullableJsonConverter(), + new global::Together.JsonConverters.RlTrainingOperationErrorCodeJsonConverter(), + new global::Together.JsonConverters.RlTrainingOperationErrorCodeNullableJsonConverter(), + new global::Together.JsonConverters.RlTrainingOperationStatusJsonConverter(), + new global::Together.JsonConverters.RlTrainingOperationStatusNullableJsonConverter(), + new global::Together.JsonConverters.RlTrainingSessionStatusJsonConverter(), + new global::Together.JsonConverters.RlTrainingSessionStatusNullableJsonConverter(), + new global::Together.JsonConverters.RlCheckpointVariantJsonConverter(), + new global::Together.JsonConverters.RlCheckpointVariantNullableJsonConverter(), + new global::Together.JsonConverters.GPUClusterCreateRequestClusterTypeJsonConverter(), + new global::Together.JsonConverters.GPUClusterCreateRequestClusterTypeNullableJsonConverter(), + new global::Together.JsonConverters.GPUClusterCreateRequestGpuTypeJsonConverter(), + new global::Together.JsonConverters.GPUClusterCreateRequestGpuTypeNullableJsonConverter(), + new global::Together.JsonConverters.GPUClusterCreateRequestDriverVersionJsonConverter(), + new global::Together.JsonConverters.GPUClusterCreateRequestDriverVersionNullableJsonConverter(), + new global::Together.JsonConverters.GPUClusterCreateRequestBillingTypeJsonConverter(), + new global::Together.JsonConverters.GPUClusterCreateRequestBillingTypeNullableJsonConverter(), + new global::Together.JsonConverters.GPUClusterInfoClusterTypeJsonConverter(), + new global::Together.JsonConverters.GPUClusterInfoClusterTypeNullableJsonConverter(), + new global::Together.JsonConverters.GPUClusterInfoGpuTypeJsonConverter(), + new global::Together.JsonConverters.GPUClusterInfoGpuTypeNullableJsonConverter(), + new global::Together.JsonConverters.GPUClusterInfoDriverVersionJsonConverter(), + new global::Together.JsonConverters.GPUClusterInfoDriverVersionNullableJsonConverter(), + new global::Together.JsonConverters.GPUClusterInfoStatusJsonConverter(), + new global::Together.JsonConverters.GPUClusterInfoStatusNullableJsonConverter(), + new global::Together.JsonConverters.GPUClusterUpdateRequestClusterTypeJsonConverter(), + new global::Together.JsonConverters.GPUClusterUpdateRequestClusterTypeNullableJsonConverter(), + new global::Together.JsonConverters.InstanceTypesResponseTypeJsonConverter(), + new global::Together.JsonConverters.InstanceTypesResponseTypeNullableJsonConverter(), + new global::Together.JsonConverters.GPUClustersSharedVolumeStatusJsonConverter(), + new global::Together.JsonConverters.GPUClustersSharedVolumeStatusNullableJsonConverter(), + new global::Together.JsonConverters.RerankRequestModelJsonConverter(), + new global::Together.JsonConverters.RerankRequestModelNullableJsonConverter(), + new global::Together.JsonConverters.FinishReasonJsonConverter(), + new global::Together.JsonConverters.FinishReasonNullableJsonConverter(), + new global::Together.JsonConverters.CompletionRequestModelJsonConverter(), + new global::Together.JsonConverters.CompletionRequestModelNullableJsonConverter(), + new global::Together.JsonConverters.CompletionRequestSafetyModelJsonConverter(), + new global::Together.JsonConverters.CompletionRequestSafetyModelNullableJsonConverter(), + new global::Together.JsonConverters.CompletionChoiceDeltaRoleJsonConverter(), + new global::Together.JsonConverters.CompletionChoiceDeltaRoleNullableJsonConverter(), + new global::Together.JsonConverters.ChatCompletionMessageRoleJsonConverter(), + new global::Together.JsonConverters.ChatCompletionMessageRoleNullableJsonConverter(), + new global::Together.JsonConverters.ChatCompletionToolTypeJsonConverter(), + new global::Together.JsonConverters.ChatCompletionToolTypeNullableJsonConverter(), + new global::Together.JsonConverters.ChatCompletionRequestContextLengthExceededBehaviorJsonConverter(), + new global::Together.JsonConverters.ChatCompletionRequestContextLengthExceededBehaviorNullableJsonConverter(), + new global::Together.JsonConverters.ChatCompletionRequestFunctionCallEnumJsonConverter(), + new global::Together.JsonConverters.ChatCompletionRequestFunctionCallEnumNullableJsonConverter(), + new global::Together.JsonConverters.ChatCompletionRequestReasoningEffortJsonConverter(), + new global::Together.JsonConverters.ChatCompletionRequestReasoningEffortNullableJsonConverter(), + new global::Together.JsonConverters.ResponseFormatTextTypeJsonConverter(), + new global::Together.JsonConverters.ResponseFormatTextTypeNullableJsonConverter(), + new global::Together.JsonConverters.ResponseFormatJsonObjectTypeJsonConverter(), + new global::Together.JsonConverters.ResponseFormatJsonObjectTypeNullableJsonConverter(), + new global::Together.JsonConverters.ResponseFormatJsonSchemaTypeJsonConverter(), + new global::Together.JsonConverters.ResponseFormatJsonSchemaTypeNullableJsonConverter(), + new global::Together.JsonConverters.ChatCompletionSystemMessageParamRoleJsonConverter(), + new global::Together.JsonConverters.ChatCompletionSystemMessageParamRoleNullableJsonConverter(), + new global::Together.JsonConverters.ChatCompletionUserMessageParamRoleJsonConverter(), + new global::Together.JsonConverters.ChatCompletionUserMessageParamRoleNullableJsonConverter(), + new global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemVariant1TypeJsonConverter(), + new global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemVariant1TypeNullableJsonConverter(), + new global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemVariant2TypeJsonConverter(), + new global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemVariant2TypeNullableJsonConverter(), + new global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemVideoTypeJsonConverter(), + new global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemVideoTypeNullableJsonConverter(), + new global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemAudioTypeJsonConverter(), + new global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemAudioTypeNullableJsonConverter(), + new global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemInputAudioTypeJsonConverter(), + new global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemInputAudioTypeNullableJsonConverter(), + new global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemInputAudioInputAudioFormatJsonConverter(), + new global::Together.JsonConverters.ChatCompletionUserMessageContentMultimodalItemInputAudioInputAudioFormatNullableJsonConverter(), + new global::Together.JsonConverters.ChatCompletionAssistantMessageParamRoleJsonConverter(), + new global::Together.JsonConverters.ChatCompletionAssistantMessageParamRoleNullableJsonConverter(), + new global::Together.JsonConverters.ChatCompletionFunctionMessageParamRoleJsonConverter(), + new global::Together.JsonConverters.ChatCompletionFunctionMessageParamRoleNullableJsonConverter(), + new global::Together.JsonConverters.ChatCompletionToolMessageParamRoleJsonConverter(), + new global::Together.JsonConverters.ChatCompletionToolMessageParamRoleNullableJsonConverter(), + new global::Together.JsonConverters.ChatCompletionChunkChoiceDeltaRoleJsonConverter(), + new global::Together.JsonConverters.ChatCompletionChunkChoiceDeltaRoleNullableJsonConverter(), + new global::Together.JsonConverters.AudioSpeechRequestModelJsonConverter(), + new global::Together.JsonConverters.AudioSpeechRequestModelNullableJsonConverter(), + new global::Together.JsonConverters.AudioSpeechRequestResponseFormatJsonConverter(), + new global::Together.JsonConverters.AudioSpeechRequestResponseFormatNullableJsonConverter(), + new global::Together.JsonConverters.AudioSpeechRequestLanguageJsonConverter(), + new global::Together.JsonConverters.AudioSpeechRequestLanguageNullableJsonConverter(), + new global::Together.JsonConverters.AudioSpeechRequestResponseEncodingJsonConverter(), + new global::Together.JsonConverters.AudioSpeechRequestResponseEncodingNullableJsonConverter(), + new global::Together.JsonConverters.AudioTranscriptionRequestModelJsonConverter(), + new global::Together.JsonConverters.AudioTranscriptionRequestModelNullableJsonConverter(), + new global::Together.JsonConverters.AudioTranscriptionRequestResponseFormatJsonConverter(), + new global::Together.JsonConverters.AudioTranscriptionRequestResponseFormatNullableJsonConverter(), + new global::Together.JsonConverters.AudioTranscriptionRequestTimestampGranularitiesJsonConverter(), + new global::Together.JsonConverters.AudioTranscriptionRequestTimestampGranularitiesNullableJsonConverter(), + new global::Together.JsonConverters.AudioTranscriptionRequestTimestampGranularitieJsonConverter(), + new global::Together.JsonConverters.AudioTranscriptionRequestTimestampGranularitieNullableJsonConverter(), + new global::Together.JsonConverters.AudioTranscriptionVerboseJsonResponseTaskJsonConverter(), + new global::Together.JsonConverters.AudioTranscriptionVerboseJsonResponseTaskNullableJsonConverter(), + new global::Together.JsonConverters.AudioTranslationRequestModelJsonConverter(), + new global::Together.JsonConverters.AudioTranslationRequestModelNullableJsonConverter(), + new global::Together.JsonConverters.AudioTranslationRequestResponseFormatJsonConverter(), + new global::Together.JsonConverters.AudioTranslationRequestResponseFormatNullableJsonConverter(), + new global::Together.JsonConverters.AudioTranslationRequestTimestampGranularitiesJsonConverter(), + new global::Together.JsonConverters.AudioTranslationRequestTimestampGranularitiesNullableJsonConverter(), + new global::Together.JsonConverters.AudioTranslationRequestTimestampGranularitieJsonConverter(), + new global::Together.JsonConverters.AudioTranslationRequestTimestampGranularitieNullableJsonConverter(), + new global::Together.JsonConverters.AudioTranslationVerboseJsonResponseTaskJsonConverter(), + new global::Together.JsonConverters.AudioTranslationVerboseJsonResponseTaskNullableJsonConverter(), + new global::Together.JsonConverters.StreamSentinelDataJsonConverter(), + new global::Together.JsonConverters.StreamSentinelDataNullableJsonConverter(), + new global::Together.JsonConverters.ChatCompletionChoiceDeltaRoleJsonConverter(), + new global::Together.JsonConverters.ChatCompletionChoiceDeltaRoleNullableJsonConverter(), + new global::Together.JsonConverters.EmbeddingsRequestModelJsonConverter(), + new global::Together.JsonConverters.EmbeddingsRequestModelNullableJsonConverter(), + new global::Together.JsonConverters.ModelInfoTypeJsonConverter(), + new global::Together.JsonConverters.ModelInfoTypeNullableJsonConverter(), + new global::Together.JsonConverters.ModelUploadRequestModelTypeJsonConverter(), + new global::Together.JsonConverters.ModelUploadRequestModelTypeNullableJsonConverter(), + new global::Together.JsonConverters.ImageResponseDataB64TypeJsonConverter(), + new global::Together.JsonConverters.ImageResponseDataB64TypeNullableJsonConverter(), + new global::Together.JsonConverters.ImageResponseDataUrlTypeJsonConverter(), + new global::Together.JsonConverters.ImageResponseDataUrlTypeNullableJsonConverter(), + new global::Together.JsonConverters.JobInfoSuccessResponseStatusJsonConverter(), + new global::Together.JsonConverters.JobInfoSuccessResponseStatusNullableJsonConverter(), + new global::Together.JsonConverters.ToolChoiceTypeJsonConverter(), + new global::Together.JsonConverters.ToolChoiceTypeNullableJsonConverter(), + new global::Together.JsonConverters.FilePurposeJsonConverter(), + new global::Together.JsonConverters.FilePurposeNullableJsonConverter(), + new global::Together.JsonConverters.FileTypeJsonConverter(), + new global::Together.JsonConverters.FileTypeNullableJsonConverter(), + new global::Together.JsonConverters.FinetuneResponseBatchSizeJsonConverter(), + new global::Together.JsonConverters.FinetuneResponseBatchSizeNullableJsonConverter(), + new global::Together.JsonConverters.FinetuneResponseTrainOnInputsJsonConverter(), + new global::Together.JsonConverters.FinetuneResponseTrainOnInputsNullableJsonConverter(), + new global::Together.JsonConverters.FinetuneJobStatusJsonConverter(), + new global::Together.JsonConverters.FinetuneJobStatusNullableJsonConverter(), + new global::Together.JsonConverters.FinetuneEventLevelsJsonConverter(), + new global::Together.JsonConverters.FinetuneEventLevelsNullableJsonConverter(), + new global::Together.JsonConverters.FinetuneEventTypeJsonConverter(), + new global::Together.JsonConverters.FinetuneEventTypeNullableJsonConverter(), + new global::Together.JsonConverters.FullTrainingTypeTypeJsonConverter(), + new global::Together.JsonConverters.FullTrainingTypeTypeNullableJsonConverter(), + new global::Together.JsonConverters.LoRATrainingTypeTypeJsonConverter(), + new global::Together.JsonConverters.LoRATrainingTypeTypeNullableJsonConverter(), + new global::Together.JsonConverters.TrainingMethodSFTMethodJsonConverter(), + new global::Together.JsonConverters.TrainingMethodSFTMethodNullableJsonConverter(), + new global::Together.JsonConverters.TrainingMethodSFTTrainOnInputsJsonConverter(), + new global::Together.JsonConverters.TrainingMethodSFTTrainOnInputsNullableJsonConverter(), + new global::Together.JsonConverters.TrainingMethodDPOMethodJsonConverter(), + new global::Together.JsonConverters.TrainingMethodDPOMethodNullableJsonConverter(), + new global::Together.JsonConverters.LRSchedulerLrSchedulerTypeJsonConverter(), + new global::Together.JsonConverters.LRSchedulerLrSchedulerTypeNullableJsonConverter(), + new global::Together.JsonConverters.HardwareAvailabilityStatusJsonConverter(), + new global::Together.JsonConverters.HardwareAvailabilityStatusNullableJsonConverter(), + new global::Together.JsonConverters.CreateEndpointRequestStateJsonConverter(), + new global::Together.JsonConverters.CreateEndpointRequestStateNullableJsonConverter(), + new global::Together.JsonConverters.DedicatedEndpointTypeJsonConverter(), + new global::Together.JsonConverters.DedicatedEndpointTypeNullableJsonConverter(), + new global::Together.JsonConverters.DedicatedEndpointStateJsonConverter(), + new global::Together.JsonConverters.DedicatedEndpointStateNullableJsonConverter(), + new global::Together.JsonConverters.ListEndpointTypeJsonConverter(), + new global::Together.JsonConverters.ListEndpointTypeNullableJsonConverter(), + new global::Together.JsonConverters.ListEndpointStateJsonConverter(), + new global::Together.JsonConverters.ListEndpointStateNullableJsonConverter(), + new global::Together.JsonConverters.DisplayorExecuteOutputTypeJsonConverter(), + new global::Together.JsonConverters.DisplayorExecuteOutputTypeNullableJsonConverter(), + new global::Together.JsonConverters.ErrorOutputTypeJsonConverter(), + new global::Together.JsonConverters.ErrorOutputTypeNullableJsonConverter(), + new global::Together.JsonConverters.ExecuteRequestFileEncodingJsonConverter(), + new global::Together.JsonConverters.ExecuteRequestFileEncodingNullableJsonConverter(), + new global::Together.JsonConverters.ExecuteRequestLanguageJsonConverter(), + new global::Together.JsonConverters.ExecuteRequestLanguageNullableJsonConverter(), + new global::Together.JsonConverters.ExecuteResponseSuccessfulExecutionDataOutputStreamOutputTypeJsonConverter(), + new global::Together.JsonConverters.ExecuteResponseSuccessfulExecutionDataOutputStreamOutputTypeNullableJsonConverter(), + new global::Together.JsonConverters.ExecuteResponseSuccessfulExecutionDataOutputErrorOutputTypeJsonConverter(), + new global::Together.JsonConverters.ExecuteResponseSuccessfulExecutionDataOutputErrorOutputTypeNullableJsonConverter(), + new global::Together.JsonConverters.ExecuteResponseSuccessfulExecutionDataOutputDisplayorExecuteOutputTypeJsonConverter(), + new global::Together.JsonConverters.ExecuteResponseSuccessfulExecutionDataOutputDisplayorExecuteOutputTypeNullableJsonConverter(), + new global::Together.JsonConverters.ExecuteResponseSuccessfulExecutionDataStatusJsonConverter(), + new global::Together.JsonConverters.ExecuteResponseSuccessfulExecutionDataStatusNullableJsonConverter(), + new global::Together.JsonConverters.InterpreterOutputStreamOutputTypeJsonConverter(), + new global::Together.JsonConverters.InterpreterOutputStreamOutputTypeNullableJsonConverter(), + new global::Together.JsonConverters.InterpreterOutputErrorOutputTypeJsonConverter(), + new global::Together.JsonConverters.InterpreterOutputErrorOutputTypeNullableJsonConverter(), + new global::Together.JsonConverters.InterpreterOutputDisplayorExecuteOutputTypeJsonConverter(), + new global::Together.JsonConverters.InterpreterOutputDisplayorExecuteOutputTypeNullableJsonConverter(), + new global::Together.JsonConverters.StreamOutputTypeJsonConverter(), + new global::Together.JsonConverters.StreamOutputTypeNullableJsonConverter(), + new global::Together.JsonConverters.BatchJobStatusJsonConverter(), + new global::Together.JsonConverters.BatchJobStatusNullableJsonConverter(), + new global::Together.JsonConverters.EvaluationTypedRequestTypeJsonConverter(), + new global::Together.JsonConverters.EvaluationTypedRequestTypeNullableJsonConverter(), + new global::Together.JsonConverters.EvaluationJudgeModelConfigModelSourceJsonConverter(), + new global::Together.JsonConverters.EvaluationJudgeModelConfigModelSourceNullableJsonConverter(), + new global::Together.JsonConverters.EvaluationModelRequestModelSourceJsonConverter(), + new global::Together.JsonConverters.EvaluationModelRequestModelSourceNullableJsonConverter(), + new global::Together.JsonConverters.EvaluationResponseStatusJsonConverter(), + new global::Together.JsonConverters.EvaluationResponseStatusNullableJsonConverter(), + new global::Together.JsonConverters.EvaluationJobTypeJsonConverter(), + new global::Together.JsonConverters.EvaluationJobTypeNullableJsonConverter(), + new global::Together.JsonConverters.EvaluationJobStatusJsonConverter(), + new global::Together.JsonConverters.EvaluationJobStatusNullableJsonConverter(), + new global::Together.JsonConverters.VideoStatusJsonConverter(), + new global::Together.JsonConverters.VideoStatusNullableJsonConverter(), + new global::Together.JsonConverters.VideoFrameImageInputFrameJsonConverter(), + new global::Together.JsonConverters.VideoFrameImageInputFrameNullableJsonConverter(), + new global::Together.JsonConverters.VideoOutputFormatJsonConverter(), + new global::Together.JsonConverters.VideoOutputFormatNullableJsonConverter(), + new global::Together.JsonConverters.CreateDeploymentRequestGpuTypeJsonConverter(), + new global::Together.JsonConverters.CreateDeploymentRequestGpuTypeNullableJsonConverter(), + new global::Together.JsonConverters.DeploymentResponseItemGpuTypeJsonConverter(), + new global::Together.JsonConverters.DeploymentResponseItemGpuTypeNullableJsonConverter(), + new global::Together.JsonConverters.DeploymentStatusJsonConverter(), + new global::Together.JsonConverters.DeploymentStatusNullableJsonConverter(), + new global::Together.JsonConverters.HTTPAutoscalingConfigMetricJsonConverter(), + new global::Together.JsonConverters.HTTPAutoscalingConfigMetricNullableJsonConverter(), + new global::Together.JsonConverters.QueueAutoscalingConfigMetricJsonConverter(), + new global::Together.JsonConverters.QueueAutoscalingConfigMetricNullableJsonConverter(), + new global::Together.JsonConverters.CustomMetricAutoscalingConfigMetricJsonConverter(), + new global::Together.JsonConverters.CustomMetricAutoscalingConfigMetricNullableJsonConverter(), + new global::Together.JsonConverters.UpdateDeploymentRequestGpuTypeJsonConverter(), + new global::Together.JsonConverters.UpdateDeploymentRequestGpuTypeNullableJsonConverter(), + new global::Together.JsonConverters.VolumeContentRequestTypeJsonConverter(), + new global::Together.JsonConverters.VolumeContentRequestTypeNullableJsonConverter(), + new global::Together.JsonConverters.VolumeContentTypeJsonConverter(), + new global::Together.JsonConverters.VolumeContentTypeNullableJsonConverter(), + new global::Together.JsonConverters.VolumeTypeJsonConverter(), + new global::Together.JsonConverters.VolumeTypeNullableJsonConverter(), + new global::Together.JsonConverters.QueueCancelResponseStatusJsonConverter(), + new global::Together.JsonConverters.QueueCancelResponseStatusNullableJsonConverter(), + new global::Together.JsonConverters.QueueJobStatusResponseStatusJsonConverter(), + new global::Together.JsonConverters.QueueJobStatusResponseStatusNullableJsonConverter(), + new global::Together.JsonConverters.CreateImagesGenerationsRequestModelJsonConverter(), + new global::Together.JsonConverters.CreateImagesGenerationsRequestModelNullableJsonConverter(), + new global::Together.JsonConverters.CreateImagesGenerationsRequestResponseFormatJsonConverter(), + new global::Together.JsonConverters.CreateImagesGenerationsRequestResponseFormatNullableJsonConverter(), + new global::Together.JsonConverters.CreateImagesGenerationsRequestOutputFormatJsonConverter(), + new global::Together.JsonConverters.CreateImagesGenerationsRequestOutputFormatNullableJsonConverter(), + new global::Together.JsonConverters.CreateFineTunesRequestBatchSizeJsonConverter(), + new global::Together.JsonConverters.CreateFineTunesRequestBatchSizeNullableJsonConverter(), + new global::Together.JsonConverters.CreateFineTunesRequestTrainOnInputsJsonConverter(), + new global::Together.JsonConverters.CreateFineTunesRequestTrainOnInputsNullableJsonConverter(), + new global::Together.JsonConverters.UpdateEndpointRequestStateJsonConverter(), + new global::Together.JsonConverters.UpdateEndpointRequestStateNullableJsonConverter(), + new global::Together.JsonConverters.GetFinetuneDownloadCheckpointJsonConverter(), + new global::Together.JsonConverters.GetFinetuneDownloadCheckpointNullableJsonConverter(), + new global::Together.JsonConverters.RealtimeTtsModelJsonConverter(), + new global::Together.JsonConverters.RealtimeTtsModelNullableJsonConverter(), + new global::Together.JsonConverters.ListEndpointsTypeJsonConverter(), + new global::Together.JsonConverters.ListEndpointsTypeNullableJsonConverter(), + new global::Together.JsonConverters.ListEndpointsUsageTypeJsonConverter(), + new global::Together.JsonConverters.ListEndpointsUsageTypeNullableJsonConverter(), + new global::Together.JsonConverters.RealtimeTranscriptionInputAudioFormatJsonConverter(), + new global::Together.JsonConverters.RealtimeTranscriptionInputAudioFormatNullableJsonConverter(), + new global::Together.JsonConverters.GetEvaluationJobStatusAndResultsResponseStatusJsonConverter(), + new global::Together.JsonConverters.GetEvaluationJobStatusAndResultsResponseStatusNullableJsonConverter(), + new global::Together.JsonConverters.CompletionStreamJsonConverter(), + new global::Together.JsonConverters.ResponseFormatJsonConverter(), + new global::Together.JsonConverters.ChatCompletionMessageParamJsonConverter(), + new global::Together.JsonConverters.ChatCompletionUserMessageContentJsonConverter(), + new global::Together.JsonConverters.ChatCompletionStreamJsonConverter(), + new global::Together.JsonConverters.AudioTranscriptionResponseJsonConverter(), + new global::Together.JsonConverters.AudioTranslationResponseJsonConverter(), + new global::Together.JsonConverters.AudioSpeechStreamResponseJsonConverter(), + new global::Together.JsonConverters.DataItem3JsonConverter(), + new global::Together.JsonConverters.ErrorJsonConverter(), + new global::Together.JsonConverters.ExecuteResponseJsonConverter(), + new global::Together.JsonConverters.OutputsItemJsonConverter(), + new global::Together.JsonConverters.InterpreterOutputJsonConverter(), + new global::Together.JsonConverters.SessionListResponseJsonConverter(), + new global::Together.JsonConverters.EvaluationModelOrStringJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.AnyOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter, global::System.Collections.Generic.IList>(), + new global::Together.JsonConverters.AnyOfJsonConverter(), + new global::Together.JsonConverters.AnyOfJsonConverter(), + new global::Together.JsonConverters.AllOfJsonConverter(), + new global::Together.JsonConverters.AllOfJsonConverter(), + new global::Together.JsonConverters.AllOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.AllOfJsonConverter(), + new global::Together.JsonConverters.AnyOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter>(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter>(), + new global::Together.JsonConverters.AnyOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter>(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.AnyOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.AnyOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.AnyOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.OneOfJsonConverter(), + new global::Together.JsonConverters.UnixTimestampJsonConverter(), + } + }; + #pragma warning restore CS0618 // Type or member is obsolete /// @@ -43,7 +376,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public AudioClient Audio => new AudioClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -52,7 +385,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public BatchesClient Batches => new BatchesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -61,7 +394,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public ChatClient Chat => new ChatClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -70,7 +403,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public CodeInterpreterClient CodeInterpreter => new CodeInterpreterClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -79,7 +412,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public CompletionClient Completion => new CompletionClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -88,7 +421,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public DeploymentsClient Deployments => new DeploymentsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -97,7 +430,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public DeploymentsStorageClient DeploymentsStorage => new DeploymentsStorageClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -106,7 +439,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public DeploymentsVolumesClient DeploymentsVolumes => new DeploymentsVolumesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -115,7 +448,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public EmbeddingsClient Embeddings => new EmbeddingsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -124,7 +457,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public EndpointsClient Endpoints => new EndpointsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -133,7 +466,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public Endpoints2Client Endpoints2 => new Endpoints2Client(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -142,7 +475,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public EvaluationClient Evaluation => new EvaluationClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -151,7 +484,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public FilesClient Files => new FilesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -160,7 +493,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public FineTuningClient FineTuning => new FineTuningClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -169,7 +502,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public GPUClusterServiceClient GPUClusterService => new GPUClusterServiceClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -178,7 +511,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public HardwareClient Hardware => new HardwareClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -187,7 +520,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public ImagesClient Images => new ImagesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -196,7 +529,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public JobsClient Jobs => new JobsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -205,7 +538,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public ModelsClient Models => new ModelsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -214,7 +547,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public QueueClient Queue => new QueueClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -223,7 +556,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public RegionServiceClient RegionService => new RegionServiceClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -232,7 +565,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public RerankClient Rerank => new RerankClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -241,7 +574,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public RlClient Rl => new RlClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -250,7 +583,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public SecretsClient Secrets => new SecretsClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -259,7 +592,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public SharedVolumeServiceClient SharedVolumeService => new SharedVolumeServiceClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -268,7 +601,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public VideoClient Video => new VideoClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -277,7 +610,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public VoicesClient Voices => new VoicesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// @@ -286,7 +619,7 @@ public sealed partial class TogetherClient : global::Together.ITogetherClient, g public VolumesClient Volumes => new VolumesClient(HttpClient, authorizations: Authorizations) { ReadResponseAsString = ReadResponseAsString, - JsonSerializerContext = JsonSerializerContext, + JsonSerializerOptions = JsonSerializerOptions, }; /// diff --git a/src/libs/Together/Generated/Together.VideoClient.CreateVideo.g.cs b/src/libs/Together/Generated/Together.VideoClient.CreateVideo.g.cs index 658894f0..2c0dc95a 100644 --- a/src/libs/Together/Generated/Together.VideoClient.CreateVideo.g.cs +++ b/src/libs/Together/Generated/Together.VideoClient.CreateVideo.g.cs @@ -81,7 +81,7 @@ partial void ProcessCreateVideoResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -130,7 +130,7 @@ partial void ProcessCreateVideoResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.VideoJob.FromJson(__content, JsonSerializerContext) ?? + global::Together.VideoJob.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -161,7 +161,7 @@ partial void ProcessCreateVideoResponseContent( ).ConfigureAwait(false); return - await global::Together.VideoJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.VideoJob.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.VideoClient.RetrieveVideo.g.cs b/src/libs/Together/Generated/Together.VideoClient.RetrieveVideo.g.cs index 185d4eaf..db5beb0e 100644 --- a/src/libs/Together/Generated/Together.VideoClient.RetrieveVideo.g.cs +++ b/src/libs/Together/Generated/Together.VideoClient.RetrieveVideo.g.cs @@ -186,7 +186,7 @@ partial void ProcessRetrieveVideoResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.VideoJob.FromJson(__content, JsonSerializerContext) ?? + global::Together.VideoJob.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -217,7 +217,7 @@ partial void ProcessRetrieveVideoResponseContent( ).ConfigureAwait(false); return - await global::Together.VideoJob.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.VideoJob.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.VideoClient.g.cs b/src/libs/Together/Generated/Together.VideoClient.g.cs index 23350b24..840c5bdd 100644 --- a/src/libs/Together/Generated/Together.VideoClient.g.cs +++ b/src/libs/Together/Generated/Together.VideoClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class VideoClient : global::Together.IVideoClient, global: /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.VoicesClient.FetchVoices.g.cs b/src/libs/Together/Generated/Together.VoicesClient.FetchVoices.g.cs index 10368a71..28eabc2f 100644 --- a/src/libs/Together/Generated/Together.VoicesClient.FetchVoices.g.cs +++ b/src/libs/Together/Generated/Together.VoicesClient.FetchVoices.g.cs @@ -112,7 +112,7 @@ partial void ProcessFetchVoicesResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.ListVoicesResponse.FromJson(__content, JsonSerializerContext) ?? + global::Together.ListVoicesResponse.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -143,7 +143,7 @@ partial void ProcessFetchVoicesResponseContent( ).ConfigureAwait(false); return - await global::Together.ListVoicesResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.ListVoicesResponse.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.VoicesClient.g.cs b/src/libs/Together/Generated/Together.VoicesClient.g.cs index 43cbe1f3..43464990 100644 --- a/src/libs/Together/Generated/Together.VoicesClient.g.cs +++ b/src/libs/Together/Generated/Together.VoicesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class VoicesClient : global::Together.IVoicesClient, globa /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/Generated/Together.VolumesClient.DeleteDeploymentsStorageVolumesById.g.cs b/src/libs/Together/Generated/Together.VolumesClient.DeleteDeploymentsStorageVolumesById.g.cs index 3f3c4646..bb3355f5 100644 --- a/src/libs/Together/Generated/Together.VolumesClient.DeleteDeploymentsStorageVolumesById.g.cs +++ b/src/libs/Together/Generated/Together.VolumesClient.DeleteDeploymentsStorageVolumesById.g.cs @@ -98,13 +98,13 @@ partial void ProcessDeleteDeploymentsStorageVolumesByIdResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -136,13 +136,13 @@ partial void ProcessDeleteDeploymentsStorageVolumesByIdResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.VolumesClient.EditDeploymentsStorageVolumesById.g.cs b/src/libs/Together/Generated/Together.VolumesClient.EditDeploymentsStorageVolumesById.g.cs index d33fd881..bd6db1d8 100644 --- a/src/libs/Together/Generated/Together.VolumesClient.EditDeploymentsStorageVolumesById.g.cs +++ b/src/libs/Together/Generated/Together.VolumesClient.EditDeploymentsStorageVolumesById.g.cs @@ -75,7 +75,7 @@ partial void ProcessEditDeploymentsStorageVolumesByIdResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } - var __httpRequestContentBody = request.ToJson(JsonSerializerContext); + var __httpRequestContentBody = request.ToJson(JsonSerializerOptions); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, @@ -113,13 +113,13 @@ partial void ProcessEditDeploymentsStorageVolumesByIdResponseContent( if (ReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } else { __content_400 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::System.Text.Json.JsonSerializer.Deserialize(__content_400, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -151,13 +151,13 @@ partial void ProcessEditDeploymentsStorageVolumesByIdResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -189,13 +189,13 @@ partial void ProcessEditDeploymentsStorageVolumesByIdResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -239,7 +239,7 @@ partial void ProcessEditDeploymentsStorageVolumesByIdResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.VolumeResponseItem.FromJson(__content, JsonSerializerContext) ?? + global::Together.VolumeResponseItem.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -270,7 +270,7 @@ partial void ProcessEditDeploymentsStorageVolumesByIdResponseContent( ).ConfigureAwait(false); return - await global::Together.VolumeResponseItem.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.VolumeResponseItem.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.VolumesClient.GetDeploymentsStorageVolumesById.g.cs b/src/libs/Together/Generated/Together.VolumesClient.GetDeploymentsStorageVolumesById.g.cs index 6ea1c172..3ab6bc0c 100644 --- a/src/libs/Together/Generated/Together.VolumesClient.GetDeploymentsStorageVolumesById.g.cs +++ b/src/libs/Together/Generated/Together.VolumesClient.GetDeploymentsStorageVolumesById.g.cs @@ -98,13 +98,13 @@ partial void ProcessGetDeploymentsStorageVolumesByIdResponseContent( if (ReadResponseAsString) { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } else { __content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_404 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_404, typeof(string), JsonSerializerContext); + __value_404 = global::System.Text.Json.JsonSerializer.Deserialize(__content_404, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -136,13 +136,13 @@ partial void ProcessGetDeploymentsStorageVolumesByIdResponseContent( if (ReadResponseAsString) { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } else { __content_500 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); - __value_500 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_500, typeof(string), JsonSerializerContext); + __value_500 = global::System.Text.Json.JsonSerializer.Deserialize(__content_500, JsonSerializerOptions); } } catch (global::System.Exception __ex) @@ -186,7 +186,7 @@ partial void ProcessGetDeploymentsStorageVolumesByIdResponseContent( __response.EnsureSuccessStatusCode(); return - global::Together.VolumeResponseItem.FromJson(__content, JsonSerializerContext) ?? + global::Together.VolumeResponseItem.FromJson(__content, JsonSerializerOptions) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } catch (global::System.Exception __ex) @@ -217,7 +217,7 @@ partial void ProcessGetDeploymentsStorageVolumesByIdResponseContent( ).ConfigureAwait(false); return - await global::Together.VolumeResponseItem.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + await global::Together.VolumeResponseItem.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ?? throw new global::System.InvalidOperationException("Response deserialization failed."); } catch (global::System.Exception __ex) diff --git a/src/libs/Together/Generated/Together.VolumesClient.g.cs b/src/libs/Together/Generated/Together.VolumesClient.g.cs index 4d63aa5b..86522ea2 100644 --- a/src/libs/Together/Generated/Together.VolumesClient.g.cs +++ b/src/libs/Together/Generated/Together.VolumesClient.g.cs @@ -33,7 +33,7 @@ public sealed partial class VolumesClient : global::Together.IVolumesClient, glo /// /// /// - public global::System.Text.Json.Serialization.JsonSerializerContext JsonSerializerContext { get; set; } = global::Together.SourceGenerationContext.Default; + public global::System.Text.Json.JsonSerializerOptions JsonSerializerOptions { get; set; } = new global::System.Text.Json.JsonSerializerOptions(); /// diff --git a/src/libs/Together/openapi.yaml b/src/libs/Together/openapi.yaml index 1fc5f4a8..6f534521 100644 --- a/src/libs/Together/openapi.yaml +++ b/src/libs/Together/openapi.yaml @@ -7789,6 +7789,7 @@ components: - GRPO_LOSS_AGGREGATION_TYPE_UNSPECIFIED - GRPO_LOSS_AGGREGATION_TYPE_FIXED_HORIZON - GRPO_LOSS_AGGREGATION_TYPE_TOKEN_MEAN + - GRPO_LOSS_AGGREGATION_TYPE_SEQUENCE_MEAN default: GRPO_LOSS_AGGREGATION_TYPE_UNSPECIFIED RL.LossConfig: type: object @@ -7900,12 +7901,14 @@ components: properties: target_tokens: $ref: '#/components/schemas/RL.LossTargetTokens' - description: Target tokens for loss computation (optional, defaults to shifted input_ids) + description: Target tokens for loss computation loss_mask: $ref: '#/components/schemas/RL.LossMask' description: Per-token loss mask (1=compute loss, 0=ignore) grpo_inputs: $ref: '#/components/schemas/RL.GRPOLossInputs' + required: + - target_tokens RL.TrainingSample: type: object required: