diff --git a/CHANGELOG.md b/CHANGELOG.md index b057bb399..43ad3e0ae 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,11 @@ - Changed name of return types from methods returning streaming collections from `ResultCollection` to `CollectionResult` [#105](https://github.com/openai/openai-dotnet/pull/105). - Changed return types from methods returning paginated collections from `PageableCollection` to `PageCollection` [#105](https://github.com/openai/openai-dotnet/pull/105). Users must now call `GetAllValues` on the collection of pages to enumerate collection items directly. Corresponding protocol methods return `IEnumerable` where each collection item represents a single service response holding a page of values. +- Updated `VectorStoreFileCounts` and `VectorStoreFileAssociationError` types from `readonly struct` to `class`. + +### Other Changes + +- Removed the usage of `init` and updated properties to use `set`. ### Bugs Fixed diff --git a/src/Custom/Assistants/Assistant.cs b/src/Custom/Assistants/Assistant.cs index 872b43884..34ee40166 100644 --- a/src/Custom/Assistants/Assistant.cs +++ b/src/Custom/Assistants/Assistant.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Assistants; +namespace OpenAI.Assistants; [CodeGenModel("AssistantObject")] public partial class Assistant diff --git a/src/Custom/Assistants/AssistantCollectionOptions.cs b/src/Custom/Assistants/AssistantCollectionOptions.cs index 731401eff..c7baa96d1 100644 --- a/src/Custom/Assistants/AssistantCollectionOptions.cs +++ b/src/Custom/Assistants/AssistantCollectionOptions.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Assistants; +namespace OpenAI.Assistants; /// /// Represents addition options available when requesting a collection of instances. @@ -14,20 +14,20 @@ public AssistantCollectionOptions() { } /// The order that results should appear in the list according to /// their created_at timestamp. /// - public ListOrder? Order { get; init; } + public ListOrder? Order { get; set; } /// /// The number of values to return in a page result. /// - public int? PageSize { get; init; } + public int? PageSize { get; set; } /// /// The id of the item preceeding the first item in the collection. /// - public string AfterId { get; init; } + public string AfterId { get; set; } /// /// The id of the item following the last item in the collection. /// - public string BeforeId { get; init; } + public string BeforeId { get; set; } } diff --git a/src/Custom/Assistants/AssistantCreationOptions.cs b/src/Custom/Assistants/AssistantCreationOptions.cs index d9fbe5746..c00b6e82e 100644 --- a/src/Custom/Assistants/AssistantCreationOptions.cs +++ b/src/Custom/Assistants/AssistantCreationOptions.cs @@ -23,11 +23,11 @@ public partial class AssistantCreationOptions /// [CodeGenMember("ToolResources")] - public ToolResources ToolResources { get; init; } + public ToolResources ToolResources { get; set; } /// [CodeGenMember("ResponseFormat")] - public AssistantResponseFormat ResponseFormat { get; init; } + public AssistantResponseFormat ResponseFormat { get; set; } /// /// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. @@ -35,7 +35,7 @@ public partial class AssistantCreationOptions /// We generally recommend altering this or temperature but not both. /// [CodeGenMember("TopP")] - public float? NucleusSamplingFactor { get; init; } + public float? NucleusSamplingFactor { get; set; } internal AssistantCreationOptions(InternalCreateAssistantRequestModel model) : this() diff --git a/src/Custom/Assistants/AssistantModificationOptions.cs b/src/Custom/Assistants/AssistantModificationOptions.cs index 51d6e756b..bbd8b2efb 100644 --- a/src/Custom/Assistants/AssistantModificationOptions.cs +++ b/src/Custom/Assistants/AssistantModificationOptions.cs @@ -11,7 +11,7 @@ public partial class AssistantModificationOptions /// /// The replacement model that the assistant should use. /// - public string Model { get; init; } + public string Model { get; set; } /// /// @@ -20,18 +20,18 @@ public partial class AssistantModificationOptions /// There can be a maximum of 128 tools per assistant. Tools can be of types `code_interpreter`, `file_search`, or `function`. /// [CodeGenMember("Tools")] - public IList DefaultTools { get; init; } = new ChangeTrackingList(); + public IList DefaultTools { get; set; } = new ChangeTrackingList(); // CUSTOM: reuse common request/response models for tool resources. Note that modification operations use the // response models (which do not contain resource initialization helpers). /// [CodeGenMember("ToolResources")] - public ToolResources ToolResources { get; init; } + public ToolResources ToolResources { get; set; } /// [CodeGenMember("ResponseFormat")] - public AssistantResponseFormat ResponseFormat { get; init; } + public AssistantResponseFormat ResponseFormat { get; set; } /// /// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. @@ -39,5 +39,5 @@ public partial class AssistantModificationOptions /// We generally recommend altering this or temperature but not both. /// [CodeGenMember("TopP")] - public float? NucleusSamplingFactor { get; init; } + public float? NucleusSamplingFactor { get; set; } } \ No newline at end of file diff --git a/src/Custom/Assistants/AssistantThread.cs b/src/Custom/Assistants/AssistantThread.cs index df31e929c..376766668 100644 --- a/src/Custom/Assistants/AssistantThread.cs +++ b/src/Custom/Assistants/AssistantThread.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Assistants; +namespace OpenAI.Assistants; [CodeGenModel("ThreadObject")] public partial class AssistantThread diff --git a/src/Custom/Assistants/AssistantsPageEnumerator.cs b/src/Custom/Assistants/AssistantsPageEnumerator.cs index 15dbcc2dc..634dd6b15 100644 --- a/src/Custom/Assistants/AssistantsPageEnumerator.cs +++ b/src/Custom/Assistants/AssistantsPageEnumerator.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.Text.Json; diff --git a/src/Custom/Assistants/AssistantsPageToken.cs b/src/Custom/Assistants/AssistantsPageToken.cs index 251e8a421..5cb19ed54 100644 --- a/src/Custom/Assistants/AssistantsPageToken.cs +++ b/src/Custom/Assistants/AssistantsPageToken.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.Diagnostics; using System.IO; diff --git a/src/Custom/Assistants/CodeInterpreterToolResources.cs b/src/Custom/Assistants/CodeInterpreterToolResources.cs index 55922e849..82f354922 100644 --- a/src/Custom/Assistants/CodeInterpreterToolResources.cs +++ b/src/Custom/Assistants/CodeInterpreterToolResources.cs @@ -12,7 +12,7 @@ public partial class CodeInterpreterToolResources public IList FileIds { get => _fileIds; - init + set { _fileIds = new ChangeTrackingList(); foreach (string fileId in value) diff --git a/src/Custom/Assistants/FileSearchToolDefinition.cs b/src/Custom/Assistants/FileSearchToolDefinition.cs index 57cdb817c..2bc8efff7 100644 --- a/src/Custom/Assistants/FileSearchToolDefinition.cs +++ b/src/Custom/Assistants/FileSearchToolDefinition.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; @@ -11,7 +11,7 @@ public partial class FileSearchToolDefinition : ToolDefinition public int? MaxResults { get => _fileSearch?.InternalMaxNumResults; - init => _fileSearch.InternalMaxNumResults = value; + set => _fileSearch.InternalMaxNumResults = value; } /// diff --git a/src/Custom/Assistants/FileSearchToolResources.cs b/src/Custom/Assistants/FileSearchToolResources.cs index 52c24b16f..66c0a1d43 100644 --- a/src/Custom/Assistants/FileSearchToolResources.cs +++ b/src/Custom/Assistants/FileSearchToolResources.cs @@ -14,7 +14,7 @@ public partial class FileSearchToolResources public IList VectorStoreIds { get => _vectorStoreIds; - init + set { _vectorStoreIds = new ChangeTrackingList(); foreach (string item in value) diff --git a/src/Custom/Assistants/FunctionToolDefinition.cs b/src/Custom/Assistants/FunctionToolDefinition.cs index 862af47e9..764e93ccf 100644 --- a/src/Custom/Assistants/FunctionToolDefinition.cs +++ b/src/Custom/Assistants/FunctionToolDefinition.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; @@ -17,21 +17,21 @@ public partial class FunctionToolDefinition : ToolDefinition public required string FunctionName { get => _internalFunction.Name; - init => _internalFunction.Name = value; + set => _internalFunction.Name = value; } /// public string Description { get => _internalFunction.Description; - init => _internalFunction.Description = value; + set => _internalFunction.Description = value; } /// public BinaryData Parameters { get => _internalFunction.Parameters; - init => _internalFunction.Parameters = value; + set => _internalFunction.Parameters = value; } /// diff --git a/src/Custom/Assistants/GeneratorStubs.cs b/src/Custom/Assistants/GeneratorStubs.cs index 8961646e9..9efb3dfb5 100644 --- a/src/Custom/Assistants/GeneratorStubs.cs +++ b/src/Custom/Assistants/GeneratorStubs.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Assistants; +namespace OpenAI.Assistants; /* * This file stubs and performs minimal customization to generated public types for the OpenAI.Assistants namespace diff --git a/src/Custom/Assistants/Internal/GeneratorStubs.Internal.cs b/src/Custom/Assistants/Internal/GeneratorStubs.Internal.cs index 71cd98b1b..22f86b4d4 100644 --- a/src/Custom/Assistants/Internal/GeneratorStubs.Internal.cs +++ b/src/Custom/Assistants/Internal/GeneratorStubs.Internal.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Assistants; +namespace OpenAI.Assistants; /* * This file stubs and performs minimal customization to generated internal types for the OpenAI.Assistants namespace. diff --git a/src/Custom/Assistants/MessageCollectionOptions.cs b/src/Custom/Assistants/MessageCollectionOptions.cs index 213d58419..ac4bf2215 100644 --- a/src/Custom/Assistants/MessageCollectionOptions.cs +++ b/src/Custom/Assistants/MessageCollectionOptions.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Assistants; +namespace OpenAI.Assistants; /// /// Represents addition options available when requesting a collection of instances. @@ -14,20 +14,20 @@ public MessageCollectionOptions() { } /// The order that results should appear in the list according to /// their created_at timestamp. /// - public ListOrder? Order { get; init; } + public ListOrder? Order { get; set; } /// /// The number of values to return in a page result. /// - public int? PageSize { get; init; } + public int? PageSize { get; set; } /// /// The id of the item preceeding the first item in the collection. /// - public string AfterId { get; init; } + public string AfterId { get; set; } /// /// The id of the item following the last item in the collection. /// - public string BeforeId { get; init; } + public string BeforeId { get; set; } } diff --git a/src/Custom/Assistants/MessageContent.cs b/src/Custom/Assistants/MessageContent.cs index 51cac7865..a32b8e982 100644 --- a/src/Custom/Assistants/MessageContent.cs +++ b/src/Custom/Assistants/MessageContent.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; namespace OpenAI.Assistants; diff --git a/src/Custom/Assistants/MessageImageDetail.cs b/src/Custom/Assistants/MessageImageDetail.cs index 1fda9cf67..17cc7827e 100644 --- a/src/Custom/Assistants/MessageImageDetail.cs +++ b/src/Custom/Assistants/MessageImageDetail.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Assistants; +namespace OpenAI.Assistants; /// /// The available detail settings to use when processing an image. diff --git a/src/Custom/Assistants/MessagesPageEnumerator.cs b/src/Custom/Assistants/MessagesPageEnumerator.cs index a4a262c33..c8ee06035 100644 --- a/src/Custom/Assistants/MessagesPageEnumerator.cs +++ b/src/Custom/Assistants/MessagesPageEnumerator.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.Text.Json; diff --git a/src/Custom/Assistants/MessagesPageToken.cs b/src/Custom/Assistants/MessagesPageToken.cs index b11bca627..ff4bfa9fa 100644 --- a/src/Custom/Assistants/MessagesPageToken.cs +++ b/src/Custom/Assistants/MessagesPageToken.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.Diagnostics; using System.IO; diff --git a/src/Custom/Assistants/RunCollectionOptions.cs b/src/Custom/Assistants/RunCollectionOptions.cs index d99f1a4b6..f64482328 100644 --- a/src/Custom/Assistants/RunCollectionOptions.cs +++ b/src/Custom/Assistants/RunCollectionOptions.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Assistants; +namespace OpenAI.Assistants; /// /// Represents addition options available when requesting a collection of instances. @@ -14,20 +14,20 @@ public RunCollectionOptions() { } /// The order that results should appear in the list according to /// their created_at timestamp. /// - public ListOrder? Order { get; init; } + public ListOrder? Order { get; set; } /// /// The number of values to return in a page result. /// - public int? PageSize { get; init; } + public int? PageSize { get; set; } /// /// The id of the item preceeding the first item in the collection. /// - public string AfterId { get; init; } + public string AfterId { get; set; } /// /// The id of the item following the last item in the collection. /// - public string BeforeId { get; init; } + public string BeforeId { get; set; } } diff --git a/src/Custom/Assistants/RunCreationOptions.cs b/src/Custom/Assistants/RunCreationOptions.cs index 32797f135..bcc45ee2f 100644 --- a/src/Custom/Assistants/RunCreationOptions.cs +++ b/src/Custom/Assistants/RunCreationOptions.cs @@ -22,21 +22,21 @@ public partial class RunCreationOptions /// [CodeGenMember("ResponseFormat")] - public AssistantResponseFormat ResponseFormat { get; init; } + public AssistantResponseFormat ResponseFormat { get; set; } /// /// A run-specific model name that will override the assistant's defined model. If not provided, the assistant's /// selection will be used. /// [CodeGenMember("Model")] - public string ModelOverride { get; init; } + public string ModelOverride { get; set; } /// /// A run specific replacement for the assistant's default instructions that will override the assistant-level /// instructions. If not specified, the assistant's instructions will be used. /// [CodeGenMember("Instructions")] - public string InstructionsOverride { get; init; } + public string InstructionsOverride { get; set; } /// /// Run-specific additional instructions that will be appended to the assistant-level instructions solely for this @@ -44,7 +44,7 @@ public partial class RunCreationOptions /// instructions are concatenated. /// [CodeGenMember("AdditionalInstructions")] - public string AdditionalInstructions { get; init; } + public string AdditionalInstructions { get; set; } /// Adds additional messages to the thread before creating the run. public IList AdditionalMessages { get; } = new ChangeTrackingList(); @@ -73,7 +73,7 @@ private set /// Assumed true if not otherwise specified. /// [CodeGenMember("ParallelToolCalls")] - public bool? ParallelToolCallsEnabled { get; init; } + public bool? ParallelToolCallsEnabled { get; set; } /// /// A run-specific collection of tool definitions that will override the assistant-level defaults. If not provided, @@ -102,7 +102,7 @@ private set public IDictionary Metadata { get; } = new ChangeTrackingDictionary(); /// What sampling temperature to use, between 0 and 2. Higher values like 0.8 will make the output more random, while lower values like 0.2 will make it more focused and deterministic. - public float? Temperature { get; init; } + public float? Temperature { get; set; } /// /// An alternative to sampling with temperature, called nucleus sampling, where the model considers the results of the tokens with top_p probability mass. So 0.1 means only the tokens comprising the top 10% probability mass are considered. @@ -110,22 +110,22 @@ private set /// We generally recommend altering this or temperature but not both. /// [CodeGenMember("TopP")] - public float? NucleusSamplingFactor { get; init; } + public float? NucleusSamplingFactor { get; set; } /// The maximum number of prompt tokens that may be used over the course of the run. The run will make a best effort to use only the number of prompt tokens specified, across multiple turns of the run. If the run exceeds the number of prompt tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. - public int? MaxPromptTokens { get; init; } + public int? MaxPromptTokens { get; set; } /// The maximum number of completion tokens that may be used over the course of the run. The run will make a best effort to use only the number of completion tokens specified, across multiple turns of the run. If the run exceeds the number of completion tokens specified, the run will end with status `incomplete`. See `incomplete_details` for more info. - public int? MaxCompletionTokens { get; init; } + public int? MaxCompletionTokens { get; set; } /// Gets or sets the truncation strategy. - public RunTruncationStrategy TruncationStrategy { get; init; } + public RunTruncationStrategy TruncationStrategy { get; set; } /// /// /// [CodeGenMember("ToolChoice")] - public ToolConstraint ToolConstraint { get; init; } + public ToolConstraint ToolConstraint { get; set; } /// /// Creates a new instance of . diff --git a/src/Custom/Assistants/RunStepCollectionOptions.cs b/src/Custom/Assistants/RunStepCollectionOptions.cs index 19ad62937..d85097058 100644 --- a/src/Custom/Assistants/RunStepCollectionOptions.cs +++ b/src/Custom/Assistants/RunStepCollectionOptions.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Assistants; +namespace OpenAI.Assistants; /// /// Represents addition options available when requesting a collection of instances. @@ -14,20 +14,20 @@ public RunStepCollectionOptions() { } /// The order that results should appear in the list according to /// their created_at timestamp. /// - public ListOrder? Order { get; init; } + public ListOrder? Order { get; set; } /// /// The number of values to return in a page result. /// - public int? PageSize { get; init; } + public int? PageSize { get; set; } /// /// The id of the item preceeding the first item in the collection. /// - public string AfterId { get; init; } + public string AfterId { get; set; } /// /// The id of the item following the last item in the collection. /// - public string BeforeId { get; init; } + public string BeforeId { get; set; } } diff --git a/src/Custom/Assistants/RunStepsPageEnumerator.cs b/src/Custom/Assistants/RunStepsPageEnumerator.cs index 77660e761..d6d74d7d2 100644 --- a/src/Custom/Assistants/RunStepsPageEnumerator.cs +++ b/src/Custom/Assistants/RunStepsPageEnumerator.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.Text.Json; diff --git a/src/Custom/Assistants/RunStepsPageToken.cs b/src/Custom/Assistants/RunStepsPageToken.cs index 65f522815..2579e7442 100644 --- a/src/Custom/Assistants/RunStepsPageToken.cs +++ b/src/Custom/Assistants/RunStepsPageToken.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.Diagnostics; using System.IO; diff --git a/src/Custom/Assistants/RunsPageEnumerator.cs b/src/Custom/Assistants/RunsPageEnumerator.cs index 3f9ee113f..3a0b827d0 100644 --- a/src/Custom/Assistants/RunsPageEnumerator.cs +++ b/src/Custom/Assistants/RunsPageEnumerator.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.Text.Json; diff --git a/src/Custom/Assistants/RunsPageToken.cs b/src/Custom/Assistants/RunsPageToken.cs index e019fe5d4..28b27f475 100644 --- a/src/Custom/Assistants/RunsPageToken.cs +++ b/src/Custom/Assistants/RunsPageToken.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.Diagnostics; using System.IO; diff --git a/src/Custom/Assistants/Streaming/AsyncStreamingUpdateCollection.cs b/src/Custom/Assistants/Streaming/AsyncStreamingUpdateCollection.cs index 187163a09..1a44545a5 100644 --- a/src/Custom/Assistants/Streaming/AsyncStreamingUpdateCollection.cs +++ b/src/Custom/Assistants/Streaming/AsyncStreamingUpdateCollection.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.Collections.Generic; diff --git a/src/Custom/Assistants/Streaming/StreamingUpdateCollection.cs b/src/Custom/Assistants/Streaming/StreamingUpdateCollection.cs index 954bc2284..d0099d995 100644 --- a/src/Custom/Assistants/Streaming/StreamingUpdateCollection.cs +++ b/src/Custom/Assistants/Streaming/StreamingUpdateCollection.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.Collections; diff --git a/src/Custom/Assistants/Streaming/StreamingUpdateReason.Serialization.cs b/src/Custom/Assistants/Streaming/StreamingUpdateReason.Serialization.cs index 87f1f6642..6445528ad 100644 --- a/src/Custom/Assistants/Streaming/StreamingUpdateReason.Serialization.cs +++ b/src/Custom/Assistants/Streaming/StreamingUpdateReason.Serialization.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Assistants; +namespace OpenAI.Assistants; internal static class StreamingUpdateReasonExtensions { diff --git a/src/Custom/Assistants/Streaming/StreamingUpdateReason.cs b/src/Custom/Assistants/Streaming/StreamingUpdateReason.cs index e581c709d..e23673342 100644 --- a/src/Custom/Assistants/Streaming/StreamingUpdateReason.cs +++ b/src/Custom/Assistants/Streaming/StreamingUpdateReason.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Assistants; +namespace OpenAI.Assistants; /// /// The collection of values associated with the event names of streaming update payloads. These correspond to the diff --git a/src/Custom/Assistants/Streaming/TextAnnotationUpdate.cs b/src/Custom/Assistants/Streaming/TextAnnotationUpdate.cs index 79a86bf37..e8972d138 100644 --- a/src/Custom/Assistants/Streaming/TextAnnotationUpdate.cs +++ b/src/Custom/Assistants/Streaming/TextAnnotationUpdate.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace OpenAI.Assistants; diff --git a/src/Custom/Assistants/TextAnnotation.cs b/src/Custom/Assistants/TextAnnotation.cs index 32b2c265f..45c505e38 100644 --- a/src/Custom/Assistants/TextAnnotation.cs +++ b/src/Custom/Assistants/TextAnnotation.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace OpenAI.Assistants; diff --git a/src/Custom/Assistants/ThreadCreationOptions.cs b/src/Custom/Assistants/ThreadCreationOptions.cs index 92f5fcd44..f0ae040f7 100644 --- a/src/Custom/Assistants/ThreadCreationOptions.cs +++ b/src/Custom/Assistants/ThreadCreationOptions.cs @@ -13,7 +13,7 @@ public partial class ThreadCreationOptions /// [CodeGenMember("ToolResources")] - public ToolResources ToolResources { get; init; } + public ToolResources ToolResources { get; set; } // CUSTOM: the wire-oriented messages type list is hidden so that we can propagate top-level required semantics // of message creation into the collection. diff --git a/src/Custom/Assistants/ThreadModificationOptions.cs b/src/Custom/Assistants/ThreadModificationOptions.cs index 8f81012cd..5216abe20 100644 --- a/src/Custom/Assistants/ThreadModificationOptions.cs +++ b/src/Custom/Assistants/ThreadModificationOptions.cs @@ -11,5 +11,5 @@ public partial class ThreadModificationOptions /// [CodeGenMember("ToolResources")] - public ToolResources ToolResources { get; init; } + public ToolResources ToolResources { get; set; } } \ No newline at end of file diff --git a/src/Custom/Assistants/ThreadRun.cs b/src/Custom/Assistants/ThreadRun.cs index 9d8ac1402..b2a0f3f43 100644 --- a/src/Custom/Assistants/ThreadRun.cs +++ b/src/Custom/Assistants/ThreadRun.cs @@ -91,6 +91,6 @@ internal ThreadRun(string id, DateTimeOffset createdAt, string threadId, string /// Assumed true if not otherwise specified. /// [CodeGenMember("ParallelToolCalls")] - public bool? ParallelToolCallsEnabled { get; init; } + public bool? ParallelToolCallsEnabled { get; } } diff --git a/src/Custom/Assistants/ToolConstraint.cs b/src/Custom/Assistants/ToolConstraint.cs index 7175f32bb..dc3de61ac 100644 --- a/src/Custom/Assistants/ToolConstraint.cs +++ b/src/Custom/Assistants/ToolConstraint.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; namespace OpenAI.Assistants; diff --git a/src/Custom/Assistants/ToolDefinition.cs b/src/Custom/Assistants/ToolDefinition.cs index ddedfdf18..92528d30b 100644 --- a/src/Custom/Assistants/ToolDefinition.cs +++ b/src/Custom/Assistants/ToolDefinition.cs @@ -1,4 +1,4 @@ -using System; +using System; namespace OpenAI.Assistants; diff --git a/src/Custom/Assistants/ToolOutput.cs b/src/Custom/Assistants/ToolOutput.cs index 15db2fec7..ad32112d0 100644 --- a/src/Custom/Assistants/ToolOutput.cs +++ b/src/Custom/Assistants/ToolOutput.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Assistants; +namespace OpenAI.Assistants; [CodeGenModel("SubmitToolOutputsRunRequestToolOutput")] public partial class ToolOutput diff --git a/src/Custom/Assistants/ToolResources.cs b/src/Custom/Assistants/ToolResources.cs index 93b2b7388..1043eead2 100644 --- a/src/Custom/Assistants/ToolResources.cs +++ b/src/Custom/Assistants/ToolResources.cs @@ -8,9 +8,9 @@ namespace OpenAI.Assistants; public partial class ToolResources { /// Gets the code interpreter. - public CodeInterpreterToolResources CodeInterpreter { get; init; } + public CodeInterpreterToolResources CodeInterpreter { get; set; } /// Gets the file search. - public FileSearchToolResources FileSearch { get; init; } + public FileSearchToolResources FileSearch { get; set; } public ToolResources() {} diff --git a/src/Custom/Audio/AudioClient.Protocol.cs b/src/Custom/Audio/AudioClient.Protocol.cs index 223e83c93..ba0001627 100644 --- a/src/Custom/Audio/AudioClient.Protocol.cs +++ b/src/Custom/Audio/AudioClient.Protocol.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.ComponentModel; diff --git a/src/Custom/Audio/AudioTranscriptionOptions.cs b/src/Custom/Audio/AudioTranscriptionOptions.cs index e111213de..b13679e0c 100644 --- a/src/Custom/Audio/AudioTranscriptionOptions.cs +++ b/src/Custom/Audio/AudioTranscriptionOptions.cs @@ -83,7 +83,7 @@ public AudioTranscriptionOptions() /// /// The timestamp granularities to populate for this transcription. /// - public AudioTimestampGranularities Granularities { get; init; } + public AudioTimestampGranularities Granularities { get; set; } internal MultipartFormDataBinaryContent ToMultipartContent(Stream audio, string audioFilename) { diff --git a/src/Custom/Audio/AudioTranslationFormat.cs b/src/Custom/Audio/AudioTranslationFormat.cs index 29e60faa2..84fd6686a 100644 --- a/src/Custom/Audio/AudioTranslationFormat.cs +++ b/src/Custom/Audio/AudioTranslationFormat.cs @@ -1,4 +1,4 @@ -using System.ComponentModel; +using System.ComponentModel; namespace OpenAI.Audio; diff --git a/src/Custom/Audio/Internal/GeneratorStubs.cs b/src/Custom/Audio/Internal/GeneratorStubs.cs index 9f0082d56..22859b0d0 100644 --- a/src/Custom/Audio/Internal/GeneratorStubs.cs +++ b/src/Custom/Audio/Internal/GeneratorStubs.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Audio; +namespace OpenAI.Audio; // CUSTOM: Made internal. diff --git a/src/Custom/Audio/TranscribedSegment.cs b/src/Custom/Audio/TranscribedSegment.cs index f361c7999..20f23300a 100644 --- a/src/Custom/Audio/TranscribedSegment.cs +++ b/src/Custom/Audio/TranscribedSegment.cs @@ -1,3 +1,4 @@ +using System; using System.Collections.Generic; using System.Runtime.InteropServices; @@ -7,6 +8,9 @@ namespace OpenAI.Audio; [StructLayout(LayoutKind.Auto)] public readonly partial struct TranscribedSegment { + // CUSTOM: Remove setter. + internal IDictionary SerializedAdditionalRawData { get; } + // CUSTOM: Rename. [CodeGenMember("Seek")] public long SeekOffset { get; } diff --git a/src/Custom/Audio/TranscribedWord.cs b/src/Custom/Audio/TranscribedWord.cs index 1155ba1c4..f3a534b67 100644 --- a/src/Custom/Audio/TranscribedWord.cs +++ b/src/Custom/Audio/TranscribedWord.cs @@ -1,6 +1,13 @@ -namespace OpenAI.Audio; +using System; +using System.Collections.Generic; +using System.Runtime.InteropServices; + +namespace OpenAI.Audio; [CodeGenModel("TranscriptionWord")] +[StructLayout(LayoutKind.Auto)] public readonly partial struct TranscribedWord { + // CUSTOM: Remove setter. + internal IDictionary SerializedAdditionalRawData { get; } } \ No newline at end of file diff --git a/src/Custom/Chat/AssistantChatMessage.Serialization.cs b/src/Custom/Chat/AssistantChatMessage.Serialization.cs index 0fc3f137f..38d9b4e4c 100644 --- a/src/Custom/Chat/AssistantChatMessage.Serialization.cs +++ b/src/Custom/Chat/AssistantChatMessage.Serialization.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; diff --git a/src/Custom/Chat/AssistantChatMessage.cs b/src/Custom/Chat/AssistantChatMessage.cs index b1374e99b..0549fcd2c 100644 --- a/src/Custom/Chat/AssistantChatMessage.cs +++ b/src/Custom/Chat/AssistantChatMessage.cs @@ -106,5 +106,5 @@ public AssistantChatMessage(ChatCompletion chatCompletion) /// message and is used to differentiate between multiple participants of the same role. /// [CodeGenMember("Name")] - public string ParticipantName { get; init; } + public string ParticipantName { get; set; } } \ No newline at end of file diff --git a/src/Custom/Chat/ChatClient.Protocol.cs b/src/Custom/Chat/ChatClient.Protocol.cs index a649281dc..21a03c811 100644 --- a/src/Custom/Chat/ChatClient.Protocol.cs +++ b/src/Custom/Chat/ChatClient.Protocol.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.ComponentModel; diff --git a/src/Custom/Chat/ChatCompletionOptions.Serialization.cs b/src/Custom/Chat/ChatCompletionOptions.Serialization.cs index a52c1eaf5..30e23a50b 100644 --- a/src/Custom/Chat/ChatCompletionOptions.Serialization.cs +++ b/src/Custom/Chat/ChatCompletionOptions.Serialization.cs @@ -1,4 +1,4 @@ -using System.ClientModel.Primitives; +using System.ClientModel.Primitives; using System.Collections.Generic; using System.Globalization; using System.Runtime.CompilerServices; diff --git a/src/Custom/Chat/ChatCompletionOptions.cs b/src/Custom/Chat/ChatCompletionOptions.cs index 12f474f17..77ef66507 100644 --- a/src/Custom/Chat/ChatCompletionOptions.cs +++ b/src/Custom/Chat/ChatCompletionOptions.cs @@ -59,12 +59,12 @@ public ChatCompletionOptions() // CUSTOM: Renamed. /// Whether to return log probabilities of the output tokens or not. If true, returns the log probabilities of each output token returned in the message content. [CodeGenMember("Logprobs")] - public bool? IncludeLogProbabilities { get; init; } + public bool? IncludeLogProbabilities { get; set; } // CUSTOM: Renamed. /// An integer between 0 and 20 specifying the number of most likely tokens to return at each token position, each with an associated log probability. must be set to if this property is used. [CodeGenMember("TopLogprobs")] - public int? TopLogProbabilityCount { get; init; } + public int? TopLogProbabilityCount { get; set; } // CUSTOM: // - Renamed. @@ -91,7 +91,7 @@ public ChatCompletionOptions() /// /// [CodeGenMember("ToolChoice")] - public ChatToolChoice ToolChoice { get; init; } + public ChatToolChoice ToolChoice { get; set; } // CUSTOM: // - Renamed. @@ -100,7 +100,7 @@ public ChatCompletionOptions() /// Deprecated in favor of . /// [CodeGenMember("FunctionCall")] - public ChatFunctionChoice FunctionChoice { get; init; } + public ChatFunctionChoice FunctionChoice { get; set; } /// /// Whether to enable parallel function calling during tool use. @@ -109,5 +109,5 @@ public ChatCompletionOptions() /// Assumed true if not otherwise specified. /// [CodeGenMember("ParallelToolCalls")] - public bool? ParallelToolCallsEnabled { get; init; } + public bool? ParallelToolCallsEnabled { get; set; } } \ No newline at end of file diff --git a/src/Custom/Chat/ChatFunction.cs b/src/Custom/Chat/ChatFunction.cs index f23f424e1..d2b14ec49 100644 --- a/src/Custom/Chat/ChatFunction.cs +++ b/src/Custom/Chat/ChatFunction.cs @@ -33,10 +33,10 @@ public ChatFunction(string functionName, string functionDescription = null, Bina // CUSTOM: Renamed /// A description of what the function does, used by the model to choose when and how to call the function. [CodeGenMember("Description")] - public string FunctionDescription { get; init; } + public string FunctionDescription { get; set; } // CUSTOM: Changed type to BinarayData. /// Gets or sets the parameters. [CodeGenMember("Parameters")] - public BinaryData FunctionParameters { get; init; } + public BinaryData FunctionParameters { get; set; } } \ No newline at end of file diff --git a/src/Custom/Chat/ChatFunctionChoice.Serialization.cs b/src/Custom/Chat/ChatFunctionChoice.Serialization.cs index 6d39e2a51..0ad21b27b 100644 --- a/src/Custom/Chat/ChatFunctionChoice.Serialization.cs +++ b/src/Custom/Chat/ChatFunctionChoice.Serialization.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; diff --git a/src/Custom/Chat/ChatMessage.cs b/src/Custom/Chat/ChatMessage.cs index e523eadd8..99fca4302 100644 --- a/src/Custom/Chat/ChatMessage.cs +++ b/src/Custom/Chat/ChatMessage.cs @@ -58,7 +58,7 @@ public abstract partial class ChatMessage /// /// The content associated with the message. The interpretation of this content will vary depending on the message type. /// - public IList Content { get; protected init; } + public IList Content { get; protected set; } /// public static SystemChatMessage CreateSystemMessage(string content) => new SystemChatMessage(content); diff --git a/src/Custom/Chat/ChatMessageContentPart.Serialization.cs b/src/Custom/Chat/ChatMessageContentPart.Serialization.cs index 2c24a942f..42e6ad202 100644 --- a/src/Custom/Chat/ChatMessageContentPart.Serialization.cs +++ b/src/Custom/Chat/ChatMessageContentPart.Serialization.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; diff --git a/src/Custom/Chat/ChatMessageRole.cs b/src/Custom/Chat/ChatMessageRole.cs index 21bd9e721..6611ec5d9 100644 --- a/src/Custom/Chat/ChatMessageRole.cs +++ b/src/Custom/Chat/ChatMessageRole.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Chat; +namespace OpenAI.Chat; /// /// Represents the role of a chat completion message. diff --git a/src/Custom/Chat/ChatToolCallKind.cs b/src/Custom/Chat/ChatToolCallKind.cs index 297ba2803..1a0b1716a 100644 --- a/src/Custom/Chat/ChatToolCallKind.cs +++ b/src/Custom/Chat/ChatToolCallKind.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Chat; +namespace OpenAI.Chat; [CodeGenModel("ChatCompletionMessageToolCallType")] public readonly partial struct ChatToolCallKind diff --git a/src/Custom/Chat/ChatToolChoice.Serialization.cs b/src/Custom/Chat/ChatToolChoice.Serialization.cs index 5d8e275ab..28ebbf323 100644 --- a/src/Custom/Chat/ChatToolChoice.Serialization.cs +++ b/src/Custom/Chat/ChatToolChoice.Serialization.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; diff --git a/src/Custom/Chat/ChatToolKind.cs b/src/Custom/Chat/ChatToolKind.cs index 1bd3ca393..3970f0f07 100644 --- a/src/Custom/Chat/ChatToolKind.cs +++ b/src/Custom/Chat/ChatToolKind.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Chat; +namespace OpenAI.Chat; [CodeGenModel("ChatCompletionToolType")] public readonly partial struct ChatToolKind diff --git a/src/Custom/Chat/FunctionChatMessage.Serialization.cs b/src/Custom/Chat/FunctionChatMessage.Serialization.cs index b8749e951..cb46e2760 100644 --- a/src/Custom/Chat/FunctionChatMessage.Serialization.cs +++ b/src/Custom/Chat/FunctionChatMessage.Serialization.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; diff --git a/src/Custom/Chat/ImageChatMessageContentPartDetail.cs b/src/Custom/Chat/ImageChatMessageContentPartDetail.cs index b8702fd4a..943400a8e 100644 --- a/src/Custom/Chat/ImageChatMessageContentPartDetail.cs +++ b/src/Custom/Chat/ImageChatMessageContentPartDetail.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Chat; +namespace OpenAI.Chat; [CodeGenModel("ChatCompletionRequestMessageContentPartImageImageUrlDetail")] public readonly partial struct ImageChatMessageContentPartDetail diff --git a/src/Custom/Chat/Internal/AsyncStreamingChatCompletionUpdateCollection.cs b/src/Custom/Chat/Internal/AsyncStreamingChatCompletionUpdateCollection.cs index db3781235..d3bc8ae90 100644 --- a/src/Custom/Chat/Internal/AsyncStreamingChatCompletionUpdateCollection.cs +++ b/src/Custom/Chat/Internal/AsyncStreamingChatCompletionUpdateCollection.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.Collections.Generic; diff --git a/src/Custom/Chat/Internal/GeneratorStubs.cs b/src/Custom/Chat/Internal/GeneratorStubs.cs index 9aecc2712..5288b2600 100644 --- a/src/Custom/Chat/Internal/GeneratorStubs.cs +++ b/src/Custom/Chat/Internal/GeneratorStubs.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Chat; +namespace OpenAI.Chat; [CodeGenModel("ChatCompletionFunctionCallOption")] internal partial class InternalChatCompletionFunctionCallOption { } diff --git a/src/Custom/Chat/Internal/StreamingChatCompletionUpdateCollection.cs b/src/Custom/Chat/Internal/StreamingChatCompletionUpdateCollection.cs index 647642c77..bc5d360d7 100644 --- a/src/Custom/Chat/Internal/StreamingChatCompletionUpdateCollection.cs +++ b/src/Custom/Chat/Internal/StreamingChatCompletionUpdateCollection.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.Collections; diff --git a/src/Custom/Chat/Internal/UnknownChatMessage.Serialization.cs b/src/Custom/Chat/Internal/UnknownChatMessage.Serialization.cs index b34b8afe9..b3eca176b 100644 --- a/src/Custom/Chat/Internal/UnknownChatMessage.Serialization.cs +++ b/src/Custom/Chat/Internal/UnknownChatMessage.Serialization.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; diff --git a/src/Custom/Chat/Internal/UnknownChatMessage.cs b/src/Custom/Chat/Internal/UnknownChatMessage.cs index b96c03751..ac4faf00f 100644 --- a/src/Custom/Chat/Internal/UnknownChatMessage.cs +++ b/src/Custom/Chat/Internal/UnknownChatMessage.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Chat; +namespace OpenAI.Chat; [CodeGenModel("UnknownChatCompletionRequestMessage")] internal partial class UnknownChatMessage : ChatMessage diff --git a/src/Custom/Chat/StreamingChatFunctionCallUpdate.cs b/src/Custom/Chat/StreamingChatFunctionCallUpdate.cs index f9bd961db..ad6d8c36f 100644 --- a/src/Custom/Chat/StreamingChatFunctionCallUpdate.cs +++ b/src/Custom/Chat/StreamingChatFunctionCallUpdate.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Chat; +namespace OpenAI.Chat; [CodeGenModel("ChatCompletionStreamResponseDeltaFunctionCall")] public partial class StreamingChatFunctionCallUpdate diff --git a/src/Custom/Chat/SystemChatMessage.Serialization.cs b/src/Custom/Chat/SystemChatMessage.Serialization.cs index 724c73de4..6e98120cb 100644 --- a/src/Custom/Chat/SystemChatMessage.Serialization.cs +++ b/src/Custom/Chat/SystemChatMessage.Serialization.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; diff --git a/src/Custom/Chat/SystemChatMessage.cs b/src/Custom/Chat/SystemChatMessage.cs index 8d1588781..21de09d3f 100644 --- a/src/Custom/Chat/SystemChatMessage.cs +++ b/src/Custom/Chat/SystemChatMessage.cs @@ -30,5 +30,5 @@ public SystemChatMessage(string content) /// An optional name for the participant. /// [CodeGenMember("Name")] - public string ParticipantName { get; init; } + public string ParticipantName { get; set; } } \ No newline at end of file diff --git a/src/Custom/Chat/ToolChatMessage.Serialization.cs b/src/Custom/Chat/ToolChatMessage.Serialization.cs index ea25d94b9..a32e807f8 100644 --- a/src/Custom/Chat/ToolChatMessage.Serialization.cs +++ b/src/Custom/Chat/ToolChatMessage.Serialization.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; diff --git a/src/Custom/Chat/UserChatMessage.Serialization.cs b/src/Custom/Chat/UserChatMessage.Serialization.cs index f96b148e9..9dd81b1b8 100644 --- a/src/Custom/Chat/UserChatMessage.Serialization.cs +++ b/src/Custom/Chat/UserChatMessage.Serialization.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; diff --git a/src/Custom/Chat/UserChatMessage.cs b/src/Custom/Chat/UserChatMessage.cs index 33d1db797..0b2f3ef5d 100644 --- a/src/Custom/Chat/UserChatMessage.cs +++ b/src/Custom/Chat/UserChatMessage.cs @@ -62,5 +62,5 @@ public UserChatMessage(params ChatMessageContentPart[] content) /// An optional name for the participant. /// [CodeGenMember("Name")] - public string ParticipantName { get; init; } + public string ParticipantName { get; set; } } diff --git a/src/Custom/Embeddings/EmbeddingClient.Protocol.cs b/src/Custom/Embeddings/EmbeddingClient.Protocol.cs index 1be366fde..94dfb9d6f 100644 --- a/src/Custom/Embeddings/EmbeddingClient.Protocol.cs +++ b/src/Custom/Embeddings/EmbeddingClient.Protocol.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.ComponentModel; diff --git a/src/Custom/Embeddings/EmbeddingCollection.Serialization.cs b/src/Custom/Embeddings/EmbeddingCollection.Serialization.cs index 206cb09d8..7bafe4a7b 100644 --- a/src/Custom/Embeddings/EmbeddingCollection.Serialization.cs +++ b/src/Custom/Embeddings/EmbeddingCollection.Serialization.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; diff --git a/src/Custom/Embeddings/Internal/GeneratorStubs.cs b/src/Custom/Embeddings/Internal/GeneratorStubs.cs index cb14eff92..0b0502e87 100644 --- a/src/Custom/Embeddings/Internal/GeneratorStubs.cs +++ b/src/Custom/Embeddings/Internal/GeneratorStubs.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Embeddings; +namespace OpenAI.Embeddings; // CUSTOM: Made internal. diff --git a/src/Custom/Files/FileClient.Protocol.cs b/src/Custom/Files/FileClient.Protocol.cs index b75bf8bf9..f9784bfec 100644 --- a/src/Custom/Files/FileClient.Protocol.cs +++ b/src/Custom/Files/FileClient.Protocol.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.ComponentModel; diff --git a/src/Custom/Files/FileUploadPurpose.cs b/src/Custom/Files/FileUploadPurpose.cs index 38b85f3c6..2f3e9d8ca 100644 --- a/src/Custom/Files/FileUploadPurpose.cs +++ b/src/Custom/Files/FileUploadPurpose.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Files; +namespace OpenAI.Files; [CodeGenModel("CreateFileRequestPurpose")] public readonly partial struct FileUploadPurpose diff --git a/src/Custom/Files/Internal/GeneratorStubs.cs b/src/Custom/Files/Internal/GeneratorStubs.cs index d83000dda..617be9be4 100644 --- a/src/Custom/Files/Internal/GeneratorStubs.cs +++ b/src/Custom/Files/Internal/GeneratorStubs.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Files; +namespace OpenAI.Files; [CodeGenModel("DeleteFileResponse")] internal partial class InternalDeleteFileResponse { } diff --git a/src/Custom/Files/OpenAIFileInfoCollection.Serialization.cs b/src/Custom/Files/OpenAIFileInfoCollection.Serialization.cs index 4702ff39b..751d8be5a 100644 --- a/src/Custom/Files/OpenAIFileInfoCollection.Serialization.cs +++ b/src/Custom/Files/OpenAIFileInfoCollection.Serialization.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; diff --git a/src/Custom/Files/OpenAIFilePurpose.cs b/src/Custom/Files/OpenAIFilePurpose.cs index ac282f07c..2d659b99d 100644 --- a/src/Custom/Files/OpenAIFilePurpose.cs +++ b/src/Custom/Files/OpenAIFilePurpose.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Files; +namespace OpenAI.Files; [CodeGenModel("OpenAIFilePurpose")] public readonly partial struct OpenAIFilePurpose diff --git a/src/Custom/Files/OpenAIFileStatus.cs b/src/Custom/Files/OpenAIFileStatus.cs index 841f9904e..b321e5e09 100644 --- a/src/Custom/Files/OpenAIFileStatus.cs +++ b/src/Custom/Files/OpenAIFileStatus.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Files; +namespace OpenAI.Files; [CodeGenModel("OpenAIFileStatus")] public readonly partial struct OpenAIFileStatus diff --git a/src/Custom/FineTuning/FineTuningClient.Protocol.cs b/src/Custom/FineTuning/FineTuningClient.Protocol.cs index e3919fe1a..2483478db 100644 --- a/src/Custom/FineTuning/FineTuningClient.Protocol.cs +++ b/src/Custom/FineTuning/FineTuningClient.Protocol.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.Threading.Tasks; diff --git a/src/Custom/FineTuning/FineTuningClient.cs b/src/Custom/FineTuning/FineTuningClient.cs index b5e61e9e8..6313c783f 100644 --- a/src/Custom/FineTuning/FineTuningClient.cs +++ b/src/Custom/FineTuning/FineTuningClient.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; diff --git a/src/Custom/FineTuning/Internal/GeneratorStubs.cs b/src/Custom/FineTuning/Internal/GeneratorStubs.cs index f55fd195a..cf7b626a9 100644 --- a/src/Custom/FineTuning/Internal/GeneratorStubs.cs +++ b/src/Custom/FineTuning/Internal/GeneratorStubs.cs @@ -1,4 +1,4 @@ -namespace OpenAI.FineTuning; +namespace OpenAI.FineTuning; // CUSTOM: Made internal. diff --git a/src/Custom/Images/GeneratedImageCollection.Serialization.cs b/src/Custom/Images/GeneratedImageCollection.Serialization.cs index d45b940a9..8dbfc48e8 100644 --- a/src/Custom/Images/GeneratedImageCollection.Serialization.cs +++ b/src/Custom/Images/GeneratedImageCollection.Serialization.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel.Primitives; using System.Collections.Generic; using System.Text.Json; diff --git a/src/Custom/Images/ImageClient.Protocol.cs b/src/Custom/Images/ImageClient.Protocol.cs index 6d42f11cc..b0ffff651 100644 --- a/src/Custom/Images/ImageClient.Protocol.cs +++ b/src/Custom/Images/ImageClient.Protocol.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.ComponentModel; diff --git a/src/Custom/Images/ImageEditOptions.cs b/src/Custom/Images/ImageEditOptions.cs index c53bd522d..5ed8a92cd 100644 --- a/src/Custom/Images/ImageEditOptions.cs +++ b/src/Custom/Images/ImageEditOptions.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; namespace OpenAI.Images; @@ -75,11 +75,11 @@ public ImageEditOptions() // CUSTOM: Changed property type. /// The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`. - public GeneratedImageSize? Size { get; init; } + public GeneratedImageSize? Size { get; set; } // CUSTOM: Changed property type. /// The format in which the generated images are returned. Must be one of `url` or `b64_json`. - public GeneratedImageFormat? ResponseFormat { get; init; } + public GeneratedImageFormat? ResponseFormat { get; set; } internal MultipartFormDataBinaryContent ToMultipartContent(Stream image, string imageFilename, Stream mask, string maskFilename) { diff --git a/src/Custom/Images/ImageVariationOptions.cs b/src/Custom/Images/ImageVariationOptions.cs index 1f1acaa36..f36e2ef47 100644 --- a/src/Custom/Images/ImageVariationOptions.cs +++ b/src/Custom/Images/ImageVariationOptions.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; namespace OpenAI.Images; @@ -48,11 +48,11 @@ public ImageVariationOptions() // CUSTOM: Changed property type. /// The size of the generated images. Must be one of `256x256`, `512x512`, or `1024x1024`. - public GeneratedImageSize? Size { get; init; } + public GeneratedImageSize? Size { get; set; } // CUSTOM: Changed property type. /// The format in which the generated images are returned. Must be one of `url` or `b64_json`. - public GeneratedImageFormat? ResponseFormat { get; init; } + public GeneratedImageFormat? ResponseFormat { get; set; } internal MultipartFormDataBinaryContent ToMultipartContent(Stream image, string imageFilename) { diff --git a/src/Custom/Images/Internal/GeneratorStubs.cs b/src/Custom/Images/Internal/GeneratorStubs.cs index 24730c93e..3e85bb899 100644 --- a/src/Custom/Images/Internal/GeneratorStubs.cs +++ b/src/Custom/Images/Internal/GeneratorStubs.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Images; +namespace OpenAI.Images; // CUSTOM: Made internal. diff --git a/src/Custom/LegacyCompletions/Internal/GeneratorStubs.cs b/src/Custom/LegacyCompletions/Internal/GeneratorStubs.cs index a788ca91c..b184f9da0 100644 --- a/src/Custom/LegacyCompletions/Internal/GeneratorStubs.cs +++ b/src/Custom/LegacyCompletions/Internal/GeneratorStubs.cs @@ -1,4 +1,4 @@ -namespace OpenAI.LegacyCompletions; +namespace OpenAI.LegacyCompletions; // CUSTOM: Made internal. diff --git a/src/Custom/Models/Internal/GeneratorStubs.cs b/src/Custom/Models/Internal/GeneratorStubs.cs index 1c9c0bc80..2142aa5c1 100644 --- a/src/Custom/Models/Internal/GeneratorStubs.cs +++ b/src/Custom/Models/Internal/GeneratorStubs.cs @@ -1,4 +1,4 @@ - + namespace OpenAI.Models; [CodeGenModel("DeleteModelResponse")] diff --git a/src/Custom/Models/ModelClient.Protocol.cs b/src/Custom/Models/ModelClient.Protocol.cs index c249da63a..7be879115 100644 --- a/src/Custom/Models/ModelClient.Protocol.cs +++ b/src/Custom/Models/ModelClient.Protocol.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.ComponentModel; diff --git a/src/Custom/Models/OpenAIModelInfoCollection.Serialization.cs b/src/Custom/Models/OpenAIModelInfoCollection.Serialization.cs index ff3fa3b6b..6cfc9383d 100644 --- a/src/Custom/Models/OpenAIModelInfoCollection.Serialization.cs +++ b/src/Custom/Models/OpenAIModelInfoCollection.Serialization.cs @@ -1,4 +1,4 @@ -using OpenAI.Models; +using OpenAI.Models; using System; using System.ClientModel; using System.ClientModel.Primitives; diff --git a/src/Custom/Moderations/Internal/GeneratorStubs.cs b/src/Custom/Moderations/Internal/GeneratorStubs.cs index f4b1890c4..4e11648b7 100644 --- a/src/Custom/Moderations/Internal/GeneratorStubs.cs +++ b/src/Custom/Moderations/Internal/GeneratorStubs.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Moderations; +namespace OpenAI.Moderations; [CodeGenModel("CreateModerationRequestModel")] internal readonly partial struct InternalCreateModerationRequestModel { } \ No newline at end of file diff --git a/src/Custom/Moderations/ModerationCategories.cs b/src/Custom/Moderations/ModerationCategories.cs index 149ac4360..a5cbbe8bf 100644 --- a/src/Custom/Moderations/ModerationCategories.cs +++ b/src/Custom/Moderations/ModerationCategories.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Moderations; +namespace OpenAI.Moderations; [CodeGenModel("CreateModerationResponseResultCategories")] public partial class ModerationCategories diff --git a/src/Custom/Moderations/ModerationCategoryScores.cs b/src/Custom/Moderations/ModerationCategoryScores.cs index 89087fbb7..34b093f18 100644 --- a/src/Custom/Moderations/ModerationCategoryScores.cs +++ b/src/Custom/Moderations/ModerationCategoryScores.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Moderations; +namespace OpenAI.Moderations; [CodeGenModel("CreateModerationResponseResultCategoryScores")] public partial class ModerationCategoryScores diff --git a/src/Custom/Moderations/ModerationClient.Protocol.cs b/src/Custom/Moderations/ModerationClient.Protocol.cs index fdf1952dc..676ddc229 100644 --- a/src/Custom/Moderations/ModerationClient.Protocol.cs +++ b/src/Custom/Moderations/ModerationClient.Protocol.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.ComponentModel; diff --git a/src/Custom/Moderations/ModerationCollection.Serialization..cs b/src/Custom/Moderations/ModerationCollection.Serialization..cs index 0b248f352..1bf783f19 100644 --- a/src/Custom/Moderations/ModerationCollection.Serialization..cs +++ b/src/Custom/Moderations/ModerationCollection.Serialization..cs @@ -1,4 +1,4 @@ -// +// #nullable disable diff --git a/src/Custom/Moderations/ModerationCollection.cs b/src/Custom/Moderations/ModerationCollection.cs index 8c448d47d..ed2a4c6d1 100644 --- a/src/Custom/Moderations/ModerationCollection.cs +++ b/src/Custom/Moderations/ModerationCollection.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Collections.ObjectModel; diff --git a/src/Custom/Moderations/ModerationOptions.cs b/src/Custom/Moderations/ModerationOptions.cs index 093cddcdf..a2561defe 100644 --- a/src/Custom/Moderations/ModerationOptions.cs +++ b/src/Custom/Moderations/ModerationOptions.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; namespace OpenAI.Moderations; diff --git a/src/Custom/Moderations/ModerationResult.cs b/src/Custom/Moderations/ModerationResult.cs index 415a47a53..78e95f255 100644 --- a/src/Custom/Moderations/ModerationResult.cs +++ b/src/Custom/Moderations/ModerationResult.cs @@ -1,4 +1,4 @@ -namespace OpenAI.Moderations; +namespace OpenAI.Moderations; [CodeGenModel("CreateModerationResponseResult")] public partial class ModerationResult diff --git a/src/Custom/OpenAIClientOptions.cs b/src/Custom/OpenAIClientOptions.cs index 3a46b4796..81efabbd5 100644 --- a/src/Custom/OpenAIClientOptions.cs +++ b/src/Custom/OpenAIClientOptions.cs @@ -12,20 +12,20 @@ public partial class OpenAIClientOptions : ClientPipelineOptions /// /// A non-default base endpoint that clients should use when connecting. /// - public Uri Endpoint { get; init; } + public Uri Endpoint { get; set; } /// /// An optional application ID to use as part of the request User-Agent header. /// - public string ApplicationId { get; init; } + public string ApplicationId { get; set; } /// /// An optional ID added to OpenAI-Organization header /// - public string OrganizationId { get; init; } + public string OrganizationId { get; set; } /// /// An optional ID added to OpenAI-Project header /// - public string ProjectId { get; init; } + public string ProjectId { get; set; } } diff --git a/src/Custom/OpenAIModelFactory.cs b/src/Custom/OpenAIModelFactory.cs index e5b0d4c42..bd049d8c4 100644 --- a/src/Custom/OpenAIModelFactory.cs +++ b/src/Custom/OpenAIModelFactory.cs @@ -1,4 +1,4 @@ -using OpenAI.Embeddings; +using OpenAI.Embeddings; using System; using System.Collections.Generic; using System.Linq; diff --git a/src/Custom/VectorStores/VectorStore.cs b/src/Custom/VectorStores/VectorStore.cs index 4fecb7aae..04b8c79b7 100644 --- a/src/Custom/VectorStores/VectorStore.cs +++ b/src/Custom/VectorStores/VectorStore.cs @@ -1,4 +1,4 @@ -namespace OpenAI.VectorStores; +namespace OpenAI.VectorStores; /// /// A representation of a file storage and indexing container used by the file_search tool for assistants. diff --git a/src/Custom/VectorStores/VectorStoreBatchFileJob.cs b/src/Custom/VectorStores/VectorStoreBatchFileJob.cs index b27d59dba..507745bb3 100644 --- a/src/Custom/VectorStores/VectorStoreBatchFileJob.cs +++ b/src/Custom/VectorStores/VectorStoreBatchFileJob.cs @@ -1,4 +1,4 @@ -namespace OpenAI.VectorStores; +namespace OpenAI.VectorStores; /// /// Represents information about a bulk ingestion job of files into a vector store. diff --git a/src/Custom/VectorStores/VectorStoreBatchFileJobStatus.cs b/src/Custom/VectorStores/VectorStoreBatchFileJobStatus.cs index d65197875..84eb5e3f6 100644 --- a/src/Custom/VectorStores/VectorStoreBatchFileJobStatus.cs +++ b/src/Custom/VectorStores/VectorStoreBatchFileJobStatus.cs @@ -1,4 +1,4 @@ -namespace OpenAI.VectorStores; +namespace OpenAI.VectorStores; [CodeGenModel("VectorStoreFileBatchObjectStatus")] public readonly partial struct VectorStoreBatchFileJobStatus diff --git a/src/Custom/VectorStores/VectorStoreClient.Convenience.cs b/src/Custom/VectorStores/VectorStoreClient.Convenience.cs index 5330978b4..ee48aaca4 100644 --- a/src/Custom/VectorStores/VectorStoreClient.Convenience.cs +++ b/src/Custom/VectorStores/VectorStoreClient.Convenience.cs @@ -1,4 +1,4 @@ -using OpenAI.Files; +using OpenAI.Files; using System.ClientModel; using System.Collections.Generic; using System.Linq; diff --git a/src/Custom/VectorStores/VectorStoreClient.Protocol.cs b/src/Custom/VectorStores/VectorStoreClient.Protocol.cs index c3c9dad7e..ca3fa76bd 100644 --- a/src/Custom/VectorStores/VectorStoreClient.Protocol.cs +++ b/src/Custom/VectorStores/VectorStoreClient.Protocol.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.Collections.Generic; diff --git a/src/Custom/VectorStores/VectorStoreClient.cs b/src/Custom/VectorStores/VectorStoreClient.cs index ea6cc8f5a..161f4f6ab 100644 --- a/src/Custom/VectorStores/VectorStoreClient.cs +++ b/src/Custom/VectorStores/VectorStoreClient.cs @@ -1,4 +1,4 @@ -using OpenAI.Files; +using OpenAI.Files; using System; using System.ClientModel; using System.ClientModel.Primitives; diff --git a/src/Custom/VectorStores/VectorStoreCollectionOptions.cs b/src/Custom/VectorStores/VectorStoreCollectionOptions.cs index de0834bd3..82dfac7dc 100644 --- a/src/Custom/VectorStores/VectorStoreCollectionOptions.cs +++ b/src/Custom/VectorStores/VectorStoreCollectionOptions.cs @@ -1,4 +1,4 @@ -namespace OpenAI.VectorStores; +namespace OpenAI.VectorStores; /// /// Represents addition options available when requesting a collection of instances. @@ -14,20 +14,20 @@ public VectorStoreCollectionOptions() { } /// The order that results should appear in the list according to /// their created_at timestamp. /// - public ListOrder? Order { get; init; } + public ListOrder? Order { get; set; } /// /// The number of values to return in a page result. /// - public int? PageSize { get; init; } + public int? PageSize { get; set; } /// /// The id of the item preceeding the first item in the collection. /// - public string AfterId { get; init; } + public string AfterId { get; set; } /// /// The id of the item following the last item in the collection. /// - public string BeforeId { get; init; } + public string BeforeId { get; set; } } diff --git a/src/Custom/VectorStores/VectorStoreCreationOptions.cs b/src/Custom/VectorStores/VectorStoreCreationOptions.cs index 26d71d608..97514c9f4 100644 --- a/src/Custom/VectorStores/VectorStoreCreationOptions.cs +++ b/src/Custom/VectorStores/VectorStoreCreationOptions.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace OpenAI.VectorStores; @@ -6,12 +6,12 @@ namespace OpenAI.VectorStores; public partial class VectorStoreCreationOptions { /// A list of [File](/docs/api-reference/files) IDs that the vector store should use. Useful for tools like `file_search` that can access files. - public IList FileIds { get; init; } + public IList FileIds { get; set; } /// Gets or sets the policy that controls when the new vector store will be automatically deleted. [CodeGenMember("ExpiresAfter")] - public VectorStoreExpirationPolicy ExpirationPolicy { get; init; } + public VectorStoreExpirationPolicy ExpirationPolicy { get; set; } [CodeGenMember("ChunkingStrategy")] - public FileChunkingStrategy ChunkingStrategy { get; init; } + public FileChunkingStrategy ChunkingStrategy { get; set; } } diff --git a/src/Custom/VectorStores/VectorStoreExpirationAnchor.cs b/src/Custom/VectorStores/VectorStoreExpirationAnchor.cs index 71fad6b39..482276c40 100644 --- a/src/Custom/VectorStores/VectorStoreExpirationAnchor.cs +++ b/src/Custom/VectorStores/VectorStoreExpirationAnchor.cs @@ -1,4 +1,4 @@ -using System.ComponentModel; +using System.ComponentModel; namespace OpenAI.VectorStores; diff --git a/src/Custom/VectorStores/VectorStoreExpirationPolicy.cs b/src/Custom/VectorStores/VectorStoreExpirationPolicy.cs index c425cf43e..4357959e8 100644 --- a/src/Custom/VectorStores/VectorStoreExpirationPolicy.cs +++ b/src/Custom/VectorStores/VectorStoreExpirationPolicy.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Diagnostics.CodeAnalysis; @@ -24,14 +24,14 @@ public partial class VectorStoreExpirationPolicy public required VectorStoreExpirationAnchor Anchor { get => _anchor; - init => _anchor = value; + set => _anchor = value; } /// The number of days after the anchor time that the vector store will expire. public required int Days { get => _days; - init => _days = value; + set => _days = value; } /// Initializes a new instance of . diff --git a/src/Custom/VectorStores/VectorStoreFileAssociation.cs b/src/Custom/VectorStores/VectorStoreFileAssociation.cs index 5d0513f14..9c680ab46 100644 --- a/src/Custom/VectorStores/VectorStoreFileAssociation.cs +++ b/src/Custom/VectorStores/VectorStoreFileAssociation.cs @@ -1,4 +1,4 @@ -namespace OpenAI.VectorStores; +namespace OpenAI.VectorStores; /// /// A representation of a file association between an uploaded file and a vector store. diff --git a/src/Custom/VectorStores/VectorStoreFileAssociationCollectionOptions.cs b/src/Custom/VectorStores/VectorStoreFileAssociationCollectionOptions.cs index cf1788a72..9880b0afd 100644 --- a/src/Custom/VectorStores/VectorStoreFileAssociationCollectionOptions.cs +++ b/src/Custom/VectorStores/VectorStoreFileAssociationCollectionOptions.cs @@ -1,4 +1,4 @@ -namespace OpenAI.VectorStores; +namespace OpenAI.VectorStores; /// /// Represents addition options available when requesting a collection of instances. @@ -14,25 +14,25 @@ public VectorStoreFileAssociationCollectionOptions() { } /// The order that results should appear in the list according to /// their created_at timestamp. /// - public ListOrder? Order { get; init; } + public ListOrder? Order { get; set; } /// /// The number of values to return in a page result. /// - public int? PageSize { get; init; } + public int? PageSize { get; set; } /// /// The id of the item preceeding the first item in the collection. /// - public string AfterId { get; init; } + public string AfterId { get; set; } /// /// The id of the item following the last item in the collection. /// - public string BeforeId { get; init; } + public string BeforeId { get; set; } /// /// A status filter that file associations must match to be included in the collection. /// - public VectorStoreFileStatusFilter? Filter { get; init; } + public VectorStoreFileStatusFilter? Filter { get; set; } } diff --git a/src/Custom/VectorStores/VectorStoreFileAssociationError.cs b/src/Custom/VectorStores/VectorStoreFileAssociationError.cs index 2b745978a..a682fe289 100644 --- a/src/Custom/VectorStores/VectorStoreFileAssociationError.cs +++ b/src/Custom/VectorStores/VectorStoreFileAssociationError.cs @@ -1,6 +1,6 @@ -namespace OpenAI.VectorStores; +namespace OpenAI.VectorStores; [CodeGenModel("VectorStoreFileObjectLastError")] -public partial struct VectorStoreFileAssociationError +public partial class VectorStoreFileAssociationError { } \ No newline at end of file diff --git a/src/Custom/VectorStores/VectorStoreFileAssociationErrorCode.cs b/src/Custom/VectorStores/VectorStoreFileAssociationErrorCode.cs index fbf81648f..8246d94f9 100644 --- a/src/Custom/VectorStores/VectorStoreFileAssociationErrorCode.cs +++ b/src/Custom/VectorStores/VectorStoreFileAssociationErrorCode.cs @@ -1,4 +1,4 @@ -namespace OpenAI.VectorStores; +namespace OpenAI.VectorStores; [CodeGenModel("VectorStoreFileObjectLastErrorCode")] public readonly partial struct VectorStoreFileAssociationErrorCode diff --git a/src/Custom/VectorStores/VectorStoreFileAssociationStatus.cs b/src/Custom/VectorStores/VectorStoreFileAssociationStatus.cs index 8890f08e6..a1bd0c55d 100644 --- a/src/Custom/VectorStores/VectorStoreFileAssociationStatus.cs +++ b/src/Custom/VectorStores/VectorStoreFileAssociationStatus.cs @@ -1,4 +1,4 @@ -using System.ComponentModel; +using System.ComponentModel; namespace OpenAI.VectorStores; diff --git a/src/Custom/VectorStores/VectorStoreFileBatchesPageEnumerator.cs b/src/Custom/VectorStores/VectorStoreFileBatchesPageEnumerator.cs index cb1a78576..cd4f938e9 100644 --- a/src/Custom/VectorStores/VectorStoreFileBatchesPageEnumerator.cs +++ b/src/Custom/VectorStores/VectorStoreFileBatchesPageEnumerator.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.Text.Json; diff --git a/src/Custom/VectorStores/VectorStoreFileBatchesPageToken.cs b/src/Custom/VectorStores/VectorStoreFileBatchesPageToken.cs index 8db14097f..50f807901 100644 --- a/src/Custom/VectorStores/VectorStoreFileBatchesPageToken.cs +++ b/src/Custom/VectorStores/VectorStoreFileBatchesPageToken.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.Diagnostics; using System.IO; diff --git a/src/Custom/VectorStores/VectorStoreFileCounts.cs b/src/Custom/VectorStores/VectorStoreFileCounts.cs index 00c1686e4..049de2351 100644 --- a/src/Custom/VectorStores/VectorStoreFileCounts.cs +++ b/src/Custom/VectorStores/VectorStoreFileCounts.cs @@ -1,6 +1,6 @@ -namespace OpenAI.VectorStores; +namespace OpenAI.VectorStores; [CodeGenModel("VectorStoreObjectFileCounts")] -public readonly partial struct VectorStoreFileCounts +public partial class VectorStoreFileCounts { } \ No newline at end of file diff --git a/src/Custom/VectorStores/VectorStoreFileStatusFilter.cs b/src/Custom/VectorStores/VectorStoreFileStatusFilter.cs index 82e71336a..24f9fb964 100644 --- a/src/Custom/VectorStores/VectorStoreFileStatusFilter.cs +++ b/src/Custom/VectorStores/VectorStoreFileStatusFilter.cs @@ -1,4 +1,4 @@ -namespace OpenAI.VectorStores; +namespace OpenAI.VectorStores; [CodeGenModel("ListVectorStoreFilesFilter")] public readonly partial struct VectorStoreFileStatusFilter diff --git a/src/Custom/VectorStores/VectorStoreFilesPageEnumerator.cs b/src/Custom/VectorStores/VectorStoreFilesPageEnumerator.cs index d78384e31..3063fb397 100644 --- a/src/Custom/VectorStores/VectorStoreFilesPageEnumerator.cs +++ b/src/Custom/VectorStores/VectorStoreFilesPageEnumerator.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.Text.Json; diff --git a/src/Custom/VectorStores/VectorStoreFilesPageToken.cs b/src/Custom/VectorStores/VectorStoreFilesPageToken.cs index ba7b1f9eb..c5112807f 100644 --- a/src/Custom/VectorStores/VectorStoreFilesPageToken.cs +++ b/src/Custom/VectorStores/VectorStoreFilesPageToken.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.Diagnostics; using System.IO; diff --git a/src/Custom/VectorStores/VectorStoreModificationOptions.cs b/src/Custom/VectorStores/VectorStoreModificationOptions.cs index b2bfe8163..964a1a865 100644 --- a/src/Custom/VectorStores/VectorStoreModificationOptions.cs +++ b/src/Custom/VectorStores/VectorStoreModificationOptions.cs @@ -1,4 +1,4 @@ -using System.Collections.Generic; +using System.Collections.Generic; namespace OpenAI.VectorStores; @@ -7,5 +7,5 @@ public partial class VectorStoreModificationOptions { /// Gets or sets the policy that controls when the new vector store will be automatically deleted. [CodeGenMember("ExpiresAfter")] - public VectorStoreExpirationPolicy ExpirationPolicy { get; init; } + public VectorStoreExpirationPolicy ExpirationPolicy { get; set; } } diff --git a/src/Custom/VectorStores/VectorStoreStatus.cs b/src/Custom/VectorStores/VectorStoreStatus.cs index e4c7e842c..0f482a942 100644 --- a/src/Custom/VectorStores/VectorStoreStatus.cs +++ b/src/Custom/VectorStores/VectorStoreStatus.cs @@ -1,4 +1,4 @@ -using System.ComponentModel; +using System.ComponentModel; namespace OpenAI.VectorStores; diff --git a/src/Custom/VectorStores/VectorStoresPageEnumerator.cs b/src/Custom/VectorStores/VectorStoresPageEnumerator.cs index 4a2aac725..3e454f384 100644 --- a/src/Custom/VectorStores/VectorStoresPageEnumerator.cs +++ b/src/Custom/VectorStores/VectorStoresPageEnumerator.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.ClientModel.Primitives; using System.Text.Json; diff --git a/src/Custom/VectorStores/VectorStoresPageToken.cs b/src/Custom/VectorStores/VectorStoresPageToken.cs index bd4c29a2d..88134bfcd 100644 --- a/src/Custom/VectorStores/VectorStoresPageToken.cs +++ b/src/Custom/VectorStores/VectorStoresPageToken.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.ClientModel; using System.Diagnostics; using System.IO; diff --git a/src/Generated/Models/Assistant.cs b/src/Generated/Models/Assistant.cs index 26f4ce18a..db507e169 100644 --- a/src/Generated/Models/Assistant.cs +++ b/src/Generated/Models/Assistant.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { public partial class Assistant { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal Assistant(string id, DateTimeOffset createdAt, string name, string description, string model, string instructions, IEnumerable tools, IReadOnlyDictionary metadata) { Argument.AssertNotNull(id, nameof(id)); diff --git a/src/Generated/Models/AssistantChatMessage.cs b/src/Generated/Models/AssistantChatMessage.cs index 597f07597..38f6c207d 100644 --- a/src/Generated/Models/AssistantChatMessage.cs +++ b/src/Generated/Models/AssistantChatMessage.cs @@ -16,6 +16,6 @@ internal AssistantChatMessage(string role, IList content FunctionCall = functionCall; } public IList ToolCalls { get; } - public ChatFunctionCall FunctionCall { get; init; } + public ChatFunctionCall FunctionCall { get; set; } } } diff --git a/src/Generated/Models/AssistantCreationOptions.cs b/src/Generated/Models/AssistantCreationOptions.cs index d4881aacf..9e0ed5afc 100644 --- a/src/Generated/Models/AssistantCreationOptions.cs +++ b/src/Generated/Models/AssistantCreationOptions.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public partial class AssistantCreationOptions { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal AssistantCreationOptions(string model, string name, string description, string instructions, IList tools, ToolResources toolResources, IDictionary metadata, float? temperature, float? nucleusSamplingFactor, AssistantResponseFormat responseFormat, IDictionary serializedAdditionalRawData) { @@ -25,10 +25,10 @@ internal AssistantCreationOptions(string model, string name, string description, ResponseFormat = responseFormat; SerializedAdditionalRawData = serializedAdditionalRawData; } - public string Name { get; init; } - public string Description { get; init; } - public string Instructions { get; init; } - public IDictionary Metadata { get; } - public float? Temperature { get; init; } + public string Name { get; set; } + public string Description { get; set; } + public string Instructions { get; set; } + public IDictionary Metadata { get; set; } + public float? Temperature { get; set; } } } diff --git a/src/Generated/Models/AssistantModificationOptions.cs b/src/Generated/Models/AssistantModificationOptions.cs index 4b74e9f0b..baa7fed1a 100644 --- a/src/Generated/Models/AssistantModificationOptions.cs +++ b/src/Generated/Models/AssistantModificationOptions.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public partial class AssistantModificationOptions { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } public AssistantModificationOptions() { DefaultTools = new ChangeTrackingList(); @@ -30,10 +30,10 @@ internal AssistantModificationOptions(string model, string name, string descript ResponseFormat = responseFormat; SerializedAdditionalRawData = serializedAdditionalRawData; } - public string Name { get; init; } - public string Description { get; init; } - public string Instructions { get; init; } - public IDictionary Metadata { get; } - public float? Temperature { get; init; } + public string Name { get; set; } + public string Description { get; set; } + public string Instructions { get; set; } + public IDictionary Metadata { get; set; } + public float? Temperature { get; set; } } } diff --git a/src/Generated/Models/AssistantThread.cs b/src/Generated/Models/AssistantThread.cs index 0e58abd05..6cec49e4b 100644 --- a/src/Generated/Models/AssistantThread.cs +++ b/src/Generated/Models/AssistantThread.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public partial class AssistantThread { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal AssistantThread(string id, DateTimeOffset createdAt, ToolResources toolResources, IReadOnlyDictionary metadata) { Argument.AssertNotNull(id, nameof(id)); diff --git a/src/Generated/Models/AudioTranscription.cs b/src/Generated/Models/AudioTranscription.cs index b97679028..ce9824521 100644 --- a/src/Generated/Models/AudioTranscription.cs +++ b/src/Generated/Models/AudioTranscription.cs @@ -9,7 +9,7 @@ namespace OpenAI.Audio { public partial class AudioTranscription { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal AudioTranscription(string language, TimeSpan? duration, string text) { Argument.AssertNotNull(language, nameof(language)); diff --git a/src/Generated/Models/AudioTranscriptionOptions.cs b/src/Generated/Models/AudioTranscriptionOptions.cs index 6459d6f44..3640e680a 100644 --- a/src/Generated/Models/AudioTranscriptionOptions.cs +++ b/src/Generated/Models/AudioTranscriptionOptions.cs @@ -9,7 +9,7 @@ namespace OpenAI.Audio { public partial class AudioTranscriptionOptions { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal AudioTranscriptionOptions(BinaryData file, InternalCreateTranscriptionRequestModel model, string language, string prompt, AudioTranscriptionFormat? responseFormat, float? temperature, IList timestampGranularities, IDictionary serializedAdditionalRawData) { @@ -22,9 +22,9 @@ internal AudioTranscriptionOptions(BinaryData file, InternalCreateTranscriptionR TimestampGranularities = timestampGranularities; SerializedAdditionalRawData = serializedAdditionalRawData; } - public string Language { get; init; } - public string Prompt { get; init; } - public AudioTranscriptionFormat? ResponseFormat { get; init; } - public float? Temperature { get; init; } + public string Language { get; set; } + public string Prompt { get; set; } + public AudioTranscriptionFormat? ResponseFormat { get; set; } + public float? Temperature { get; set; } } } diff --git a/src/Generated/Models/AudioTranslation.cs b/src/Generated/Models/AudioTranslation.cs index 768e83cc6..6dfb907ca 100644 --- a/src/Generated/Models/AudioTranslation.cs +++ b/src/Generated/Models/AudioTranslation.cs @@ -9,7 +9,7 @@ namespace OpenAI.Audio { public partial class AudioTranslation { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal AudioTranslation(string language, TimeSpan? duration, string text) { Argument.AssertNotNull(language, nameof(language)); diff --git a/src/Generated/Models/AudioTranslationOptions.cs b/src/Generated/Models/AudioTranslationOptions.cs index e5916f1f9..a19d2f1fa 100644 --- a/src/Generated/Models/AudioTranslationOptions.cs +++ b/src/Generated/Models/AudioTranslationOptions.cs @@ -9,7 +9,7 @@ namespace OpenAI.Audio { public partial class AudioTranslationOptions { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal AudioTranslationOptions(BinaryData file, InternalCreateTranslationRequestModel model, string prompt, AudioTranslationFormat? responseFormat, float? temperature, IDictionary serializedAdditionalRawData) { @@ -20,8 +20,8 @@ internal AudioTranslationOptions(BinaryData file, InternalCreateTranslationReque Temperature = temperature; SerializedAdditionalRawData = serializedAdditionalRawData; } - public string Prompt { get; init; } - public AudioTranslationFormat? ResponseFormat { get; init; } - public float? Temperature { get; init; } + public string Prompt { get; set; } + public AudioTranslationFormat? ResponseFormat { get; set; } + public float? Temperature { get; set; } } } diff --git a/src/Generated/Models/ChatCompletion.cs b/src/Generated/Models/ChatCompletion.cs index f4aee8767..1ad8b44e2 100644 --- a/src/Generated/Models/ChatCompletion.cs +++ b/src/Generated/Models/ChatCompletion.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { public partial class ChatCompletion { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ChatCompletion(string id, IEnumerable choices, DateTimeOffset createdAt, string model) { Argument.AssertNotNull(id, nameof(id)); diff --git a/src/Generated/Models/ChatCompletionOptions.cs b/src/Generated/Models/ChatCompletionOptions.cs index 824092d01..9588a63d4 100644 --- a/src/Generated/Models/ChatCompletionOptions.cs +++ b/src/Generated/Models/ChatCompletionOptions.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { public partial class ChatCompletionOptions { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ChatCompletionOptions(IList messages, InternalCreateChatCompletionRequestModel model, float? frequencyPenalty, IDictionary logitBiases, bool? includeLogProbabilities, int? topLogProbabilityCount, int? maxTokens, int? n, float? presencePenalty, ChatResponseFormat responseFormat, long? seed, IList stopSequences, bool? stream, InternalChatCompletionStreamOptions streamOptions, float? temperature, float? topP, IList tools, ChatToolChoice toolChoice, bool? parallelToolCallsEnabled, string user, ChatFunctionChoice functionChoice, IList functions, IDictionary serializedAdditionalRawData) { @@ -38,15 +38,15 @@ internal ChatCompletionOptions(IList messages, InternalCreateChatCo Functions = functions; SerializedAdditionalRawData = serializedAdditionalRawData; } - public float? FrequencyPenalty { get; init; } - public int? MaxTokens { get; init; } - public float? PresencePenalty { get; init; } - public ChatResponseFormat ResponseFormat { get; init; } - public long? Seed { get; init; } - public float? Temperature { get; init; } - public float? TopP { get; init; } + public float? FrequencyPenalty { get; set; } + public int? MaxTokens { get; set; } + public float? PresencePenalty { get; set; } + public ChatResponseFormat ResponseFormat { get; set; } + public long? Seed { get; set; } + public float? Temperature { get; set; } + public float? TopP { get; set; } public IList Tools { get; } - public string User { get; init; } + public string User { get; set; } public IList Functions { get; } } } diff --git a/src/Generated/Models/ChatFunction.cs b/src/Generated/Models/ChatFunction.cs index d1f07610f..378eaae81 100644 --- a/src/Generated/Models/ChatFunction.cs +++ b/src/Generated/Models/ChatFunction.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat [Obsolete("This field is marked as deprecated.")] public partial class ChatFunction { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ChatFunction(string functionDescription, string functionName, BinaryData functionParameters, IDictionary serializedAdditionalRawData) { diff --git a/src/Generated/Models/ChatFunctionCall.cs b/src/Generated/Models/ChatFunctionCall.cs index 646960545..d10f638aa 100644 --- a/src/Generated/Models/ChatFunctionCall.cs +++ b/src/Generated/Models/ChatFunctionCall.cs @@ -9,7 +9,7 @@ namespace OpenAI.Chat { public partial class ChatFunctionCall { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ChatFunctionCall(string functionArguments, string functionName, IDictionary serializedAdditionalRawData) { diff --git a/src/Generated/Models/ChatFunctionChoice.cs b/src/Generated/Models/ChatFunctionChoice.cs index a953278a3..a103d4f41 100644 --- a/src/Generated/Models/ChatFunctionChoice.cs +++ b/src/Generated/Models/ChatFunctionChoice.cs @@ -9,6 +9,6 @@ namespace OpenAI.Chat { public partial class ChatFunctionChoice { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } } } diff --git a/src/Generated/Models/ChatMessage.cs b/src/Generated/Models/ChatMessage.cs index 3213165aa..7617e8dc4 100644 --- a/src/Generated/Models/ChatMessage.cs +++ b/src/Generated/Models/ChatMessage.cs @@ -9,7 +9,7 @@ namespace OpenAI.Chat { public abstract partial class ChatMessage { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } protected ChatMessage() { Content = new ChangeTrackingList(); @@ -22,6 +22,6 @@ internal ChatMessage(string role, IList content, IDictio SerializedAdditionalRawData = serializedAdditionalRawData; } - internal string Role { get; init; } + internal string Role { get; set; } } } diff --git a/src/Generated/Models/ChatMessageContentPart.cs b/src/Generated/Models/ChatMessageContentPart.cs index 1761b239f..ac4ef86e6 100644 --- a/src/Generated/Models/ChatMessageContentPart.cs +++ b/src/Generated/Models/ChatMessageContentPart.cs @@ -9,6 +9,6 @@ namespace OpenAI.Chat { public partial class ChatMessageContentPart { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } } } diff --git a/src/Generated/Models/ChatResponseFormat.cs b/src/Generated/Models/ChatResponseFormat.cs index 5a38939fa..78f6d60f9 100644 --- a/src/Generated/Models/ChatResponseFormat.cs +++ b/src/Generated/Models/ChatResponseFormat.cs @@ -9,7 +9,7 @@ namespace OpenAI.Chat { public partial class ChatResponseFormat { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ChatResponseFormat(InternalCreateChatCompletionRequestResponseFormatType? type, IDictionary serializedAdditionalRawData) { diff --git a/src/Generated/Models/ChatTokenLogProbabilityInfo.cs b/src/Generated/Models/ChatTokenLogProbabilityInfo.cs index 5e4db7805..857fe0a88 100644 --- a/src/Generated/Models/ChatTokenLogProbabilityInfo.cs +++ b/src/Generated/Models/ChatTokenLogProbabilityInfo.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { public partial class ChatTokenLogProbabilityInfo { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ChatTokenLogProbabilityInfo(string token, float logProbability, IEnumerable utf8ByteValues, IEnumerable topLogProbabilities) { Argument.AssertNotNull(token, nameof(token)); diff --git a/src/Generated/Models/ChatTokenTopLogProbabilityInfo.cs b/src/Generated/Models/ChatTokenTopLogProbabilityInfo.cs index 0bb304905..f0ee70ff5 100644 --- a/src/Generated/Models/ChatTokenTopLogProbabilityInfo.cs +++ b/src/Generated/Models/ChatTokenTopLogProbabilityInfo.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { public partial class ChatTokenTopLogProbabilityInfo { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ChatTokenTopLogProbabilityInfo(string token, float logProbability, IEnumerable utf8ByteValues) { Argument.AssertNotNull(token, nameof(token)); diff --git a/src/Generated/Models/ChatTokenUsage.cs b/src/Generated/Models/ChatTokenUsage.cs index 0dcca0863..3c2507780 100644 --- a/src/Generated/Models/ChatTokenUsage.cs +++ b/src/Generated/Models/ChatTokenUsage.cs @@ -9,7 +9,7 @@ namespace OpenAI.Chat { public partial class ChatTokenUsage { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ChatTokenUsage(int outputTokens, int inputTokens, int totalTokens) { OutputTokens = outputTokens; diff --git a/src/Generated/Models/ChatTool.cs b/src/Generated/Models/ChatTool.cs index e48430bbb..d10b8bc5f 100644 --- a/src/Generated/Models/ChatTool.cs +++ b/src/Generated/Models/ChatTool.cs @@ -9,7 +9,7 @@ namespace OpenAI.Chat { public partial class ChatTool { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ChatTool(ChatToolKind kind, InternalFunctionDefinition function, IDictionary serializedAdditionalRawData) { diff --git a/src/Generated/Models/ChatToolCall.cs b/src/Generated/Models/ChatToolCall.cs index dc6b9b1fa..0d909e905 100644 --- a/src/Generated/Models/ChatToolCall.cs +++ b/src/Generated/Models/ChatToolCall.cs @@ -9,7 +9,7 @@ namespace OpenAI.Chat { public partial class ChatToolCall { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ChatToolCall(string id, ChatToolCallKind kind, InternalChatCompletionMessageToolCallFunction function, IDictionary serializedAdditionalRawData) { @@ -23,6 +23,6 @@ internal ChatToolCall() { } - public string Id { get; init; } + public string Id { get; set; } } } diff --git a/src/Generated/Models/ChatToolChoice.cs b/src/Generated/Models/ChatToolChoice.cs index 912006cd0..5650611aa 100644 --- a/src/Generated/Models/ChatToolChoice.cs +++ b/src/Generated/Models/ChatToolChoice.cs @@ -9,6 +9,6 @@ namespace OpenAI.Chat { public partial class ChatToolChoice { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } } } diff --git a/src/Generated/Models/CodeInterpreterToolResources.cs b/src/Generated/Models/CodeInterpreterToolResources.cs index 881a314a9..1735ff0f9 100644 --- a/src/Generated/Models/CodeInterpreterToolResources.cs +++ b/src/Generated/Models/CodeInterpreterToolResources.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public partial class CodeInterpreterToolResources { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal CodeInterpreterToolResources(IList fileIds, IDictionary serializedAdditionalRawData) { diff --git a/src/Generated/Models/Embedding.cs b/src/Generated/Models/Embedding.cs index 22a7f7e0e..b8eb10978 100644 --- a/src/Generated/Models/Embedding.cs +++ b/src/Generated/Models/Embedding.cs @@ -9,7 +9,7 @@ namespace OpenAI.Embeddings { public partial class Embedding { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal Embedding() { diff --git a/src/Generated/Models/EmbeddingGenerationOptions.cs b/src/Generated/Models/EmbeddingGenerationOptions.cs index 36be8592d..b9845d838 100644 --- a/src/Generated/Models/EmbeddingGenerationOptions.cs +++ b/src/Generated/Models/EmbeddingGenerationOptions.cs @@ -9,7 +9,7 @@ namespace OpenAI.Embeddings { public partial class EmbeddingGenerationOptions { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal EmbeddingGenerationOptions(BinaryData input, InternalCreateEmbeddingRequestModel model, InternalCreateEmbeddingRequestEncodingFormat? encodingFormat, int? dimensions, string user, IDictionary serializedAdditionalRawData) { @@ -20,7 +20,7 @@ internal EmbeddingGenerationOptions(BinaryData input, InternalCreateEmbeddingReq User = user; SerializedAdditionalRawData = serializedAdditionalRawData; } - public int? Dimensions { get; init; } - public string User { get; init; } + public int? Dimensions { get; set; } + public string User { get; set; } } } diff --git a/src/Generated/Models/EmbeddingTokenUsage.cs b/src/Generated/Models/EmbeddingTokenUsage.cs index 1241b8589..5234ccde5 100644 --- a/src/Generated/Models/EmbeddingTokenUsage.cs +++ b/src/Generated/Models/EmbeddingTokenUsage.cs @@ -9,7 +9,7 @@ namespace OpenAI.Embeddings { public partial class EmbeddingTokenUsage { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal EmbeddingTokenUsage(int inputTokens, int totalTokens) { InputTokens = inputTokens; diff --git a/src/Generated/Models/FileChunkingStrategy.cs b/src/Generated/Models/FileChunkingStrategy.cs index 067370ecc..b93a33e99 100644 --- a/src/Generated/Models/FileChunkingStrategy.cs +++ b/src/Generated/Models/FileChunkingStrategy.cs @@ -9,7 +9,7 @@ namespace OpenAI.VectorStores { public abstract partial class FileChunkingStrategy { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } protected FileChunkingStrategy() { } @@ -20,6 +20,6 @@ internal FileChunkingStrategy(string type, IDictionary seria SerializedAdditionalRawData = serializedAdditionalRawData; } - internal string Type { get; init; } + internal string Type { get; set; } } } diff --git a/src/Generated/Models/FileSearchToolResources.cs b/src/Generated/Models/FileSearchToolResources.cs index 972bc4bc8..21ddbd788 100644 --- a/src/Generated/Models/FileSearchToolResources.cs +++ b/src/Generated/Models/FileSearchToolResources.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public partial class FileSearchToolResources { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal FileSearchToolResources(IList vectorStoreIds, IList newVectorStores, IDictionary serializedAdditionalRawData) { diff --git a/src/Generated/Models/GeneratedImage.cs b/src/Generated/Models/GeneratedImage.cs index 8d7fe6178..9177bfc96 100644 --- a/src/Generated/Models/GeneratedImage.cs +++ b/src/Generated/Models/GeneratedImage.cs @@ -9,7 +9,7 @@ namespace OpenAI.Images { public partial class GeneratedImage { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal GeneratedImage() { } diff --git a/src/Generated/Models/ImageEditOptions.cs b/src/Generated/Models/ImageEditOptions.cs index f2c0b5032..bae4472ef 100644 --- a/src/Generated/Models/ImageEditOptions.cs +++ b/src/Generated/Models/ImageEditOptions.cs @@ -9,7 +9,7 @@ namespace OpenAI.Images { public partial class ImageEditOptions { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ImageEditOptions(BinaryData image, string prompt, BinaryData mask, InternalCreateImageEditRequestModel? model, long? n, GeneratedImageSize? size, GeneratedImageFormat? responseFormat, string user, IDictionary serializedAdditionalRawData) { @@ -23,6 +23,6 @@ internal ImageEditOptions(BinaryData image, string prompt, BinaryData mask, Inte User = user; SerializedAdditionalRawData = serializedAdditionalRawData; } - public string User { get; init; } + public string User { get; set; } } } diff --git a/src/Generated/Models/ImageGenerationOptions.cs b/src/Generated/Models/ImageGenerationOptions.cs index 8326bc17f..e5f92429f 100644 --- a/src/Generated/Models/ImageGenerationOptions.cs +++ b/src/Generated/Models/ImageGenerationOptions.cs @@ -9,7 +9,7 @@ namespace OpenAI.Images { public partial class ImageGenerationOptions { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ImageGenerationOptions(string prompt, InternalCreateImageRequestModel? model, long? n, GeneratedImageQuality? quality, GeneratedImageFormat? responseFormat, GeneratedImageSize? size, GeneratedImageStyle? style, string user, IDictionary serializedAdditionalRawData) { @@ -23,10 +23,10 @@ internal ImageGenerationOptions(string prompt, InternalCreateImageRequestModel? User = user; SerializedAdditionalRawData = serializedAdditionalRawData; } - public GeneratedImageQuality? Quality { get; init; } - public GeneratedImageFormat? ResponseFormat { get; init; } - public GeneratedImageSize? Size { get; init; } - public GeneratedImageStyle? Style { get; init; } - public string User { get; init; } + public GeneratedImageQuality? Quality { get; set; } + public GeneratedImageFormat? ResponseFormat { get; set; } + public GeneratedImageSize? Size { get; set; } + public GeneratedImageStyle? Style { get; set; } + public string User { get; set; } } } diff --git a/src/Generated/Models/ImageVariationOptions.cs b/src/Generated/Models/ImageVariationOptions.cs index f474d3f2f..d4b9a8cf2 100644 --- a/src/Generated/Models/ImageVariationOptions.cs +++ b/src/Generated/Models/ImageVariationOptions.cs @@ -9,7 +9,7 @@ namespace OpenAI.Images { public partial class ImageVariationOptions { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ImageVariationOptions(BinaryData image, InternalCreateImageVariationRequestModel? model, long? n, GeneratedImageFormat? responseFormat, GeneratedImageSize? size, string user, IDictionary serializedAdditionalRawData) { @@ -21,6 +21,6 @@ internal ImageVariationOptions(BinaryData image, InternalCreateImageVariationReq User = user; SerializedAdditionalRawData = serializedAdditionalRawData; } - public string User { get; init; } + public string User { get; set; } } } diff --git a/src/Generated/Models/MessageContent.cs b/src/Generated/Models/MessageContent.cs index acd2eed78..cee79aaec 100644 --- a/src/Generated/Models/MessageContent.cs +++ b/src/Generated/Models/MessageContent.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public abstract partial class MessageContent { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal MessageContent(IDictionary serializedAdditionalRawData) { diff --git a/src/Generated/Models/MessageContentTextAnnotationsFileCitationObject.cs b/src/Generated/Models/MessageContentTextAnnotationsFileCitationObject.cs index db2c49dc1..4e93ad29f 100644 --- a/src/Generated/Models/MessageContentTextAnnotationsFileCitationObject.cs +++ b/src/Generated/Models/MessageContentTextAnnotationsFileCitationObject.cs @@ -33,9 +33,9 @@ internal MessageContentTextAnnotationsFileCitationObject() { } - public string Text { get; init; } - public InternalMessageContentTextAnnotationsFileCitationObjectFileCitation FileCitation { get; init; } - public int StartIndex { get; init; } - public int EndIndex { get; init; } + public string Text { get; set; } + public InternalMessageContentTextAnnotationsFileCitationObjectFileCitation FileCitation { get; set; } + public int StartIndex { get; set; } + public int EndIndex { get; set; } } } diff --git a/src/Generated/Models/MessageContentTextAnnotationsFilePathObject.cs b/src/Generated/Models/MessageContentTextAnnotationsFilePathObject.cs index 7b714416f..197bfb5b0 100644 --- a/src/Generated/Models/MessageContentTextAnnotationsFilePathObject.cs +++ b/src/Generated/Models/MessageContentTextAnnotationsFilePathObject.cs @@ -33,9 +33,9 @@ internal MessageContentTextAnnotationsFilePathObject() { } - public string Text { get; init; } - public InternalMessageContentTextAnnotationsFilePathObjectFilePath FilePath { get; init; } - public int StartIndex { get; init; } - public int EndIndex { get; init; } + public string Text { get; set; } + public InternalMessageContentTextAnnotationsFilePathObjectFilePath FilePath { get; set; } + public int StartIndex { get; set; } + public int EndIndex { get; set; } } } diff --git a/src/Generated/Models/MessageContentTextObjectAnnotation.cs b/src/Generated/Models/MessageContentTextObjectAnnotation.cs index 11509a0e0..d2a7e6648 100644 --- a/src/Generated/Models/MessageContentTextObjectAnnotation.cs +++ b/src/Generated/Models/MessageContentTextObjectAnnotation.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { internal abstract partial class MessageContentTextObjectAnnotation { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } protected MessageContentTextObjectAnnotation() { } @@ -20,6 +20,6 @@ internal MessageContentTextObjectAnnotation(string type, IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } public MessageContentTextObjectText(string value, IEnumerable annotations) { Argument.AssertNotNull(value, nameof(value)); @@ -31,7 +31,7 @@ internal MessageContentTextObjectText() { } - public string Value { get; init; } + public string Value { get; set; } public IList Annotations { get; } } } diff --git a/src/Generated/Models/MessageCreationAttachment.cs b/src/Generated/Models/MessageCreationAttachment.cs index 0fe4a75ca..3def69b58 100644 --- a/src/Generated/Models/MessageCreationAttachment.cs +++ b/src/Generated/Models/MessageCreationAttachment.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { public partial class MessageCreationAttachment { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } public MessageCreationAttachment(string fileId, IEnumerable tools) { Argument.AssertNotNull(fileId, nameof(fileId)); diff --git a/src/Generated/Models/MessageCreationOptions.cs b/src/Generated/Models/MessageCreationOptions.cs index 384246e6c..123344624 100644 --- a/src/Generated/Models/MessageCreationOptions.cs +++ b/src/Generated/Models/MessageCreationOptions.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { public partial class MessageCreationOptions { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal MessageCreationOptions(MessageRole role, IList content, IList attachments, IDictionary metadata, IDictionary serializedAdditionalRawData) { @@ -20,7 +20,7 @@ internal MessageCreationOptions(MessageRole role, IList content, Metadata = metadata; SerializedAdditionalRawData = serializedAdditionalRawData; } - public IList Attachments { get; } - public IDictionary Metadata { get; } + public IList Attachments { get; set; } + public IDictionary Metadata { get; set; } } } diff --git a/src/Generated/Models/MessageDeltaContent.cs b/src/Generated/Models/MessageDeltaContent.cs index a12ac9005..af9b4a2da 100644 --- a/src/Generated/Models/MessageDeltaContent.cs +++ b/src/Generated/Models/MessageDeltaContent.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { internal abstract partial class MessageDeltaContent { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } protected MessageDeltaContent() { } @@ -20,6 +20,6 @@ internal MessageDeltaContent(string type, IDictionary serial SerializedAdditionalRawData = serializedAdditionalRawData; } - internal string Type { get; init; } + internal string Type { get; set; } } } diff --git a/src/Generated/Models/MessageDeltaContentImageFileObjectImageFile.cs b/src/Generated/Models/MessageDeltaContentImageFileObjectImageFile.cs index ad2925486..a48270e77 100644 --- a/src/Generated/Models/MessageDeltaContentImageFileObjectImageFile.cs +++ b/src/Generated/Models/MessageDeltaContentImageFileObjectImageFile.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { internal partial class MessageDeltaContentImageFileObjectImageFile { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal MessageDeltaContentImageFileObjectImageFile() { } diff --git a/src/Generated/Models/MessageDeltaContentImageUrlObjectImageUrl.cs b/src/Generated/Models/MessageDeltaContentImageUrlObjectImageUrl.cs index 686a3335e..3675f30c0 100644 --- a/src/Generated/Models/MessageDeltaContentImageUrlObjectImageUrl.cs +++ b/src/Generated/Models/MessageDeltaContentImageUrlObjectImageUrl.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { internal partial class MessageDeltaContentImageUrlObjectImageUrl { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal MessageDeltaContentImageUrlObjectImageUrl() { } diff --git a/src/Generated/Models/MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation.cs b/src/Generated/Models/MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation.cs index 026d439e8..c5ecd39ee 100644 --- a/src/Generated/Models/MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation.cs +++ b/src/Generated/Models/MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { internal partial class MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal MessageDeltaContentTextAnnotationsFileCitationObjectFileCitation() { } diff --git a/src/Generated/Models/MessageDeltaContentTextAnnotationsFilePathObjectFilePath.cs b/src/Generated/Models/MessageDeltaContentTextAnnotationsFilePathObjectFilePath.cs index 6d3473b48..570354bff 100644 --- a/src/Generated/Models/MessageDeltaContentTextAnnotationsFilePathObjectFilePath.cs +++ b/src/Generated/Models/MessageDeltaContentTextAnnotationsFilePathObjectFilePath.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { internal partial class MessageDeltaContentTextAnnotationsFilePathObjectFilePath { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal MessageDeltaContentTextAnnotationsFilePathObjectFilePath() { } diff --git a/src/Generated/Models/MessageDeltaContentTextObjectText.cs b/src/Generated/Models/MessageDeltaContentTextObjectText.cs index 2c26acbb4..ff20203d0 100644 --- a/src/Generated/Models/MessageDeltaContentTextObjectText.cs +++ b/src/Generated/Models/MessageDeltaContentTextObjectText.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { internal partial class MessageDeltaContentTextObjectText { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal MessageDeltaContentTextObjectText() { Annotations = new ChangeTrackingList(); diff --git a/src/Generated/Models/MessageDeltaObjectDelta.cs b/src/Generated/Models/MessageDeltaObjectDelta.cs index 49ae72336..1d16ee8bc 100644 --- a/src/Generated/Models/MessageDeltaObjectDelta.cs +++ b/src/Generated/Models/MessageDeltaObjectDelta.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { internal partial class MessageDeltaObjectDelta { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal MessageDeltaObjectDelta() { Content = new ChangeTrackingList(); diff --git a/src/Generated/Models/MessageDeltaTextContentAnnotation.cs b/src/Generated/Models/MessageDeltaTextContentAnnotation.cs index 8e00cc80e..a9866693c 100644 --- a/src/Generated/Models/MessageDeltaTextContentAnnotation.cs +++ b/src/Generated/Models/MessageDeltaTextContentAnnotation.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { internal abstract partial class MessageDeltaTextContentAnnotation { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } protected MessageDeltaTextContentAnnotation() { } @@ -20,6 +20,6 @@ internal MessageDeltaTextContentAnnotation(string type, IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal MessageFailureDetails(MessageFailureReason reason) { Reason = reason; diff --git a/src/Generated/Models/MessageModificationOptions.cs b/src/Generated/Models/MessageModificationOptions.cs index 96cbd0c3c..5c53d2234 100644 --- a/src/Generated/Models/MessageModificationOptions.cs +++ b/src/Generated/Models/MessageModificationOptions.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public partial class MessageModificationOptions { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } public MessageModificationOptions() { Metadata = new ChangeTrackingDictionary(); @@ -21,6 +21,6 @@ internal MessageModificationOptions(IDictionary metadata, IDicti SerializedAdditionalRawData = serializedAdditionalRawData; } - public IDictionary Metadata { get; } + public IDictionary Metadata { get; set; } } } diff --git a/src/Generated/Models/ModerationCategories.cs b/src/Generated/Models/ModerationCategories.cs index f0dcfcf71..978eaf4e7 100644 --- a/src/Generated/Models/ModerationCategories.cs +++ b/src/Generated/Models/ModerationCategories.cs @@ -9,7 +9,7 @@ namespace OpenAI.Moderations { public partial class ModerationCategories { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ModerationCategories(bool hate, bool hateThreatening, bool harassment, bool harassmentThreatening, bool selfHarm, bool selfHarmIntent, bool selfHarmInstructions, bool sexual, bool sexualMinors, bool violence, bool violenceGraphic) { Hate = hate; diff --git a/src/Generated/Models/ModerationCategoryScores.cs b/src/Generated/Models/ModerationCategoryScores.cs index f213ce5bc..a734260ce 100644 --- a/src/Generated/Models/ModerationCategoryScores.cs +++ b/src/Generated/Models/ModerationCategoryScores.cs @@ -9,7 +9,7 @@ namespace OpenAI.Moderations { public partial class ModerationCategoryScores { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ModerationCategoryScores(float hate, float hateThreatening, float harassment, float harassmentThreatening, float selfHarm, float selfHarmIntent, float selfHarmInstructions, float sexual, float sexualMinors, float violence, float violenceGraphic) { Hate = hate; diff --git a/src/Generated/Models/ModerationOptions.cs b/src/Generated/Models/ModerationOptions.cs index 3b1bdb0ed..e21defe31 100644 --- a/src/Generated/Models/ModerationOptions.cs +++ b/src/Generated/Models/ModerationOptions.cs @@ -9,7 +9,7 @@ namespace OpenAI.Moderations { internal partial class ModerationOptions { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ModerationOptions(BinaryData input, InternalCreateModerationRequestModel? model, IDictionary serializedAdditionalRawData) { diff --git a/src/Generated/Models/ModerationResult.cs b/src/Generated/Models/ModerationResult.cs index 67d4bde28..ae015e2eb 100644 --- a/src/Generated/Models/ModerationResult.cs +++ b/src/Generated/Models/ModerationResult.cs @@ -9,7 +9,7 @@ namespace OpenAI.Moderations { public partial class ModerationResult { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ModerationResult(bool flagged, ModerationCategories categories, ModerationCategoryScores categoryScores) { Argument.AssertNotNull(categories, nameof(categories)); diff --git a/src/Generated/Models/OpenAIError.cs b/src/Generated/Models/OpenAIError.cs index b335c87a5..7b94f06f3 100644 --- a/src/Generated/Models/OpenAIError.cs +++ b/src/Generated/Models/OpenAIError.cs @@ -9,7 +9,7 @@ namespace OpenAI.Internal { internal partial class OpenAIError { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal OpenAIError(string code, string message, string param, string type) { Argument.AssertNotNull(message, nameof(message)); diff --git a/src/Generated/Models/OpenAIErrorResponse.cs b/src/Generated/Models/OpenAIErrorResponse.cs index 1edcef9e5..764dd3854 100644 --- a/src/Generated/Models/OpenAIErrorResponse.cs +++ b/src/Generated/Models/OpenAIErrorResponse.cs @@ -9,7 +9,7 @@ namespace OpenAI.Internal { internal partial class OpenAIErrorResponse { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal OpenAIErrorResponse(OpenAIError error) { Argument.AssertNotNull(error, nameof(error)); diff --git a/src/Generated/Models/OpenAIFileInfo.cs b/src/Generated/Models/OpenAIFileInfo.cs index 060c87cfa..240c8589d 100644 --- a/src/Generated/Models/OpenAIFileInfo.cs +++ b/src/Generated/Models/OpenAIFileInfo.cs @@ -9,7 +9,7 @@ namespace OpenAI.Files { public partial class OpenAIFileInfo { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal OpenAIFileInfo(string id, long? sizeInBytes, DateTimeOffset createdAt, string filename, OpenAIFilePurpose purpose, OpenAIFileStatus status) { Argument.AssertNotNull(id, nameof(id)); diff --git a/src/Generated/Models/OpenAIModelInfo.cs b/src/Generated/Models/OpenAIModelInfo.cs index 08d2b7e34..c838e75ab 100644 --- a/src/Generated/Models/OpenAIModelInfo.cs +++ b/src/Generated/Models/OpenAIModelInfo.cs @@ -9,7 +9,7 @@ namespace OpenAI.Models { public partial class OpenAIModelInfo { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal OpenAIModelInfo(string id, DateTimeOffset createdAt, string ownedBy) { Argument.AssertNotNull(id, nameof(id)); diff --git a/src/Generated/Models/RunCreationOptions.cs b/src/Generated/Models/RunCreationOptions.cs index 60a0d49c3..9e0d88fa7 100644 --- a/src/Generated/Models/RunCreationOptions.cs +++ b/src/Generated/Models/RunCreationOptions.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public partial class RunCreationOptions { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal RunCreationOptions(string assistantId, string modelOverride, string instructionsOverride, string additionalInstructions, IList internalMessages, IList toolsOverride, IDictionary metadata, float? temperature, float? nucleusSamplingFactor, bool? stream, int? maxPromptTokens, int? maxCompletionTokens, RunTruncationStrategy truncationStrategy, ToolConstraint toolConstraint, bool? parallelToolCallsEnabled, AssistantResponseFormat responseFormat, IDictionary serializedAdditionalRawData) { diff --git a/src/Generated/Models/RunError.cs b/src/Generated/Models/RunError.cs index 8d0928481..8404fbbe2 100644 --- a/src/Generated/Models/RunError.cs +++ b/src/Generated/Models/RunError.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public partial class RunError { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal RunError(RunErrorCode code, string message) { Argument.AssertNotNull(message, nameof(message)); diff --git a/src/Generated/Models/RunIncompleteDetails.cs b/src/Generated/Models/RunIncompleteDetails.cs index 625784bbf..5c063d7c0 100644 --- a/src/Generated/Models/RunIncompleteDetails.cs +++ b/src/Generated/Models/RunIncompleteDetails.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public partial class RunIncompleteDetails { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal RunIncompleteDetails() { } diff --git a/src/Generated/Models/RunModificationOptions.cs b/src/Generated/Models/RunModificationOptions.cs index 5e4f8bfcc..b9c29be48 100644 --- a/src/Generated/Models/RunModificationOptions.cs +++ b/src/Generated/Models/RunModificationOptions.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public partial class RunModificationOptions { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } public RunModificationOptions() { Metadata = new ChangeTrackingDictionary(); @@ -21,6 +21,6 @@ internal RunModificationOptions(IDictionary metadata, IDictionar SerializedAdditionalRawData = serializedAdditionalRawData; } - public IDictionary Metadata { get; } + public IDictionary Metadata { get; set; } } } diff --git a/src/Generated/Models/RunStep.cs b/src/Generated/Models/RunStep.cs index 27f85bb6e..e6d00c191 100644 --- a/src/Generated/Models/RunStep.cs +++ b/src/Generated/Models/RunStep.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public partial class RunStep { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal RunStep(string id, DateTimeOffset createdAt, string assistantId, string threadId, string runId, RunStepType type, RunStepStatus status, RunStepDetails details, RunStepError lastError, DateTimeOffset? expiredAt, DateTimeOffset? cancelledAt, DateTimeOffset? failedAt, DateTimeOffset? completedAt, IReadOnlyDictionary metadata, RunStepTokenUsage usage) { Argument.AssertNotNull(id, nameof(id)); diff --git a/src/Generated/Models/RunStepCodeInterpreterOutput.cs b/src/Generated/Models/RunStepCodeInterpreterOutput.cs index 06a2c10de..1419ce55c 100644 --- a/src/Generated/Models/RunStepCodeInterpreterOutput.cs +++ b/src/Generated/Models/RunStepCodeInterpreterOutput.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public abstract partial class RunStepCodeInterpreterOutput { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } protected RunStepCodeInterpreterOutput() { } @@ -20,6 +20,6 @@ internal RunStepCodeInterpreterOutput(string type, IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } protected RunStepDetails() { } @@ -20,6 +20,6 @@ internal RunStepDetails(string type, IDictionary serializedA SerializedAdditionalRawData = serializedAdditionalRawData; } - internal string Type { get; init; } + internal string Type { get; set; } } } diff --git a/src/Generated/Models/RunStepError.cs b/src/Generated/Models/RunStepError.cs index 2646b3be7..780003cbb 100644 --- a/src/Generated/Models/RunStepError.cs +++ b/src/Generated/Models/RunStepError.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public partial class RunStepError { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal RunStepError(RunStepErrorCode code, string message) { Argument.AssertNotNull(message, nameof(message)); diff --git a/src/Generated/Models/RunStepTokenUsage.cs b/src/Generated/Models/RunStepTokenUsage.cs index f377278c0..3e1e81939 100644 --- a/src/Generated/Models/RunStepTokenUsage.cs +++ b/src/Generated/Models/RunStepTokenUsage.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public partial class RunStepTokenUsage { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal RunStepTokenUsage(int completionTokens, int promptTokens, int totalTokens) { CompletionTokens = completionTokens; diff --git a/src/Generated/Models/RunStepToolCall.cs b/src/Generated/Models/RunStepToolCall.cs index 2ab1bb318..7c21afff2 100644 --- a/src/Generated/Models/RunStepToolCall.cs +++ b/src/Generated/Models/RunStepToolCall.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public abstract partial class RunStepToolCall { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } protected RunStepToolCall() { } @@ -20,6 +20,6 @@ internal RunStepToolCall(string type, IDictionary serialized SerializedAdditionalRawData = serializedAdditionalRawData; } - internal string Type { get; init; } + internal string Type { get; set; } } } diff --git a/src/Generated/Models/RunStepUpdateCodeInterpreterOutput.cs b/src/Generated/Models/RunStepUpdateCodeInterpreterOutput.cs index ddb2b38c9..637332102 100644 --- a/src/Generated/Models/RunStepUpdateCodeInterpreterOutput.cs +++ b/src/Generated/Models/RunStepUpdateCodeInterpreterOutput.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public abstract partial class RunStepUpdateCodeInterpreterOutput { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } protected RunStepUpdateCodeInterpreterOutput() { } @@ -20,6 +20,6 @@ internal RunStepUpdateCodeInterpreterOutput(string type, IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal RunTokenUsage(int completionTokens, int promptTokens, int totalTokens) { CompletionTokens = completionTokens; diff --git a/src/Generated/Models/SpeechGenerationOptions.cs b/src/Generated/Models/SpeechGenerationOptions.cs index 8a2fcb335..4a5b48c18 100644 --- a/src/Generated/Models/SpeechGenerationOptions.cs +++ b/src/Generated/Models/SpeechGenerationOptions.cs @@ -9,7 +9,7 @@ namespace OpenAI.Audio { public partial class SpeechGenerationOptions { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal SpeechGenerationOptions(InternalCreateSpeechRequestModel model, string input, GeneratedSpeechVoice voice, GeneratedSpeechFormat? responseFormat, float? speed, IDictionary serializedAdditionalRawData) { @@ -20,7 +20,7 @@ internal SpeechGenerationOptions(InternalCreateSpeechRequestModel model, string Speed = speed; SerializedAdditionalRawData = serializedAdditionalRawData; } - public GeneratedSpeechFormat? ResponseFormat { get; init; } - public float? Speed { get; init; } + public GeneratedSpeechFormat? ResponseFormat { get; set; } + public float? Speed { get; set; } } } diff --git a/src/Generated/Models/StreamingChatCompletionUpdate.cs b/src/Generated/Models/StreamingChatCompletionUpdate.cs index 696d8e2d9..8132fd98f 100644 --- a/src/Generated/Models/StreamingChatCompletionUpdate.cs +++ b/src/Generated/Models/StreamingChatCompletionUpdate.cs @@ -10,7 +10,7 @@ namespace OpenAI.Chat { public partial class StreamingChatCompletionUpdate { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal StreamingChatCompletionUpdate(string id, IEnumerable choices, DateTimeOffset createdAt, string model) { Argument.AssertNotNull(id, nameof(id)); diff --git a/src/Generated/Models/StreamingChatFunctionCallUpdate.cs b/src/Generated/Models/StreamingChatFunctionCallUpdate.cs index f00dd7f26..cdf403d42 100644 --- a/src/Generated/Models/StreamingChatFunctionCallUpdate.cs +++ b/src/Generated/Models/StreamingChatFunctionCallUpdate.cs @@ -9,7 +9,7 @@ namespace OpenAI.Chat { public partial class StreamingChatFunctionCallUpdate { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal StreamingChatFunctionCallUpdate() { } diff --git a/src/Generated/Models/StreamingChatToolCallUpdate.cs b/src/Generated/Models/StreamingChatToolCallUpdate.cs index 22d2dd99f..5d606fc1b 100644 --- a/src/Generated/Models/StreamingChatToolCallUpdate.cs +++ b/src/Generated/Models/StreamingChatToolCallUpdate.cs @@ -9,7 +9,7 @@ namespace OpenAI.Chat { public partial class StreamingChatToolCallUpdate { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal StreamingChatToolCallUpdate(int index, string id, ChatToolCallKind kind, InternalChatCompletionMessageToolCallChunkFunction function, IDictionary serializedAdditionalRawData) { diff --git a/src/Generated/Models/ThreadCreationOptions.cs b/src/Generated/Models/ThreadCreationOptions.cs index 911254aa3..450cf612a 100644 --- a/src/Generated/Models/ThreadCreationOptions.cs +++ b/src/Generated/Models/ThreadCreationOptions.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public partial class ThreadCreationOptions { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } public ThreadCreationOptions() { InternalMessages = new ChangeTrackingList(); @@ -23,6 +23,6 @@ internal ThreadCreationOptions(IList internalMessages, T Metadata = metadata; SerializedAdditionalRawData = serializedAdditionalRawData; } - public IDictionary Metadata { get; } + public IDictionary Metadata { get; set; } } } diff --git a/src/Generated/Models/ThreadMessage.cs b/src/Generated/Models/ThreadMessage.cs index d2d6d1fad..ba5967d55 100644 --- a/src/Generated/Models/ThreadMessage.cs +++ b/src/Generated/Models/ThreadMessage.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { public partial class ThreadMessage { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ThreadMessage(string id, DateTimeOffset createdAt, string threadId, MessageStatus status, MessageFailureDetails incompleteDetails, DateTimeOffset? completedAt, DateTimeOffset? incompleteAt, MessageRole role, IEnumerable content, string assistantId, string runId, IEnumerable attachments, IReadOnlyDictionary metadata) { Argument.AssertNotNull(id, nameof(id)); diff --git a/src/Generated/Models/ThreadModificationOptions.cs b/src/Generated/Models/ThreadModificationOptions.cs index ee21326ca..b26090b10 100644 --- a/src/Generated/Models/ThreadModificationOptions.cs +++ b/src/Generated/Models/ThreadModificationOptions.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public partial class ThreadModificationOptions { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } public ThreadModificationOptions() { Metadata = new ChangeTrackingDictionary(); @@ -21,6 +21,6 @@ internal ThreadModificationOptions(ToolResources toolResources, IDictionary Metadata { get; } + public IDictionary Metadata { get; set; } } } diff --git a/src/Generated/Models/ThreadRun.cs b/src/Generated/Models/ThreadRun.cs index 59c455c1d..cc4a44572 100644 --- a/src/Generated/Models/ThreadRun.cs +++ b/src/Generated/Models/ThreadRun.cs @@ -10,7 +10,7 @@ namespace OpenAI.Assistants { public partial class ThreadRun { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ThreadRun(string id, InternalRunObjectObject @object, DateTimeOffset createdAt, string threadId, string assistantId, RunStatus status, InternalRunRequiredAction internalRequiredAction, RunError lastError, DateTimeOffset? expiresAt, DateTimeOffset? startedAt, DateTimeOffset? cancelledAt, DateTimeOffset? failedAt, DateTimeOffset? completedAt, RunIncompleteDetails incompleteDetails, string model, string instructions, IReadOnlyList tools, IReadOnlyDictionary metadata, RunTokenUsage usage, float? temperature, float? nucleusSamplingFactor, int? maxPromptTokens, int? maxCompletionTokens, RunTruncationStrategy truncationStrategy, ToolConstraint toolConstraint, bool? parallelToolCallsEnabled, AssistantResponseFormat responseFormat, IDictionary serializedAdditionalRawData) { diff --git a/src/Generated/Models/ToolDefinition.cs b/src/Generated/Models/ToolDefinition.cs index d9b57fed6..8f3a99763 100644 --- a/src/Generated/Models/ToolDefinition.cs +++ b/src/Generated/Models/ToolDefinition.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public abstract partial class ToolDefinition { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } protected ToolDefinition() { } @@ -20,6 +20,6 @@ internal ToolDefinition(string type, IDictionary serializedA SerializedAdditionalRawData = serializedAdditionalRawData; } - internal string Type { get; init; } + internal string Type { get; set; } } } diff --git a/src/Generated/Models/ToolOutput.cs b/src/Generated/Models/ToolOutput.cs index cd5450fa0..0e7b6441b 100644 --- a/src/Generated/Models/ToolOutput.cs +++ b/src/Generated/Models/ToolOutput.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public partial class ToolOutput { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } public ToolOutput() { } @@ -21,7 +21,7 @@ internal ToolOutput(string toolCallId, string output, IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal ToolResources(CodeInterpreterToolResources codeInterpreter, FileSearchToolResources fileSearch, IDictionary serializedAdditionalRawData) { diff --git a/src/Generated/Models/TranscribedSegment.cs b/src/Generated/Models/TranscribedSegment.cs index 29262a166..965788cc6 100644 --- a/src/Generated/Models/TranscribedSegment.cs +++ b/src/Generated/Models/TranscribedSegment.cs @@ -10,7 +10,6 @@ namespace OpenAI.Audio { public readonly partial struct TranscribedSegment { - internal IDictionary SerializedAdditionalRawData { get; } internal TranscribedSegment(int id, long seekOffset, TimeSpan start, TimeSpan end, string text, IEnumerable tokenIds, float temperature, double averageLogProbability, float compressionRatio, double noSpeechProbability) { Argument.AssertNotNull(text, nameof(text)); diff --git a/src/Generated/Models/TranscribedWord.cs b/src/Generated/Models/TranscribedWord.cs index 7c9882ae2..0426c1992 100644 --- a/src/Generated/Models/TranscribedWord.cs +++ b/src/Generated/Models/TranscribedWord.cs @@ -9,7 +9,6 @@ namespace OpenAI.Audio { public readonly partial struct TranscribedWord { - internal IDictionary SerializedAdditionalRawData { get; } internal TranscribedWord(string word, TimeSpan start, TimeSpan end) { Argument.AssertNotNull(word, nameof(word)); diff --git a/src/Generated/Models/VectorStore.cs b/src/Generated/Models/VectorStore.cs index 6aa49d15e..3f39a41e2 100644 --- a/src/Generated/Models/VectorStore.cs +++ b/src/Generated/Models/VectorStore.cs @@ -9,11 +9,12 @@ namespace OpenAI.VectorStores { public partial class VectorStore { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal VectorStore(string id, DateTimeOffset createdAt, string name, int usageBytes, VectorStoreFileCounts fileCounts, VectorStoreStatus status, DateTimeOffset? lastActiveAt, IReadOnlyDictionary metadata) { Argument.AssertNotNull(id, nameof(id)); Argument.AssertNotNull(name, nameof(name)); + Argument.AssertNotNull(fileCounts, nameof(fileCounts)); Id = id; CreatedAt = createdAt; diff --git a/src/Generated/Models/VectorStoreBatchFileJob.cs b/src/Generated/Models/VectorStoreBatchFileJob.cs index acdd29b4d..a584a5e60 100644 --- a/src/Generated/Models/VectorStoreBatchFileJob.cs +++ b/src/Generated/Models/VectorStoreBatchFileJob.cs @@ -9,11 +9,12 @@ namespace OpenAI.VectorStores { public partial class VectorStoreBatchFileJob { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal VectorStoreBatchFileJob(string batchId, DateTimeOffset createdAt, string vectorStoreId, VectorStoreBatchFileJobStatus status, VectorStoreFileCounts fileCounts) { Argument.AssertNotNull(batchId, nameof(batchId)); Argument.AssertNotNull(vectorStoreId, nameof(vectorStoreId)); + Argument.AssertNotNull(fileCounts, nameof(fileCounts)); BatchId = batchId; CreatedAt = createdAt; diff --git a/src/Generated/Models/VectorStoreCreationHelper.cs b/src/Generated/Models/VectorStoreCreationHelper.cs index 38767788f..e8d2702b5 100644 --- a/src/Generated/Models/VectorStoreCreationHelper.cs +++ b/src/Generated/Models/VectorStoreCreationHelper.cs @@ -9,7 +9,7 @@ namespace OpenAI.Assistants { public partial class VectorStoreCreationHelper { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } public VectorStoreCreationHelper() { FileIds = new ChangeTrackingList(); diff --git a/src/Generated/Models/VectorStoreCreationOptions.cs b/src/Generated/Models/VectorStoreCreationOptions.cs index f3e50307f..6c26058e0 100644 --- a/src/Generated/Models/VectorStoreCreationOptions.cs +++ b/src/Generated/Models/VectorStoreCreationOptions.cs @@ -9,7 +9,7 @@ namespace OpenAI.VectorStores { public partial class VectorStoreCreationOptions { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } public VectorStoreCreationOptions() { FileIds = new ChangeTrackingList(); @@ -25,7 +25,7 @@ internal VectorStoreCreationOptions(IList fileIds, string name, VectorSt Metadata = metadata; SerializedAdditionalRawData = serializedAdditionalRawData; } - public string Name { get; init; } - public IDictionary Metadata { get; } + public string Name { get; set; } + public IDictionary Metadata { get; set; } } } diff --git a/src/Generated/Models/VectorStoreFileAssociation.Serialization.cs b/src/Generated/Models/VectorStoreFileAssociation.Serialization.cs index f3fa8bb82..13b4257d1 100644 --- a/src/Generated/Models/VectorStoreFileAssociation.Serialization.cs +++ b/src/Generated/Models/VectorStoreFileAssociation.Serialization.cs @@ -116,7 +116,7 @@ internal static VectorStoreFileAssociation DeserializeVectorStoreFileAssociation DateTimeOffset createdAt = default; string vectorStoreId = default; VectorStoreFileAssociationStatus status = default; - VectorStoreFileAssociationError? lastError = default; + VectorStoreFileAssociationError lastError = default; FileChunkingStrategy chunkingStrategy = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); diff --git a/src/Generated/Models/VectorStoreFileAssociation.cs b/src/Generated/Models/VectorStoreFileAssociation.cs index e977200d6..c7da0b027 100644 --- a/src/Generated/Models/VectorStoreFileAssociation.cs +++ b/src/Generated/Models/VectorStoreFileAssociation.cs @@ -9,8 +9,8 @@ namespace OpenAI.VectorStores { public partial class VectorStoreFileAssociation { - internal IDictionary SerializedAdditionalRawData { get; } - internal VectorStoreFileAssociation(string fileId, int size, DateTimeOffset createdAt, string vectorStoreId, VectorStoreFileAssociationStatus status, VectorStoreFileAssociationError? lastError) + internal IDictionary SerializedAdditionalRawData { get; set; } + internal VectorStoreFileAssociation(string fileId, int size, DateTimeOffset createdAt, string vectorStoreId, VectorStoreFileAssociationStatus status, VectorStoreFileAssociationError lastError) { Argument.AssertNotNull(fileId, nameof(fileId)); Argument.AssertNotNull(vectorStoreId, nameof(vectorStoreId)); @@ -23,7 +23,7 @@ internal VectorStoreFileAssociation(string fileId, int size, DateTimeOffset crea LastError = lastError; } - internal VectorStoreFileAssociation(string fileId, InternalVectorStoreFileObjectObject @object, int size, DateTimeOffset createdAt, string vectorStoreId, VectorStoreFileAssociationStatus status, VectorStoreFileAssociationError? lastError, FileChunkingStrategy chunkingStrategy, IDictionary serializedAdditionalRawData) + internal VectorStoreFileAssociation(string fileId, InternalVectorStoreFileObjectObject @object, int size, DateTimeOffset createdAt, string vectorStoreId, VectorStoreFileAssociationStatus status, VectorStoreFileAssociationError lastError, FileChunkingStrategy chunkingStrategy, IDictionary serializedAdditionalRawData) { FileId = fileId; Object = @object; @@ -42,6 +42,6 @@ internal VectorStoreFileAssociation() public DateTimeOffset CreatedAt { get; } public string VectorStoreId { get; } public VectorStoreFileAssociationStatus Status { get; } - public VectorStoreFileAssociationError? LastError { get; } + public VectorStoreFileAssociationError LastError { get; } } } diff --git a/src/Generated/Models/VectorStoreFileAssociationError.Serialization.cs b/src/Generated/Models/VectorStoreFileAssociationError.Serialization.cs index 73218695b..54c786f3a 100644 --- a/src/Generated/Models/VectorStoreFileAssociationError.Serialization.cs +++ b/src/Generated/Models/VectorStoreFileAssociationError.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.VectorStores { - public partial struct VectorStoreFileAssociationError : IJsonModel, IJsonModel + public partial class VectorStoreFileAssociationError : IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { @@ -65,14 +65,14 @@ VectorStoreFileAssociationError IJsonModel.Crea return DeserializeVectorStoreFileAssociationError(document.RootElement, options); } - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)this).Write(writer, options); - - object IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)this).Create(ref reader, options); - internal static VectorStoreFileAssociationError DeserializeVectorStoreFileAssociationError(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } VectorStoreFileAssociationErrorCode code = default; string message = default; IDictionary serializedAdditionalRawData = default; @@ -130,19 +130,13 @@ VectorStoreFileAssociationError IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ((IPersistableModel)this).Write(options); - - object IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ((IPersistableModel)this).Create(data, options); - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)this).GetFormatFromOptions(options); - internal static VectorStoreFileAssociationError FromResponse(PipelineResponse response) { using var document = JsonDocument.Parse(response.Content); return DeserializeVectorStoreFileAssociationError(document.RootElement); } - internal BinaryContent ToBinaryContent() + internal virtual BinaryContent ToBinaryContent() { return BinaryContent.Create(this, ModelSerializationExtensions.WireOptions); } diff --git a/src/Generated/Models/VectorStoreFileAssociationError.cs b/src/Generated/Models/VectorStoreFileAssociationError.cs index c3f3c0c58..638e7f527 100644 --- a/src/Generated/Models/VectorStoreFileAssociationError.cs +++ b/src/Generated/Models/VectorStoreFileAssociationError.cs @@ -7,9 +7,9 @@ namespace OpenAI.VectorStores { - public readonly partial struct VectorStoreFileAssociationError + public partial class VectorStoreFileAssociationError { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal VectorStoreFileAssociationError(VectorStoreFileAssociationErrorCode code, string message) { Argument.AssertNotNull(message, nameof(message)); @@ -25,7 +25,7 @@ internal VectorStoreFileAssociationError(VectorStoreFileAssociationErrorCode cod SerializedAdditionalRawData = serializedAdditionalRawData; } - public VectorStoreFileAssociationError() + internal VectorStoreFileAssociationError() { } diff --git a/src/Generated/Models/VectorStoreFileCounts.Serialization.cs b/src/Generated/Models/VectorStoreFileCounts.Serialization.cs index c923fc663..f3ab33f06 100644 --- a/src/Generated/Models/VectorStoreFileCounts.Serialization.cs +++ b/src/Generated/Models/VectorStoreFileCounts.Serialization.cs @@ -10,7 +10,7 @@ namespace OpenAI.VectorStores { - public partial struct VectorStoreFileCounts : IJsonModel, IJsonModel + public partial class VectorStoreFileCounts : IJsonModel { void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { @@ -80,14 +80,14 @@ VectorStoreFileCounts IJsonModel.Create(ref Utf8JsonReade return DeserializeVectorStoreFileCounts(document.RootElement, options); } - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)this).Write(writer, options); - - object IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)this).Create(ref reader, options); - internal static VectorStoreFileCounts DeserializeVectorStoreFileCounts(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } int inProgress = default; int completed = default; int failed = default; @@ -169,19 +169,13 @@ VectorStoreFileCounts IPersistableModel.Create(BinaryData string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ((IPersistableModel)this).Write(options); - - object IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ((IPersistableModel)this).Create(data, options); - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)this).GetFormatFromOptions(options); - internal static VectorStoreFileCounts FromResponse(PipelineResponse response) { using var document = JsonDocument.Parse(response.Content); return DeserializeVectorStoreFileCounts(document.RootElement); } - internal BinaryContent ToBinaryContent() + internal virtual BinaryContent ToBinaryContent() { return BinaryContent.Create(this, ModelSerializationExtensions.WireOptions); } diff --git a/src/Generated/Models/VectorStoreFileCounts.cs b/src/Generated/Models/VectorStoreFileCounts.cs index 92c8a4885..7d35eacce 100644 --- a/src/Generated/Models/VectorStoreFileCounts.cs +++ b/src/Generated/Models/VectorStoreFileCounts.cs @@ -7,9 +7,9 @@ namespace OpenAI.VectorStores { - public readonly partial struct VectorStoreFileCounts + public partial class VectorStoreFileCounts { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } internal VectorStoreFileCounts(int inProgress, int completed, int failed, int cancelled, int total) { InProgress = inProgress; @@ -29,7 +29,7 @@ internal VectorStoreFileCounts(int inProgress, int completed, int failed, int ca SerializedAdditionalRawData = serializedAdditionalRawData; } - public VectorStoreFileCounts() + internal VectorStoreFileCounts() { } diff --git a/src/Generated/Models/VectorStoreModificationOptions.cs b/src/Generated/Models/VectorStoreModificationOptions.cs index 8b6e967b5..8597db68c 100644 --- a/src/Generated/Models/VectorStoreModificationOptions.cs +++ b/src/Generated/Models/VectorStoreModificationOptions.cs @@ -9,7 +9,7 @@ namespace OpenAI.VectorStores { public partial class VectorStoreModificationOptions { - internal IDictionary SerializedAdditionalRawData { get; } + internal IDictionary SerializedAdditionalRawData { get; set; } public VectorStoreModificationOptions() { Metadata = new ChangeTrackingDictionary(); @@ -23,7 +23,7 @@ internal VectorStoreModificationOptions(string name, VectorStoreExpirationPolicy SerializedAdditionalRawData = serializedAdditionalRawData; } - public string Name { get; init; } - public IDictionary Metadata { get; } + public string Name { get; set; } + public IDictionary Metadata { get; set; } } } diff --git a/src/Utility/Polyfill/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.cs b/src/Utility/Polyfill/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.cs index 1b9abe47c..b4aa9161f 100644 --- a/src/Utility/Polyfill/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.cs +++ b/src/Utility/Polyfill/System.Runtime.CompilerServices.CompilerFeatureRequiredAttribute.cs @@ -6,7 +6,7 @@ namespace System.Runtime.CompilerServices; internal sealed class CompilerFeatureRequiredAttribute(string featureName) : Attribute { public string FeatureName { get; } = featureName; - public bool IsOptional { get; init; } + public bool IsOptional { get; set; } public const string RefStructs = nameof(RefStructs); public const string RequiredMembers = nameof(RequiredMembers);