diff --git a/src/libs/LabelStudio/Generated/LabelStudio.ILlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.ILlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs index f3b75429..2b88fcc7 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.ILlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.ILlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs @@ -12,7 +12,7 @@ public partial interface ILlmClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ApiLlmOpenaiChatCompletionsCreateAsync( + global::System.Threading.Tasks.Task ApiLlmOpenaiChatCompletionsCreateAsync( global::LabelStudio.ChatCompletionRequestRequest request, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, @@ -25,7 +25,7 @@ public partial interface ILlmClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task> ApiLlmOpenaiChatCompletionsCreateAsResponseAsync( + global::System.Threading.Tasks.Task> ApiLlmOpenaiChatCompletionsCreateAsResponseAsync( global::LabelStudio.ChatCompletionRequestRequest request, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, @@ -43,7 +43,7 @@ public partial interface ILlmClient /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - global::System.Threading.Tasks.Task ApiLlmOpenaiChatCompletionsCreateAsync( + global::System.Threading.Tasks.Task ApiLlmOpenaiChatCompletionsCreateAsync( global::System.Collections.Generic.IList messages, string model, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs index 271cd832..1e6749a3 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContext.g.cs @@ -788,6 +788,13 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiInferenceRunsIndicatorsListResponseItem))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLearningResourcesUserProgressBulkResetCreateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse2))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiMlVersionsRetrieveResponse))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] @@ -996,6 +1003,7 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiPromptsCompatibleProjectsListProjectType?), TypeInfoPropertyName = "NullableApiPromptsCompatibleProjectsListProjectType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiPromptsVersionsInferenceRunsListProjectSubset?), TypeInfoPropertyName = "NullableApiPromptsVersionsInferenceRunsListProjectSubset2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiTasksListFields?), TypeInfoPropertyName = "NullableApiTasksListFields2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponseStatus?), TypeInfoPropertyName = "NullableApiProjectsAwsCustomFunctionRetrieveResponseStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus?), TypeInfoPropertyName = "NullableApiProjectsCustomFunctionRetrieveResponseStatus2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus?), TypeInfoPropertyName = "NullableApiProjectsGcpCustomFunctionRetrieveResponseStatus2")] @@ -1018,14 +1026,6 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex [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))] internal sealed partial class SourceGenerationContextChunk1 : global::System.Text.Json.Serialization.JsonSerializerContext { } @@ -1049,6 +1049,14 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ListListDouble_System_Collections_Generic_List_global_System_Collections_Generic_List_double")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "ListDouble_System_Collections_Generic_List_double_3")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List>), TypeInfoPropertyName = "ListListDouble_System_Collections_Generic_List_global_System_Collections_Generic_List_double_3")] + [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))] @@ -1135,6 +1143,7 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex [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))] diff --git a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs index 031a81f7..7bc2b007 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.JsonSerializerContextTypes.g.cs @@ -2985,471 +2985,499 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.IList? Type738 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse? Type738 { get; set; } /// /// /// - public global::LabelStudio.ApiMlVersionsRetrieveResponse? Type739 { get; set; } + public global::System.Collections.Generic.IList? Type739 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type740 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoice? Type740 { get; set; } /// /// /// - public global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse? Type741 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage? Type741 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type742 { get; set; } + public global::System.DateTimeOffset? Type742 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse? Type743 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseUsage? Type743 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse? Type744 { get; set; } + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse2? Type744 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse? Type745 { get; set; } + public global::System.Collections.Generic.IList? Type745 { get; set; } /// /// /// - public global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse? Type746 { get; set; } + public global::LabelStudio.ApiMlVersionsRetrieveResponse? Type746 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type747 { get; set; } + public global::System.Collections.Generic.IList? Type747 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type748 { get; set; } + public global::LabelStudio.ApiModelProviderConnectionsProviderChoicesRetrieveResponse? Type748 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type749 { get; set; } + public global::System.Collections.Generic.IList? Type749 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type750 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsAssignmentsCreateResponse? Type750 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type751 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsBulkDestroyResponse? Type751 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type752 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsBulkCreateResponse? Type752 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type753 { get; set; } + public global::LabelStudio.ApiOrganizationsMemberTagsImportsCreateResponse? Type753 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type754 { get; set; } + public global::System.Collections.Generic.IList? Type754 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse? Type755 { get; set; } + public global::System.Collections.Generic.IList? Type755 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponseStatus? Type756 { get; set; } + public global::System.Collections.Generic.IList? Type756 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse? Type757 { get; set; } + public global::System.Collections.Generic.IList? Type757 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus? Type758 { get; set; } + public global::System.Collections.Generic.IList? Type758 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsDashboardRetrieveResponse? Type759 { get; set; } + public global::System.Collections.Generic.IList? Type759 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsDuplicateCreateResponse? Type760 { get; set; } + public global::System.Collections.Generic.IList? Type760 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type761 { get; set; } + public global::System.Collections.Generic.IList? Type761 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsExportsConvertCreateResponse? Type762 { get; set; } + public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponse? Type762 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type763 { get; set; } + public global::LabelStudio.ApiProjectsAwsCustomFunctionRetrieveResponseStatus? Type763 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse? Type764 { get; set; } + public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponse? Type764 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus? Type765 { get; set; } + public global::LabelStudio.ApiProjectsCustomFunctionRetrieveResponseStatus? Type765 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsImportCreateResponse? Type766 { get; set; } + public global::LabelStudio.ApiProjectsDashboardRetrieveResponse? Type766 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsImportPredictionsCreateResponse? Type767 { get; set; } + public global::LabelStudio.ApiProjectsDuplicateCreateResponse? Type767 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsMembersBulkDestroyResponse? Type768 { get; set; } + public global::System.Collections.Generic.IList? Type768 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse? Type769 { get; set; } + public global::LabelStudio.ApiProjectsExportsConvertCreateResponse? Type769 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse? Type770 { get; set; } + public global::System.Collections.Generic.IList? Type770 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse? Type771 { get; set; } + public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponse? Type771 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type772 { get; set; } + public global::LabelStudio.ApiProjectsGcpCustomFunctionRetrieveResponseStatus? Type772 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse? Type773 { get; set; } + public global::LabelStudio.ApiProjectsImportCreateResponse? Type773 { get; set; } /// /// /// - public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? Type774 { get; set; } + public global::LabelStudio.ApiProjectsImportPredictionsCreateResponse? Type774 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>>? Type775 { get; set; } + public global::LabelStudio.ApiProjectsMembersBulkDestroyResponse? Type775 { get; set; } /// /// /// - public global::LabelStudio.OneOf>? Type776 { get; set; } + public global::LabelStudio.ApiProjectsModelStatsAgreementRetrieveResponse? Type776 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse? Type777 { get; set; } + public global::LabelStudio.ApiProjectsModelStatsAgreementGroundtruthRetrieveResponse? Type777 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse? Type778 { get; set; } + public global::LabelStudio.ApiProjectsModelStatsPredictionRetrieveResponse? Type778 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse? Type779 { get; set; } + public global::System.Collections.Generic.IList? Type779 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse? Type780 { get; set; } + public global::LabelStudio.ApiProjectsStatsIaaRetrieveResponse? Type780 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFilters? Type781 { get; set; } + public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? Type781 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type782 { get; set; } + public global::System.Collections.Generic.Dictionary>>? Type782 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFiltersStat? Type783 { get; set; } + public global::LabelStudio.OneOf>? Type783 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse? Type784 { get; set; } + public global::LabelStudio.ApiProjectsStatsAgreementGroundtruthRetrieveResponse? Type784 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse? Type785 { get; set; } + public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorRetrieveResponse? Type785 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type786 { get; set; } + public global::LabelStudio.ApiProjectsStatsAgreementAnnotatorsRetrieveResponse? Type786 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponseLeadTimeStat? Type787 { get; set; } + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponse? Type787 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsMemberPerformanceRowsRetrieveResponse? Type788 { get; set; } + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFilters? Type788 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsMemberPerformanceSummaryRetrieveResponse? Type789 { get; set; } + public global::System.Collections.Generic.IList? Type789 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant1? Type790 { get; set; } + public global::LabelStudio.ApiProjectsStatsDataFilterRetrieveResponseUserFiltersStat? Type790 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant2? Type791 { get; set; } + public global::LabelStudio.ApiProjectsStatsFinishedRetrieveResponse? Type791 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type792 { get; set; } + public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponse? Type792 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsTasksAssigneesBulkCreateResponse? Type793 { get; set; } + public global::System.Collections.Generic.IList? Type793 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type794 { get; set; } + public global::LabelStudio.ApiProjectsStatsLeadTimeRetrieveResponseLeadTimeStat? Type794 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsPredictionListResponse? Type795 { get; set; } + public global::LabelStudio.ApiProjectsStatsMemberPerformanceRowsRetrieveResponse? Type795 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsReviewScoreListResponse? Type796 { get; set; } + public global::LabelStudio.ApiProjectsStatsMemberPerformanceSummaryRetrieveResponse? Type796 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse? Type797 { get; set; } + public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant1? Type797 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse? Type798 { get; set; } + public global::LabelStudio.ApiProjectsStatsTotalAgreementRetrieveResponseVariant2? Type798 { get; set; } /// /// /// - public global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse? Type799 { get; set; } + public global::System.Collections.Generic.IList? Type799 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type800 { get; set; } + public global::LabelStudio.ApiProjectsTasksAssigneesBulkCreateResponse? Type800 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type801 { get; set; } + public global::System.Collections.Generic.IList? Type801 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type802 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsPredictionListResponse? Type802 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type803 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsReviewScoreListResponse? Type803 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type804 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsPredictionRetrieveResponse? Type804 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type805 { get; set; } + public global::LabelStudio.ApiProjectsUserStatsReviewScoreRetrieveResponse? Type805 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type806 { get; set; } + public global::LabelStudio.ApiProjectsUsersStatsAgreementGroundtruthRetrieveResponse? Type806 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type807 { get; set; } + public global::System.Collections.Generic.IList? Type807 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type808 { get; set; } + public global::System.Collections.Generic.IList? Type808 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type809 { get; set; } + public global::System.Collections.Generic.IList? Type809 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type810 { get; set; } + public global::System.Collections.Generic.IList? Type810 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type811 { get; set; } + public global::System.Collections.Generic.IList? Type811 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type812 { get; set; } + public global::System.Collections.Generic.IList? Type812 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type813 { get; set; } + public global::System.Collections.Generic.IList? Type813 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type814 { get; set; } + public global::System.Collections.Generic.IList? Type814 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type815 { get; set; } + public global::System.Collections.Generic.IList? Type815 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type816 { get; set; } + public global::System.Collections.Generic.IList? Type816 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type817 { get; set; } + public global::System.Collections.Generic.IList? Type817 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type818 { get; set; } + public global::System.Collections.Generic.IList? Type818 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type819 { get; set; } + public global::System.Collections.Generic.IList? Type819 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type820 { get; set; } + public global::System.Collections.Generic.IList? Type820 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesExportTypesRetrieveResponseItem? Type821 { get; set; } + public global::System.Collections.Generic.IList? Type821 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type822 { get; set; } + public global::System.Collections.Generic.IList? Type822 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type823 { get; set; } + public global::System.Collections.Generic.IList? Type823 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type824 { get; set; } + public global::System.Collections.Generic.IList? Type824 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type825 { get; set; } + public global::System.Collections.Generic.IList? Type825 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type826 { get; set; } + public global::System.Collections.Generic.IList? Type826 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type827 { get; set; } + public global::System.Collections.Generic.IList? Type827 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type828 { get; set; } + public global::LabelStudio.ApiStoragesExportTypesRetrieveResponseItem? Type828 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type829 { get; set; } + public global::System.Collections.Generic.IList? Type829 { get; set; } /// /// /// - public global::LabelStudio.ApiStoragesTypesRetrieveResponseItem? Type830 { get; set; } + public global::System.Collections.Generic.IList? Type830 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type831 { get; set; } + public global::System.Collections.Generic.IList? Type831 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type832 { get; set; } + public global::System.Collections.Generic.IList? Type832 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type833 { get; set; } + public global::System.Collections.Generic.IList? Type833 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponse? Type834 { get; set; } + public global::System.Collections.Generic.IList? Type834 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsCreated? Type835 { get; set; } + public global::System.Collections.Generic.IList? Type835 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsDeleted? Type836 { get; set; } + public global::System.Collections.Generic.IList? Type836 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationCreated? Type837 { get; set; } + public global::LabelStudio.ApiStoragesTypesRetrieveResponseItem? Type837 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationUpdated? Type838 { get; set; } + public global::System.Collections.Generic.IList? Type838 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkCreated? Type839 { get; set; } + public global::System.Collections.Generic.IList? Type839 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkDeleted? Type840 { get; set; } + public global::System.Collections.Generic.IList? Type840 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkUpdated? Type841 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponse? Type841 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectCreated? Type842 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsCreated? Type842 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectDeleted? Type843 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationsDeleted? Type843 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectUpdated? Type844 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationCreated? Type844 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewsDeleted? Type845 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseAnnotationUpdated? Type845 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewCreated? Type846 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkCreated? Type846 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewUpdated? Type847 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkDeleted? Type847 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksCreated? Type848 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseLabelLinkUpdated? Type848 { get; set; } /// /// /// - public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksDeleted? Type849 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectCreated? Type849 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type850 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectDeleted? Type850 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type851 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseProjectUpdated? Type851 { get; set; } /// /// /// - public global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse? Type852 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewsDeleted? Type852 { get; set; } /// /// /// - public global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse? Type853 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewCreated? Type853 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type854 { get; set; } + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseReviewUpdated? Type854 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksCreated? Type855 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWebhooksInfoRetrieveResponseTasksDeleted? Type856 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type857 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type858 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWorkspacesMembershipsBulkDestroyResponse? Type859 { get; set; } + /// + /// + /// + public global::LabelStudio.ApiWorkspacesMembershipsBulkCreateResponse? Type860 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type861 { get; set; } /// /// @@ -3902,222 +3930,226 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::System.Collections.Generic.List? ListType112 { get; set; } + public global::System.Collections.Generic.List? ListType112 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.List? ListType113 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType113 { get; set; } + public global::System.Collections.Generic.List? ListType114 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType114 { get; set; } + public global::System.Collections.Generic.List? ListType115 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType115 { get; set; } + public global::System.Collections.Generic.List? ListType116 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType116 { get; set; } + public global::System.Collections.Generic.List? ListType117 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType117 { get; set; } + public global::System.Collections.Generic.List? ListType118 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType118 { get; set; } + public global::System.Collections.Generic.List? ListType119 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType119 { get; set; } + public global::System.Collections.Generic.List? ListType120 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType120 { get; set; } + public global::System.Collections.Generic.List? ListType121 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType121 { get; set; } + public global::System.Collections.Generic.List? ListType122 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType122 { get; set; } + public global::System.Collections.Generic.List? ListType123 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType123 { get; set; } + public global::System.Collections.Generic.List? ListType124 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType124 { get; set; } + public global::System.Collections.Generic.List? ListType125 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType125 { get; set; } + public global::System.Collections.Generic.List? ListType126 { get; set; } /// /// /// - public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? ListType126 { get; set; } + public global::LabelStudio.OneOf>, global::System.Collections.Generic.Dictionary>>>? ListType127 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>>? ListType127 { get; set; } + public global::System.Collections.Generic.Dictionary>>? ListType128 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType128 { get; set; } + public global::System.Collections.Generic.List? ListType129 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType129 { get; set; } + public global::System.Collections.Generic.List? ListType130 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType130 { get; set; } + public global::System.Collections.Generic.List? ListType131 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType131 { get; set; } + public global::System.Collections.Generic.List? ListType132 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType132 { get; set; } + public global::System.Collections.Generic.List? ListType133 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType133 { get; set; } + public global::System.Collections.Generic.List? ListType134 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType134 { get; set; } + public global::System.Collections.Generic.List? ListType135 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType135 { get; set; } + public global::System.Collections.Generic.List? ListType136 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType136 { get; set; } + public global::System.Collections.Generic.List? ListType137 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType137 { get; set; } + public global::System.Collections.Generic.List? ListType138 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType138 { get; set; } + public global::System.Collections.Generic.List? ListType139 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType139 { get; set; } + public global::System.Collections.Generic.List? ListType140 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType140 { get; set; } + public global::System.Collections.Generic.List? ListType141 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType141 { get; set; } + public global::System.Collections.Generic.List? ListType142 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType142 { get; set; } + public global::System.Collections.Generic.List? ListType143 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType143 { get; set; } + public global::System.Collections.Generic.List? ListType144 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType144 { get; set; } + public global::System.Collections.Generic.List? ListType145 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType145 { get; set; } + public global::System.Collections.Generic.List? ListType146 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType146 { get; set; } + public global::System.Collections.Generic.List? ListType147 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType147 { get; set; } + public global::System.Collections.Generic.List? ListType148 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType148 { get; set; } + public global::System.Collections.Generic.List? ListType149 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType149 { get; set; } + public global::System.Collections.Generic.List? ListType150 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType150 { get; set; } + public global::System.Collections.Generic.List? ListType151 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType151 { get; set; } + public global::System.Collections.Generic.List? ListType152 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType152 { get; set; } + public global::System.Collections.Generic.List? ListType153 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType153 { get; set; } + public global::System.Collections.Generic.List? ListType154 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType154 { get; set; } + public global::System.Collections.Generic.List? ListType155 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType155 { get; set; } + public global::System.Collections.Generic.List? ListType156 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType156 { get; set; } + public global::System.Collections.Generic.List? ListType157 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType157 { get; set; } + public global::System.Collections.Generic.List? ListType158 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType158 { get; set; } + public global::System.Collections.Generic.List? ListType159 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType159 { get; set; } + public global::System.Collections.Generic.List? ListType160 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType160 { get; set; } + public global::System.Collections.Generic.List? ListType161 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType161 { get; set; } + public global::System.Collections.Generic.List? ListType162 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType162 { get; set; } + public global::System.Collections.Generic.List? ListType163 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType163 { get; set; } + public global::System.Collections.Generic.List? ListType164 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType164 { get; set; } + public global::System.Collections.Generic.List? ListType165 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType165 { get; set; } + public global::System.Collections.Generic.List? ListType166 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType166 { get; set; } + public global::System.Collections.Generic.List? ListType167 { get; set; } } } \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Llm.JsonSerializerContext.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Llm.JsonSerializerContext.g.cs index 7c4233b3..ff5bf8a5 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Llm.JsonSerializerContext.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Llm.JsonSerializerContext.g.cs @@ -19,14 +19,25 @@ namespace LabelStudio [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List), TypeInfoPropertyName = "SystemCollectionsGeneric_ObjectList")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Text.Json.JsonElement?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ChatCompletionRequestRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ChatMessageRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ChatMessageRoleEnum), TypeInfoPropertyName = "ChatMessageRoleEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoice))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseUsage))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse2))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::LabelStudio.ChatMessageRoleEnum?), TypeInfoPropertyName = "NullableChatMessageRoleEnum2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.DateTimeOffset?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] internal sealed partial class LlmSourceGenerationContextChunk0 : global::System.Text.Json.Serialization.JsonSerializerContext { } diff --git a/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs index f16f4cc7..99faa48f 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.LlmClient.ApiLlmOpenaiChatCompletionsCreate.g.cs @@ -49,7 +49,7 @@ partial void ProcessApiLlmOpenaiChatCompletionsCreateResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ApiLlmOpenaiChatCompletionsCreateAsync( + public async global::System.Threading.Tasks.Task ApiLlmOpenaiChatCompletionsCreateAsync( global::LabelStudio.ChatCompletionRequestRequest request, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, @@ -72,7 +72,7 @@ partial void ProcessApiLlmOpenaiChatCompletionsCreateResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task> ApiLlmOpenaiChatCompletionsCreateAsResponseAsync( + public async global::System.Threading.Tasks.Task> ApiLlmOpenaiChatCompletionsCreateAsResponseAsync( global::LabelStudio.ChatCompletionRequestRequest request, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, @@ -337,24 +337,24 @@ partial void ProcessApiLlmOpenaiChatCompletionsCreateResponseContent( retryReason: global::System.String.Empty, cancellationToken: __effectiveCancellationToken)).ConfigureAwait(false); } - // + // Bad request - missing required fields or invalid provider if ((int)__response.StatusCode == 400) { string? __content_400 = null; global::System.Exception? __exception_400 = null; - string? __value_400 = null; + global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse2? __value_400 = null; try { if (__effectiveReadResponseAsString) { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse2.FromJson(__content_400, JsonSerializerContext); } else { __content_400 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false); - __value_400 = (string?)global::System.Text.Json.JsonSerializer.Deserialize(__content_400, typeof(string), JsonSerializerContext); + __value_400 = global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse2.FromJson(__content_400, JsonSerializerContext); } } catch (global::System.Exception __ex) @@ -363,7 +363,7 @@ partial void ProcessApiLlmOpenaiChatCompletionsCreateResponseContent( } - throw global::LabelStudio.ApiException.Create( + throw global::LabelStudio.ApiException.Create( statusCode: __response.StatusCode, message: __content_400 ?? __response.ReasonPhrase ?? string.Empty, innerException: __exception_400, @@ -396,11 +396,13 @@ partial void ProcessApiLlmOpenaiChatCompletionsCreateResponseContent( { __response.EnsureSuccessStatusCode(); - return new global::LabelStudio.AutoSDKHttpResponse( + var __value = global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse.FromJson(__content, JsonSerializerContext) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return new global::LabelStudio.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, - body: __content); + body: __value); } catch (global::System.Exception __ex) { @@ -420,17 +422,19 @@ partial void ProcessApiLlmOpenaiChatCompletionsCreateResponseContent( try { __response.EnsureSuccessStatusCode(); - var __content = await __response.Content.ReadAsStringAsync( + using var __content = await __response.Content.ReadAsStreamAsync( #if NET5_0_OR_GREATER __effectiveCancellationToken #endif ).ConfigureAwait(false); - return new global::LabelStudio.AutoSDKHttpResponse( + var __value = await global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponse.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ?? + throw new global::System.InvalidOperationException("Response deserialization failed."); + return new global::LabelStudio.AutoSDKHttpResponse( statusCode: __response.StatusCode, headers: global::LabelStudio.AutoSDKHttpResponse.CreateHeaders(__response), requestUri: __response.RequestMessage?.RequestUri, - body: __content); + body: __value); } catch (global::System.Exception __ex) { @@ -479,7 +483,7 @@ partial void ProcessApiLlmOpenaiChatCompletionsCreateResponseContent( /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ApiLlmOpenaiChatCompletionsCreateAsync( + public async global::System.Threading.Tasks.Task ApiLlmOpenaiChatCompletionsCreateAsync( global::System.Collections.Generic.IList messages, string model, global::LabelStudio.AutoSDKRequestOptions? requestOptions = default, diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponse.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponse.g.cs index ad5f6248..a7bd2a23 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponse.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponse.g.cs @@ -4,10 +4,46 @@ namespace LabelStudio { /// - /// Chat completion response + /// /// public sealed partial class ApiLlmOpenaiChatCompletionsCreateResponse { + /// + /// Array of completion choices + /// + [global::System.Text.Json.Serialization.JsonPropertyName("choices")] + public global::System.Collections.Generic.IList? Choices { get; set; } + + /// + /// Unix timestamp of when the completion was created + /// + [global::System.Text.Json.Serialization.JsonPropertyName("created")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::LabelStudio.JsonConverters.UnixTimestampJsonConverter))] + public global::System.DateTimeOffset? Created { get; set; } + + /// + /// Unique identifier for the chat completion + /// + [global::System.Text.Json.Serialization.JsonPropertyName("id")] + public string? Id { get; set; } + + /// + /// The model used for the completion + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } + + /// + /// Object type, always "chat.completion" + /// + [global::System.Text.Json.Serialization.JsonPropertyName("object")] + public string? Object { get; set; } + + /// + /// Token usage statistics + /// + [global::System.Text.Json.Serialization.JsonPropertyName("usage")] + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseUsage? Usage { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -15,5 +51,52 @@ public sealed partial class ApiLlmOpenaiChatCompletionsCreateResponse [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. + /// + /// + /// Array of completion choices + /// + /// + /// Unix timestamp of when the completion was created + /// + /// + /// Unique identifier for the chat completion + /// + /// + /// The model used for the completion + /// + /// + /// Object type, always "chat.completion" + /// + /// + /// Token usage statistics + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ApiLlmOpenaiChatCompletionsCreateResponse( + global::System.Collections.Generic.IList? choices, + global::System.DateTimeOffset? created, + string? id, + string? model, + string? @object, + global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseUsage? usage) + { + this.Choices = choices; + this.Created = created; + this.Id = id; + this.Model = model; + this.Object = @object; + this.Usage = usage; + } + + /// + /// Initializes a new instance of the class. + /// + public ApiLlmOpenaiChatCompletionsCreateResponse() + { + } + } } \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponse2.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponse2.g.cs index b898d106..735fa228 100644 --- a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponse2.g.cs +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponse2.g.cs @@ -4,10 +4,15 @@ namespace LabelStudio { /// - /// Bad request - missing required fields or invalid provider + /// /// public sealed partial class ApiLlmOpenaiChatCompletionsCreateResponse2 { + /// + /// Error message describing the issue + /// + [global::System.Text.Json.Serialization.JsonPropertyName("detail")] + public string? Detail { get; set; } /// /// Additional properties that are not explicitly defined in the schema @@ -15,5 +20,27 @@ public sealed partial class ApiLlmOpenaiChatCompletionsCreateResponse2 [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. + /// + /// + /// Error message describing the issue + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ApiLlmOpenaiChatCompletionsCreateResponse2( + string? detail) + { + this.Detail = detail; + } + + /// + /// Initializes a new instance of the class. + /// + public ApiLlmOpenaiChatCompletionsCreateResponse2() + { + } + } } \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponseChoice.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponseChoice.Json.g.cs new file mode 100644 index 00000000..b6d23b58 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponseChoice.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class ApiLlmOpenaiChatCompletionsCreateResponseChoice + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoice? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoice), + jsonSerializerContext) as global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoice; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoice? FromJson( + string json) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoice? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + 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::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoice), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoice; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponseChoice.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponseChoice.g.cs new file mode 100644 index 00000000..e1ca0d0e --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponseChoice.g.cs @@ -0,0 +1,66 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class ApiLlmOpenaiChatCompletionsCreateResponseChoice + { + /// + /// The reason the completion finished + /// + [global::System.Text.Json.Serialization.JsonPropertyName("finish_reason")] + public string? FinishReason { get; set; } + + /// + /// The index of the choice + /// + [global::System.Text.Json.Serialization.JsonPropertyName("index")] + public int? Index { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("message")] + public global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage? Message { 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. + /// + /// + /// The reason the completion finished + /// + /// + /// The index of the choice + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ApiLlmOpenaiChatCompletionsCreateResponseChoice( + string? finishReason, + int? index, + global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage? message) + { + this.FinishReason = finishReason; + this.Index = index; + this.Message = message; + } + + /// + /// Initializes a new instance of the class. + /// + public ApiLlmOpenaiChatCompletionsCreateResponseChoice() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage.Json.g.cs new file mode 100644 index 00000000..fb484fcc --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage), + jsonSerializerContext) as global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage? FromJson( + string json) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + 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::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage.g.cs new file mode 100644 index 00000000..f7f8f054 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// + /// + public sealed partial class ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage + { + /// + /// The content of the message + /// + [global::System.Text.Json.Serialization.JsonPropertyName("content")] + public string? Content { get; set; } + + /// + /// The role of the message author + /// + [global::System.Text.Json.Serialization.JsonPropertyName("role")] + public string? Role { 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. + /// + /// + /// The content of the message + /// + /// + /// The role of the message author + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage( + string? content, + string? role) + { + this.Content = content; + this.Role = role; + } + + /// + /// Initializes a new instance of the class. + /// + public ApiLlmOpenaiChatCompletionsCreateResponseChoiceMessage() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponseUsage.Json.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponseUsage.Json.g.cs new file mode 100644 index 00000000..5e03e759 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponseUsage.Json.g.cs @@ -0,0 +1,141 @@ +#nullable enable + +namespace LabelStudio +{ + public sealed partial class ApiLlmOpenaiChatCompletionsCreateResponseUsage + { + /// + /// 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 generated default JsonSerializerContext. + /// + public string ToJson() + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return ToJson(global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.Serialize( + this, + jsonSerializerOptions); + } + + /// + /// Deserializes a JSON string using the provided JsonSerializerContext. + /// + public static global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseUsage? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseUsage), + jsonSerializerContext) as global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseUsage; + } + + /// + /// Deserializes a JSON string using the generated default JsonSerializerContext. + /// + public static global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseUsage? FromJson( + string json) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseUsage? FromJson( + string json, + global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) + { + if (jsonSerializerOptions is null) + { + return FromJson( + json, + global::LabelStudio.SourceGenerationContext.Default); + } + + 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::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseUsage), + jsonSerializerContext).ConfigureAwait(false)) as global::LabelStudio.ApiLlmOpenaiChatCompletionsCreateResponseUsage; + } + + /// + /// Deserializes a JSON stream using the generated default JsonSerializerContext. + /// + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + global::System.IO.Stream jsonStream) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + /// + /// 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) + { + if (jsonSerializerOptions is null) + { + return FromJsonStreamAsync( + jsonStream, + global::LabelStudio.SourceGenerationContext.Default); + } + + return global::System.Text.Json.JsonSerializer.DeserializeAsync( + jsonStream, + jsonSerializerOptions); + } + } +} diff --git a/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponseUsage.g.cs b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponseUsage.g.cs new file mode 100644 index 00000000..9c205477 --- /dev/null +++ b/src/libs/LabelStudio/Generated/LabelStudio.Models.ApiLlmOpenaiChatCompletionsCreateResponseUsage.g.cs @@ -0,0 +1,68 @@ + +#nullable enable + +namespace LabelStudio +{ + /// + /// Token usage statistics + /// + public sealed partial class ApiLlmOpenaiChatCompletionsCreateResponseUsage + { + /// + /// Number of tokens in the completion + /// + [global::System.Text.Json.Serialization.JsonPropertyName("completion_tokens")] + public int? CompletionTokens { get; set; } + + /// + /// Number of tokens in the prompt + /// + [global::System.Text.Json.Serialization.JsonPropertyName("prompt_tokens")] + public int? PromptTokens { get; set; } + + /// + /// Total number of tokens used + /// + [global::System.Text.Json.Serialization.JsonPropertyName("total_tokens")] + public int? TotalTokens { 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. + /// + /// + /// Number of tokens in the completion + /// + /// + /// Number of tokens in the prompt + /// + /// + /// Total number of tokens used + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ApiLlmOpenaiChatCompletionsCreateResponseUsage( + int? completionTokens, + int? promptTokens, + int? totalTokens) + { + this.CompletionTokens = completionTokens; + this.PromptTokens = promptTokens; + this.TotalTokens = totalTokens; + } + + /// + /// Initializes a new instance of the class. + /// + public ApiLlmOpenaiChatCompletionsCreateResponseUsage() + { + } + + } +} \ No newline at end of file diff --git a/src/libs/LabelStudio/openapi.yaml b/src/libs/LabelStudio/openapi.yaml index 620c1edd..7dd68076 100644 --- a/src/libs/LabelStudio/openapi.yaml +++ b/src/libs/LabelStudio/openapi.yaml @@ -7642,71 +7642,65 @@ paths: content: application/json: schema: - content: - application/json: - properties: - choices: - description: Array of completion choices - items: + properties: + choices: + description: Array of completion choices + items: + properties: + finish_reason: + description: The reason the completion finished + type: string + index: + description: The index of the choice + type: integer + message: properties: - finish_reason: - description: The reason the completion finished + content: + description: The content of the message + type: string + role: + description: The role of the message author type: string - index: - description: The index of the choice - type: integer - message: - properties: - content: - description: The content of the message - type: string - role: - description: The role of the message author - type: string - type: object type: object - type: array - created: - description: Unix timestamp of when the completion was created + type: object + type: array + created: + description: Unix timestamp of when the completion was created + type: integer + id: + description: Unique identifier for the chat completion + type: string + model: + description: The model used for the completion + type: string + object: + description: Object type, always "chat.completion" + type: string + usage: + description: Token usage statistics + properties: + completion_tokens: + description: Number of tokens in the completion + type: integer + prompt_tokens: + description: Number of tokens in the prompt + type: integer + total_tokens: + description: Total number of tokens used type: integer - id: - description: Unique identifier for the chat completion - type: string - model: - description: The model used for the completion - type: string - object: - description: Object type, always "chat.completion" - type: string - usage: - description: Token usage statistics - properties: - completion_tokens: - description: Number of tokens in the completion - type: integer - prompt_tokens: - description: Number of tokens in the prompt - type: integer - total_tokens: - description: Total number of tokens used - type: integer - type: object type: object - description: Chat completion response - description: '' + type: object + description: Chat completion response '400': content: application/json: schema: - content: - application/json: - properties: - detail: - description: Error message describing the issue - type: string - type: object - description: Bad request - missing required fields or invalid provider - description: '' + properties: + detail: + description: Error message describing the issue + type: string + type: object + description: Bad request - missing required fields or invalid provider security: - Token: [] summary: Proxy to OpenAI-Compatible Chat Completions @@ -29129,7 +29123,6 @@ components: project: type: integer view: - default: '' type: integer required: - dataset