diff --git a/src/libs/Together/Generated/Together..JsonSerializerContext.g.cs b/src/libs/Together/Generated/Together..JsonSerializerContext.g.cs index 211c3d4..22f9071 100644 --- a/src/libs/Together/Generated/Together..JsonSerializerContext.g.cs +++ b/src/libs/Together/Generated/Together..JsonSerializerContext.g.cs @@ -276,6 +276,7 @@ namespace Together 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), diff --git a/src/libs/Together/Generated/Together.EvaluationsClient.EvaluationUpdate.g.cs b/src/libs/Together/Generated/Together.EvaluationsClient.EvaluationUpdate.g.cs index bc5b39a..8a2d6da 100644 --- a/src/libs/Together/Generated/Together.EvaluationsClient.EvaluationUpdate.g.cs +++ b/src/libs/Together/Generated/Together.EvaluationsClient.EvaluationUpdate.g.cs @@ -291,9 +291,7 @@ partial void ProcessEvaluationUpdateResponseContent( /// /// Error message /// - /// - /// Job results (required when status is 'completed') - /// + /// /// /// The new status for the job /// @@ -303,7 +301,7 @@ partial void ProcessEvaluationUpdateResponseContent( string id, global::Together.EvaluationUpdateRequestStatus status, string? error = default, - object? results = default, + global::Together.OneOf? results = default, global::System.Threading.CancellationToken cancellationToken = default) { var __request = new global::Together.EvaluationUpdateRequest diff --git a/src/libs/Together/Generated/Together.IEvaluationsClient.EvaluationUpdate.g.cs b/src/libs/Together/Generated/Together.IEvaluationsClient.EvaluationUpdate.g.cs index 480faca..6be8f9a 100644 --- a/src/libs/Together/Generated/Together.IEvaluationsClient.EvaluationUpdate.g.cs +++ b/src/libs/Together/Generated/Together.IEvaluationsClient.EvaluationUpdate.g.cs @@ -25,9 +25,7 @@ public partial interface IEvaluationsClient /// /// Error message /// - /// - /// Job results (required when status is 'completed') - /// + /// /// /// The new status for the job /// @@ -37,7 +35,7 @@ public partial interface IEvaluationsClient string id, global::Together.EvaluationUpdateRequestStatus status, string? error = default, - object? results = default, + global::Together.OneOf? results = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ 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 index 8fcb44e..84dc814 100644 --- a/src/libs/Together/Generated/Together.JsonSerializerContextTypes.g.cs +++ b/src/libs/Together/Generated/Together.JsonSerializerContextTypes.g.cs @@ -798,686 +798,694 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::Together.EvaluationJobResults? Type193 { get; set; } + public global::Together.EvaluationScoreResultsAggregatedScores? Type193 { get; set; } /// /// /// - public global::Together.EvaluationJobStatus? Type194 { get; set; } + public global::Together.EvaluationJobResults? Type194 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type195 { get; set; } + public global::Together.EvaluationJobStatus? Type195 { get; set; } /// /// /// - public global::Together.EvaluationJobStatusUpdate? Type196 { get; set; } + public global::System.Collections.Generic.IList? Type196 { get; set; } /// /// /// - public global::Together.EvaluationJobType? Type197 { get; set; } + public global::Together.EvaluationJobStatusUpdate? Type197 { get; set; } /// /// /// - public global::Together.EvaluationResponse? Type198 { get; set; } + public global::Together.EvaluationJobType? Type198 { get; set; } /// /// /// - public global::Together.EvaluationResponseStatus? Type199 { get; set; } + public global::Together.EvaluationResponse? Type199 { get; set; } /// /// /// - public global::Together.EvaluationScoreParameters? Type200 { get; set; } + public global::Together.EvaluationResponseStatus? Type200 { get; set; } /// /// /// - public global::Together.EvaluationTypedRequest? Type201 { get; set; } + public global::Together.EvaluationScoreParameters? Type201 { get; set; } /// /// /// - public global::Together.OneOf? Type202 { get; set; } + public global::Together.EvaluationTypedRequest? Type202 { get; set; } /// /// /// - public global::Together.EvaluationTypedRequestType? Type203 { get; set; } + public global::Together.OneOf? Type203 { get; set; } /// /// /// - public global::Together.ExecuteRequest? Type204 { get; set; } + public global::Together.EvaluationTypedRequestType? Type204 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type205 { get; set; } + public global::Together.ExecuteRequest? Type205 { get; set; } /// /// /// - public global::Together.ExecuteRequestFile? Type206 { get; set; } + public global::System.Collections.Generic.IList? Type206 { get; set; } /// /// /// - public global::Together.ExecuteRequestFileEncoding? Type207 { get; set; } + public global::Together.ExecuteRequestFile? Type207 { get; set; } /// /// /// - public global::Together.ExecuteRequestLanguage? Type208 { get; set; } + public global::Together.ExecuteRequestFileEncoding? Type208 { get; set; } /// /// /// - public global::Together.ExecuteResponse? Type209 { get; set; } + public global::Together.ExecuteRequestLanguage? Type209 { get; set; } /// /// /// - public global::Together.ExecuteResponseVariant1? Type210 { get; set; } + public global::Together.ExecuteResponse? Type210 { get; set; } /// /// /// - public global::Together.ExecuteResponseVariant1Data? Type211 { get; set; } + public global::Together.ExecuteResponseVariant1? Type211 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type212 { get; set; } + public global::Together.ExecuteResponseVariant1Data? Type212 { get; set; } /// /// /// - public global::Together.OutputsItem? Type213 { get; set; } + public global::System.Collections.Generic.IList? Type213 { get; set; } /// /// /// - public global::Together.ExecuteResponseVariant1DataOutputVariant1? Type214 { get; set; } + public global::Together.OutputsItem? Type214 { get; set; } /// /// /// - public global::Together.ExecuteResponseVariant1DataOutputVariant1Type? Type215 { get; set; } + public global::Together.ExecuteResponseVariant1DataOutputVariant1? Type215 { get; set; } /// /// /// - public global::Together.ExecuteResponseVariant1DataOutputVariant2? Type216 { get; set; } + public global::Together.ExecuteResponseVariant1DataOutputVariant1Type? Type216 { get; set; } /// /// /// - public global::Together.ExecuteResponseVariant1DataOutputVariant2Type? Type217 { get; set; } + public global::Together.ExecuteResponseVariant1DataOutputVariant2? Type217 { get; set; } /// /// /// - public global::Together.ExecuteResponseVariant1DataOutputVariant3? Type218 { get; set; } + public global::Together.ExecuteResponseVariant1DataOutputVariant2Type? Type218 { get; set; } /// /// /// - public global::Together.ExecuteResponseVariant1DataOutputVariant3Data? Type219 { get; set; } + public global::Together.ExecuteResponseVariant1DataOutputVariant3? Type219 { get; set; } /// /// /// - public global::Together.ExecuteResponseVariant1DataOutputVariant3Type? Type220 { get; set; } + public global::Together.ExecuteResponseVariant1DataOutputVariant3Data? Type220 { get; set; } /// /// /// - public global::Together.ExecuteResponseVariant1DataOutputDiscriminator? Type221 { get; set; } + public global::Together.ExecuteResponseVariant1DataOutputVariant3Type? Type221 { get; set; } /// /// /// - public global::Together.ExecuteResponseVariant1DataStatus? Type222 { get; set; } + public global::Together.ExecuteResponseVariant1DataOutputDiscriminator? Type222 { get; set; } /// /// /// - public global::Together.ExecuteResponseVariant2? Type223 { get; set; } + public global::Together.ExecuteResponseVariant1DataStatus? Type223 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type224 { get; set; } + public global::Together.ExecuteResponseVariant2? Type224 { get; set; } /// /// /// - public global::Together.OneOf? Type225 { get; set; } + public global::System.Collections.Generic.IList>? Type225 { get; set; } /// /// /// - public global::Together.FileDeleteResponse? Type226 { get; set; } + public global::Together.OneOf? Type226 { get; set; } /// /// /// - public global::Together.FileList? Type227 { get; set; } + public global::Together.FileDeleteResponse? Type227 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type228 { get; set; } + public global::Together.FileList? Type228 { get; set; } /// /// /// - public global::Together.FileResponse? Type229 { get; set; } + public global::System.Collections.Generic.IList? Type229 { get; set; } /// /// /// - public global::Together.FileType? Type230 { get; set; } + public global::Together.FileResponse? Type230 { get; set; } /// /// /// - public global::Together.FilePurpose? Type231 { get; set; } + public global::Together.FileType? Type231 { get; set; } /// /// /// - public global::Together.FileObject? Type232 { get; set; } + public global::Together.FilePurpose? Type232 { get; set; } /// /// /// - public global::Together.FineTuneCheckpoint? Type233 { get; set; } + public global::Together.FileObject? Type233 { get; set; } /// /// /// - public global::Together.FineTuneEvent? Type234 { get; set; } + public global::Together.FineTuneCheckpoint? Type234 { get; set; } /// /// /// - public global::Together.FinetuneEventLevels? Type235 { get; set; } + public global::Together.FineTuneEvent? Type235 { get; set; } /// /// /// - public global::Together.FineTuneEventObject? Type236 { get; set; } + public global::Together.FinetuneEventLevels? Type236 { get; set; } /// /// /// - public global::Together.FinetuneEventType? Type237 { get; set; } + public global::Together.FineTuneEventObject? Type237 { get; set; } /// /// /// - public global::Together.FinetuneDownloadResult? Type238 { get; set; } + public global::Together.FinetuneEventType? Type238 { get; set; } /// /// /// - public global::Together.FinetuneDownloadResultObject? Type239 { get; set; } + public global::Together.FinetuneDownloadResult? Type239 { get; set; } /// /// /// - public global::Together.FinetuneJobStatus? Type240 { get; set; } + public global::Together.FinetuneDownloadResultObject? Type240 { get; set; } /// /// /// - public global::Together.FinetuneListCheckpoints? Type241 { get; set; } + public global::Together.FinetuneJobStatus? Type241 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type242 { get; set; } + public global::Together.FinetuneListCheckpoints? Type242 { get; set; } /// /// /// - public global::Together.FinetuneListEvents? Type243 { get; set; } + public global::System.Collections.Generic.IList? Type243 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type244 { get; set; } + public global::Together.FinetuneListEvents? Type244 { get; set; } /// /// /// - public global::Together.FinetuneResponse? Type245 { get; set; } + public global::System.Collections.Generic.IList? Type245 { get; set; } /// /// /// - public global::Together.OneOf? Type246 { get; set; } + public global::Together.FinetuneResponse? Type246 { get; set; } /// /// /// - public global::Together.FinetuneResponseBatchSize? Type247 { get; set; } + public global::Together.OneOf? Type247 { get; set; } /// /// /// - public global::Together.LRScheduler? Type248 { get; set; } + public global::Together.FinetuneResponseBatchSize? Type248 { get; set; } /// /// /// - public global::Together.OneOf? Type249 { get; set; } + public global::Together.LRScheduler? Type249 { get; set; } /// /// /// - public global::Together.LinearLRSchedulerArgs? Type250 { get; set; } + public global::Together.OneOf? Type250 { get; set; } /// /// /// - public global::Together.LRSchedulerLrSchedulerType? Type251 { get; set; } + public global::Together.LinearLRSchedulerArgs? Type251 { get; set; } /// /// /// - public global::Together.OneOf? Type252 { get; set; } + public global::Together.LRSchedulerLrSchedulerType? Type252 { get; set; } /// /// /// - public global::Together.FinetuneResponseTrainOnInputs? Type253 { get; set; } + public global::Together.OneOf? Type253 { get; set; } /// /// /// - public global::Together.OneOf? Type254 { get; set; } + public global::Together.FinetuneResponseTrainOnInputs? Type254 { get; set; } /// /// /// - public global::Together.TrainingMethodSFT? Type255 { get; set; } + public global::Together.OneOf? Type255 { get; set; } /// /// /// - public global::Together.TrainingMethodSFTMethod? Type256 { get; set; } + public global::Together.TrainingMethodSFT? Type256 { get; set; } /// /// /// - public global::Together.OneOf? Type257 { get; set; } + public global::Together.TrainingMethodSFTMethod? Type257 { get; set; } /// /// /// - public global::Together.TrainingMethodSFTTrainOnInputs? Type258 { get; set; } + public global::Together.OneOf? Type258 { get; set; } /// /// /// - public global::Together.TrainingMethodDPO? Type259 { get; set; } + public global::Together.TrainingMethodSFTTrainOnInputs? Type259 { get; set; } /// /// /// - public global::Together.TrainingMethodDPOMethod? Type260 { get; set; } + public global::Together.TrainingMethodDPO? Type260 { get; set; } /// /// /// - public global::Together.OneOf? Type261 { get; set; } + public global::Together.TrainingMethodDPOMethod? Type261 { get; set; } /// /// /// - public global::Together.FullTrainingType? Type262 { get; set; } + public global::Together.OneOf? Type262 { get; set; } /// /// /// - public global::Together.FullTrainingTypeType? Type263 { get; set; } + public global::Together.FullTrainingType? Type263 { get; set; } /// /// /// - public global::Together.LoRATrainingType? Type264 { get; set; } + public global::Together.FullTrainingTypeType? Type264 { get; set; } /// /// /// - public global::Together.LoRATrainingTypeType? Type265 { get; set; } + public global::Together.LoRATrainingType? Type265 { get; set; } /// /// /// - public global::Together.FinetuneResponseTruncated? Type266 { get; set; } + public global::Together.LoRATrainingTypeType? Type266 { get; set; } /// /// /// - public global::Together.FinetuneTruncatedList? Type267 { get; set; } + public global::Together.FinetuneResponseTruncated? Type267 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type268 { get; set; } + public global::Together.FinetuneTruncatedList? Type268 { get; set; } /// /// /// - public global::Together.HardwareAvailability? Type269 { get; set; } + public global::System.Collections.Generic.IList? Type269 { get; set; } /// /// /// - public global::Together.HardwareAvailabilityStatus? Type270 { get; set; } + public global::Together.HardwareAvailability? Type270 { get; set; } /// /// /// - public global::Together.HardwareSpec? Type271 { get; set; } + public global::Together.HardwareAvailabilityStatus? Type271 { get; set; } /// /// /// - public global::Together.HardwareWithStatus? Type272 { get; set; } + public global::Together.HardwareSpec? Type272 { get; set; } /// /// /// - public global::Together.HardwareWithStatusObject? Type273 { get; set; } + public global::Together.HardwareWithStatus? Type273 { get; set; } /// /// /// - public global::Together.ImageResponse? Type274 { get; set; } + public global::Together.HardwareWithStatusObject? Type274 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type275 { get; set; } + public global::Together.ImageResponse? Type275 { get; set; } /// /// /// - public global::Together.DataItem? Type276 { get; set; } + public global::System.Collections.Generic.IList? Type276 { get; set; } /// /// /// - public global::Together.ImageResponseDataB64? Type277 { get; set; } + public global::Together.DataItem? Type277 { get; set; } /// /// /// - public global::Together.ImageResponseDataB64Type? Type278 { get; set; } + public global::Together.ImageResponseDataB64? Type278 { get; set; } /// /// /// - public global::Together.ImageResponseDataUrl? Type279 { get; set; } + public global::Together.ImageResponseDataB64Type? Type279 { get; set; } /// /// /// - public global::Together.ImageResponseDataUrlType? Type280 { get; set; } + public global::Together.ImageResponseDataUrl? Type280 { get; set; } /// /// /// - public global::Together.ImageResponseDataItemDiscriminator? Type281 { get; set; } + public global::Together.ImageResponseDataUrlType? Type281 { get; set; } /// /// /// - public global::Together.ImageResponseObject? Type282 { get; set; } + public global::Together.ImageResponseDataItemDiscriminator? Type282 { get; set; } /// /// /// - public global::Together.InterpreterOutput? Type283 { get; set; } + public global::Together.ImageResponseObject? Type283 { get; set; } /// /// /// - public global::Together.InterpreterOutputVariant1? Type284 { get; set; } + public global::Together.InterpreterOutput? Type284 { get; set; } /// /// /// - public global::Together.InterpreterOutputVariant1Type? Type285 { get; set; } + public global::Together.InterpreterOutputVariant1? Type285 { get; set; } /// /// /// - public global::Together.InterpreterOutputVariant2? Type286 { get; set; } + public global::Together.InterpreterOutputVariant1Type? Type286 { get; set; } /// /// /// - public global::Together.InterpreterOutputVariant2Type? Type287 { get; set; } + public global::Together.InterpreterOutputVariant2? Type287 { get; set; } /// /// /// - public global::Together.InterpreterOutputVariant3? Type288 { get; set; } + public global::Together.InterpreterOutputVariant2Type? Type288 { get; set; } /// /// /// - public global::Together.InterpreterOutputVariant3Data? Type289 { get; set; } + public global::Together.InterpreterOutputVariant3? Type289 { get; set; } /// /// /// - public global::Together.InterpreterOutputVariant3Type? Type290 { get; set; } + public global::Together.InterpreterOutputVariant3Data? Type290 { get; set; } /// /// /// - public global::Together.InterpreterOutputDiscriminator? Type291 { get; set; } + public global::Together.InterpreterOutputVariant3Type? Type291 { get; set; } /// /// /// - public global::Together.JobInfoSuccessResponse? Type292 { get; set; } + public global::Together.InterpreterOutputDiscriminator? Type292 { get; set; } /// /// /// - public global::Together.JobInfoSuccessResponseArgs? Type293 { get; set; } + public global::Together.JobInfoSuccessResponse? Type293 { get; set; } /// /// /// - public global::Together.JobInfoSuccessResponseStatus? Type294 { get; set; } + public global::Together.JobInfoSuccessResponseArgs? Type294 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type295 { get; set; } + public global::Together.JobInfoSuccessResponseStatus? Type295 { get; set; } /// /// /// - public global::Together.JobInfoSuccessResponseStatusUpdate? Type296 { get; set; } + public global::System.Collections.Generic.IList? Type296 { get; set; } /// /// /// - public global::Together.JobsInfoSuccessResponse? Type297 { get; set; } + public global::Together.JobInfoSuccessResponseStatusUpdate? Type297 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type298 { get; set; } + public global::Together.JobsInfoSuccessResponse? Type298 { get; set; } /// /// /// - public global::Together.ListEndpoint? Type299 { get; set; } + public global::System.Collections.Generic.IList? Type299 { get; set; } /// /// /// - public global::Together.ListEndpointObject? Type300 { get; set; } + public global::Together.ListEndpoint? Type300 { get; set; } /// /// /// - public global::Together.ListEndpointState? Type301 { get; set; } + public global::Together.ListEndpointObject? Type301 { get; set; } /// /// /// - public global::Together.ListEndpointType? Type302 { get; set; } + public global::Together.ListEndpointState? Type302 { get; set; } /// /// /// - public global::Together.ModelInfo? Type303 { get; set; } + public global::Together.ListEndpointType? Type303 { get; set; } /// /// /// - public global::Together.Pricing? Type304 { get; set; } + public global::Together.ModelInfo? Type304 { get; set; } /// /// /// - public global::Together.ModelInfoType? Type305 { get; set; } + public global::Together.Pricing? Type305 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type306 { get; set; } + public global::Together.ModelInfoType? Type306 { get; set; } /// /// /// - public global::Together.ModelUploadRequest? Type307 { get; set; } + public global::System.Collections.Generic.IList? Type307 { get; set; } /// /// /// - public global::Together.ModelUploadRequestModelType? Type308 { get; set; } + public global::Together.ModelUploadRequest? Type308 { get; set; } /// /// /// - public global::Together.ModelUploadSuccessResponse? Type309 { get; set; } + public global::Together.ModelUploadRequestModelType? Type309 { get; set; } /// /// /// - public global::Together.ModelUploadSuccessResponseData? Type310 { get; set; } + public global::Together.ModelUploadSuccessResponse? Type310 { get; set; } /// /// /// - public global::Together.RerankRequest? Type311 { get; set; } + public global::Together.ModelUploadSuccessResponseData? Type311 { get; set; } /// /// /// - public global::Together.OneOf, global::System.Collections.Generic.IList>? Type312 { get; set; } + public global::Together.RerankRequest? Type312 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type313 { get; set; } + public global::Together.OneOf, global::System.Collections.Generic.IList>? Type313 { get; set; } /// /// /// - public global::Together.AnyOf? Type314 { get; set; } + public global::System.Collections.Generic.IList? Type314 { get; set; } /// /// /// - public global::Together.RerankRequestModel? Type315 { get; set; } + public global::Together.AnyOf? Type315 { get; set; } /// /// /// - public global::Together.RerankResponse? Type316 { get; set; } + public global::Together.RerankRequestModel? Type316 { get; set; } /// /// /// - public global::Together.RerankResponseObject? Type317 { get; set; } + public global::Together.RerankResponse? Type317 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type318 { get; set; } + public global::Together.RerankResponseObject? Type318 { get; set; } /// /// /// - public global::Together.RerankResponseResult? Type319 { get; set; } + public global::System.Collections.Generic.IList? Type319 { get; set; } /// /// /// - public global::Together.RerankResponseResultDocument? Type320 { get; set; } + public global::Together.RerankResponseResult? Type320 { get; set; } /// /// /// - public global::Together.Response? Type321 { get; set; } + public global::Together.RerankResponseResultDocument? Type321 { get; set; } /// /// /// - public global::Together.SessionListResponse? Type322 { get; set; } + public global::Together.Response? Type322 { get; set; } /// /// /// - public global::Together.SessionListResponseVariant1? Type323 { get; set; } + public global::Together.SessionListResponse? Type323 { get; set; } /// /// /// - public global::Together.SessionListResponseVariant2? Type324 { get; set; } + public global::Together.SessionListResponseVariant1? Type324 { get; set; } /// /// /// - public global::Together.SessionListResponseVariant2Data? Type325 { get; set; } + public global::Together.SessionListResponseVariant2? Type325 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type326 { get; set; } + public global::Together.SessionListResponseVariant2Data? Type326 { get; set; } /// /// /// - public global::Together.SessionListResponseVariant2DataSession? Type327 { get; set; } + public global::System.Collections.Generic.IList? Type327 { get; set; } /// /// /// - public global::Together.StreamOutput? Type328 { get; set; } + public global::Together.SessionListResponseVariant2DataSession? Type328 { get; set; } /// /// /// - public global::Together.StreamOutputType? Type329 { get; set; } + public global::Together.StreamOutput? Type329 { get; set; } /// /// /// - public global::Together.UpdateEndpointRequest? Type330 { get; set; } + public global::Together.StreamOutputType? Type330 { get; set; } /// /// /// - public global::Together.UpdateEndpointRequestState? Type331 { get; set; } + public global::Together.UpdateEndpointRequest? Type331 { get; set; } /// /// /// - public global::Together.EvaluationUpdateRequest? Type332 { get; set; } + public global::Together.UpdateEndpointRequestState? Type332 { get; set; } /// /// /// - public global::Together.EvaluationUpdateRequestStatus? Type333 { get; set; } + public global::Together.EvaluationUpdateRequest? Type333 { get; set; } /// /// /// - public global::Together.Request? Type334 { get; set; } + public global::Together.OneOf? Type334 { get; set; } /// /// /// - public global::Together.Request2? Type335 { get; set; } + public global::Together.EvaluationUpdateRequestStatus? Type335 { get; set; } /// /// /// - public global::Together.OneOf? Type336 { get; set; } + public global::Together.Request? Type336 { get; set; } /// /// /// - public global::Together.RequestBatchSize? Type337 { get; set; } + public global::Together.Request2? Type337 { get; set; } /// /// /// - public global::Together.OneOf? Type338 { get; set; } + public global::Together.OneOf? Type338 { get; set; } /// /// /// - public global::Together.RequestTrainOnInputs? Type339 { get; set; } + public global::Together.RequestBatchSize? Type339 { get; set; } /// /// /// - public global::Together.Request3? Type340 { get; set; } + public global::Together.OneOf? Type340 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type341 { get; set; } + public global::Together.RequestTrainOnInputs? Type341 { get; set; } /// /// /// - public global::Together.RequestImageLora? Type342 { get; set; } + public global::Together.Request3? Type342 { get; set; } /// /// /// - public global::Together.AnyOf? Type343 { get; set; } + public global::System.Collections.Generic.IList? Type343 { get; set; } /// /// /// - public global::Together.RequestModel? Type344 { get; set; } + public global::Together.RequestImageLora? Type344 { get; set; } /// /// /// - public global::Together.RequestOutputFormat? Type345 { get; set; } + public global::Together.AnyOf? Type345 { get; set; } /// /// /// - public global::Together.RequestResponseFormat? Type346 { get; set; } + public global::Together.RequestModel? Type346 { get; set; } /// /// /// - public global::Together.ListEndpointsType? Type347 { get; set; } + public global::Together.RequestOutputFormat? Type347 { get; set; } /// /// /// - public global::Together.EvaluationsListStatus? Type348 { get; set; } + public global::Together.RequestResponseFormat? Type348 { get; set; } /// /// /// - public global::Together.Checkpoint? Type349 { get; set; } + public global::Together.ListEndpointsType? Type349 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type350 { get; set; } + public global::Together.EvaluationsListStatus? Type350 { get; set; } /// /// /// - public global::Together.ListEndpointsResponse? Type351 { get; set; } + public global::Together.Checkpoint? Type351 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type352 { get; set; } + public global::System.Collections.Generic.IList? Type352 { get; set; } /// /// /// - public global::Together.ListEndpointsResponseObject? Type353 { get; set; } + public global::Together.ListEndpointsResponse? Type353 { get; set; } /// /// /// - public global::Together.EvaluationStatusResponse? Type354 { get; set; } + public global::System.Collections.Generic.IList? Type354 { get; set; } /// /// /// - public global::Together.OneOf? Type355 { get; set; } + public global::Together.ListEndpointsResponseObject? Type355 { get; set; } /// /// /// - public global::Together.EvaluationStatusResponseResults? Type356 { get; set; } + public global::Together.EvaluationStatusResponse? Type356 { get; set; } /// /// /// - public global::Together.EvaluationStatusResponseStatus? Type357 { get; set; } + public global::Together.OneOf? Type357 { get; set; } /// /// /// - public global::Together.EvaluationUpdateResponse? Type358 { get; set; } + public global::Together.EvaluationStatusResponseResults? Type358 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type359 { get; set; } + public global::Together.EvaluationStatusResponseStatus? Type359 { get; set; } /// /// /// - public global::Together.EvaluationsModelListResponse? Type360 { get; set; } + public global::Together.EvaluationUpdateResponse? Type360 { get; set; } /// /// /// - public global::Together.ListHardwareResponse? Type361 { get; set; } + public global::System.Collections.Generic.IList? Type361 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type362 { get; set; } + public global::Together.EvaluationsModelListResponse? Type362 { get; set; } /// /// /// - public global::Together.ListHardwareResponseObject? Type363 { get; set; } + public global::Together.ListHardwareResponse? Type363 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type364 { get; set; } + /// + /// + /// + public global::Together.ListHardwareResponseObject? Type365 { get; set; } } } \ No newline at end of file diff --git a/src/libs/Together/Generated/Together.Models.EvaluationScoreResults.g.cs b/src/libs/Together/Generated/Together.Models.EvaluationScoreResults.g.cs index 4e382d5..3daa0a1 100644 --- a/src/libs/Together/Generated/Together.Models.EvaluationScoreResults.g.cs +++ b/src/libs/Together/Generated/Together.Models.EvaluationScoreResults.g.cs @@ -9,10 +9,10 @@ namespace Together public sealed partial class EvaluationScoreResults { /// - /// Aggregated score statistics + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("aggregated_scores")] - public object? AggregatedScores { get; set; } + public global::Together.EvaluationScoreResultsAggregatedScores? AggregatedScores { get; set; } /// /// number of failed samples generated from model @@ -59,9 +59,7 @@ public sealed partial class EvaluationScoreResults /// /// Initializes a new instance of the class. /// - /// - /// Aggregated score statistics - /// + /// /// /// number of failed samples generated from model /// @@ -84,7 +82,7 @@ public sealed partial class EvaluationScoreResults [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] #endif public EvaluationScoreResults( - object? aggregatedScores, + global::Together.EvaluationScoreResultsAggregatedScores? aggregatedScores, double? failedSamples, double? generationFailCount, double? invalidScoreCount, diff --git a/src/libs/Together/Generated/Together.Models.EvaluationScoreResultsAggregatedScores.g.cs b/src/libs/Together/Generated/Together.Models.EvaluationScoreResultsAggregatedScores.g.cs index 5f02479..68afb8b 100644 --- a/src/libs/Together/Generated/Together.Models.EvaluationScoreResultsAggregatedScores.g.cs +++ b/src/libs/Together/Generated/Together.Models.EvaluationScoreResultsAggregatedScores.g.cs @@ -4,15 +4,58 @@ namespace Together { /// - /// Aggregated score statistics + /// /// public sealed partial class EvaluationScoreResultsAggregatedScores { + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("mean_score")] + public float? MeanScore { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("pass_percentage")] + public float? PassPercentage { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("std_score")] + public float? StdScore { get; set; } /// /// Additional properties that are not explicitly defined in the schema /// [global::System.Text.Json.Serialization.JsonExtensionData] public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public EvaluationScoreResultsAggregatedScores( + float? meanScore, + float? passPercentage, + float? stdScore) + { + this.MeanScore = meanScore; + this.PassPercentage = passPercentage; + this.StdScore = stdScore; + } + + /// + /// Initializes a new instance of the class. + /// + public EvaluationScoreResultsAggregatedScores() + { + } } } \ No newline at end of file diff --git a/src/libs/Together/Generated/Together.Models.EvaluationUpdateRequest.g.cs b/src/libs/Together/Generated/Together.Models.EvaluationUpdateRequest.g.cs index da95f81..95e618d 100644 --- a/src/libs/Together/Generated/Together.Models.EvaluationUpdateRequest.g.cs +++ b/src/libs/Together/Generated/Together.Models.EvaluationUpdateRequest.g.cs @@ -1,4 +1,6 @@ +#pragma warning disable CS0618 // Type or member is obsolete + #nullable enable namespace Together @@ -15,10 +17,11 @@ public sealed partial class EvaluationUpdateRequest public string? Error { get; set; } /// - /// Job results (required when status is 'completed') + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("results")] - public object? Results { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::Together.JsonConverters.OneOfJsonConverter))] + public global::Together.OneOf? Results { get; set; } /// /// The new status for the job @@ -40,9 +43,7 @@ public sealed partial class EvaluationUpdateRequest /// /// Error message /// - /// - /// Job results (required when status is 'completed') - /// + /// /// /// The new status for the job /// @@ -52,7 +53,7 @@ public sealed partial class EvaluationUpdateRequest public EvaluationUpdateRequest( global::Together.EvaluationUpdateRequestStatus status, string? error, - object? results) + global::Together.OneOf? results) { this.Status = status; this.Error = error; diff --git a/src/libs/Together/Generated/Together.Models.EvaluationUpdateRequestResults.Json.g.cs b/src/libs/Together/Generated/Together.Models.EvaluationUpdateRequestResults.Json.g.cs deleted file mode 100644 index db85f0e..0000000 --- a/src/libs/Together/Generated/Together.Models.EvaluationUpdateRequestResults.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace Together -{ - public sealed partial class EvaluationUpdateRequestResults - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::Together.EvaluationUpdateRequestResults? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::Together.EvaluationUpdateRequestResults), - jsonSerializerContext) as global::Together.EvaluationUpdateRequestResults; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::Together.EvaluationUpdateRequestResults? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::Together.EvaluationUpdateRequestResults), - jsonSerializerContext).ConfigureAwait(false)) as global::Together.EvaluationUpdateRequestResults; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/Together/Generated/Together.Models.EvaluationUpdateRequestResults.g.cs b/src/libs/Together/Generated/Together.Models.EvaluationUpdateRequestResults.g.cs deleted file mode 100644 index 1815f46..0000000 --- a/src/libs/Together/Generated/Together.Models.EvaluationUpdateRequestResults.g.cs +++ /dev/null @@ -1,18 +0,0 @@ - -#nullable enable - -namespace Together -{ - /// - /// Job results (required when status is 'completed') - /// - public sealed partial class EvaluationUpdateRequestResults - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - } -} \ No newline at end of file diff --git a/src/libs/Together/openapi.yaml b/src/libs/Together/openapi.yaml index 2c7ed3a..46b318e 100644 --- a/src/libs/Together/openapi.yaml +++ b/src/libs/Together/openapi.yaml @@ -1040,8 +1040,10 @@ paths: type: string description: Error message results: - type: object - description: Job results (required when status is 'completed') + oneOf: + - $ref: '#/components/schemas/EvaluationClassifyResults' + - $ref: '#/components/schemas/EvaluationScoreResults' + - $ref: '#/components/schemas/EvaluationCompareResults' status: enum: - completed @@ -4000,7 +4002,16 @@ components: properties: aggregated_scores: type: object - description: Aggregated score statistics + properties: + mean_score: + type: number + format: float + pass_percentage: + type: number + format: float + std_score: + type: number + format: float failed_samples: type: number description: number of failed samples generated from model