diff --git a/api/OpenAI.net8.0.cs b/api/OpenAI.net8.0.cs index d9e42a0b3..8a3e434fe 100644 --- a/api/OpenAI.net8.0.cs +++ b/api/OpenAI.net8.0.cs @@ -42,7 +42,6 @@ public class OpenAIClientOptions : ClientPipelineOptions { public string ProjectId { get; set; } public string UserAgentApplicationId { get; set; } } - [Experimental("OPENAI001")] public class OpenAIContext : ModelReaderWriterContext { public static OpenAIContext Default { get; } protected override bool TryGetTypeBuilderCore(Type type, out ModelReaderWriterTypeBuilder builder); @@ -315,6 +314,7 @@ public class CodeInterpreterToolResources : IJsonModel, IPersist public override readonly int GetHashCode(); public static bool operator ==(MessageFailureReason left, MessageFailureReason right); public static implicit operator MessageFailureReason(string value); + public static implicit operator MessageFailureReason?(string value); public static bool operator !=(MessageFailureReason left, MessageFailureReason right); public override readonly string ToString(); } @@ -496,6 +497,7 @@ public enum MessageRole { public override readonly int GetHashCode(); public static bool operator ==(MessageStatus left, MessageStatus right); public static implicit operator MessageStatus(string value); + public static implicit operator MessageStatus?(string value); public static bool operator !=(MessageStatus left, MessageStatus right); public override readonly string ToString(); } @@ -580,6 +582,7 @@ public class RunError : IJsonModel, IPersistableModel { public override readonly int GetHashCode(); public static bool operator ==(RunErrorCode left, RunErrorCode right); public static implicit operator RunErrorCode(string value); + public static implicit operator RunErrorCode?(string value); public static bool operator !=(RunErrorCode left, RunErrorCode right); public override readonly string ToString(); } @@ -603,6 +606,7 @@ public class RunIncompleteDetails : IJsonModel, IPersistab public override readonly int GetHashCode(); public static bool operator ==(RunIncompleteReason left, RunIncompleteReason right); public static implicit operator RunIncompleteReason(string value); + public static implicit operator RunIncompleteReason?(string value); public static bool operator !=(RunIncompleteReason left, RunIncompleteReason right); public override readonly string ToString(); } @@ -634,6 +638,7 @@ public class RunModificationOptions : IJsonModel, IPersi public override readonly int GetHashCode(); public static bool operator ==(RunStatus left, RunStatus right); public static implicit operator RunStatus(string value); + public static implicit operator RunStatus?(string value); public static bool operator !=(RunStatus left, RunStatus right); public override readonly string ToString(); } @@ -734,6 +739,7 @@ public class RunStepError : IJsonModel, IPersistableModel, IPersistableMo public override readonly int GetHashCode(); public static bool operator ==(AudioTranscriptionFormat left, AudioTranscriptionFormat right); public static implicit operator AudioTranscriptionFormat(string value); + public static implicit operator AudioTranscriptionFormat?(string value); public static bool operator !=(AudioTranscriptionFormat left, AudioTranscriptionFormat right); public override readonly string ToString(); } @@ -1197,6 +1205,7 @@ public class AudioTranslation : IJsonModel, IPersistableModel< public override readonly int GetHashCode(); public static bool operator ==(AudioTranslationFormat left, AudioTranslationFormat right); public static implicit operator AudioTranslationFormat(string value); + public static implicit operator AudioTranslationFormat?(string value); public static bool operator !=(AudioTranslationFormat left, AudioTranslationFormat right); public override readonly string ToString(); } @@ -1228,6 +1237,7 @@ public class AudioTranslationOptions : IJsonModel, IPer public override readonly int GetHashCode(); public static bool operator ==(GeneratedSpeechFormat left, GeneratedSpeechFormat right); public static implicit operator GeneratedSpeechFormat(string value); + public static implicit operator GeneratedSpeechFormat?(string value); public static bool operator !=(GeneratedSpeechFormat left, GeneratedSpeechFormat right); public override readonly string ToString(); } @@ -1256,6 +1266,7 @@ public class AudioTranslationOptions : IJsonModel, IPer public override readonly int GetHashCode(); public static bool operator ==(GeneratedSpeechVoice left, GeneratedSpeechVoice right); public static implicit operator GeneratedSpeechVoice(string value); + public static implicit operator GeneratedSpeechVoice?(string value); public static bool operator !=(GeneratedSpeechVoice left, GeneratedSpeechVoice right); public override readonly string ToString(); } @@ -1319,6 +1330,7 @@ public class StreamingAudioTranscriptionUpdate : IJsonModel, IPersistableMo public override readonly int GetHashCode(); public static bool operator ==(ChatImageDetailLevel left, ChatImageDetailLevel right); public static implicit operator ChatImageDetailLevel(string value); + public static implicit operator ChatImageDetailLevel?(string value); public static bool operator !=(ChatImageDetailLevel left, ChatImageDetailLevel right); public override readonly string ToString(); } @@ -1696,6 +1711,7 @@ public class ChatFunctionChoice : IJsonModel, IPersistableMo public override readonly int GetHashCode(); public static bool operator ==(ChatInputAudioFormat left, ChatInputAudioFormat right); public static implicit operator ChatInputAudioFormat(string value); + public static implicit operator ChatInputAudioFormat?(string value); public static bool operator !=(ChatInputAudioFormat left, ChatInputAudioFormat right); public override readonly string ToString(); } @@ -1847,6 +1863,7 @@ public class ChatOutputAudio : IJsonModel, IPersistableModel, IP public override readonly int GetHashCode(); public static bool operator ==(ChatOutputAudioVoice left, ChatOutputAudioVoice right); public static implicit operator ChatOutputAudioVoice(string value); + public static implicit operator ChatOutputAudioVoice?(string value); public static bool operator !=(ChatOutputAudioVoice left, ChatOutputAudioVoice right); public override readonly string ToString(); } @@ -1921,6 +1939,7 @@ public class ChatOutputTokenUsageDetails : IJsonModel, IPersistableMode public override readonly int GetHashCode(); public static bool operator ==(FineTuningStatus left, FineTuningStatus right); public static implicit operator FineTuningStatus(string value); + public static implicit operator FineTuningStatus?(string value); public static bool operator !=(FineTuningStatus left, FineTuningStatus right); public override readonly string ToString(); } @@ -3044,6 +3066,7 @@ public class GraderStringCheck : Grader, IJsonModel, IPersist public override readonly int GetHashCode(); public static bool operator ==(GraderStringCheckOperation left, GraderStringCheckOperation right); public static implicit operator GraderStringCheckOperation(string value); + public static implicit operator GraderStringCheckOperation?(string value); public static bool operator !=(GraderStringCheckOperation left, GraderStringCheckOperation right); public override readonly string ToString(); } @@ -3079,6 +3102,7 @@ public class GraderTextSimilarity : Grader, IJsonModel, IP public override readonly int GetHashCode(); public static bool operator ==(GraderTextSimilarityEvaluationMetric left, GraderTextSimilarityEvaluationMetric right); public static implicit operator GraderTextSimilarityEvaluationMetric(string value); + public static implicit operator GraderTextSimilarityEvaluationMetric?(string value); public static bool operator !=(GraderTextSimilarityEvaluationMetric left, GraderTextSimilarityEvaluationMetric right); public override readonly string ToString(); } @@ -3098,6 +3122,7 @@ public class GraderTextSimilarity : Grader, IJsonModel, IP public override readonly int GetHashCode(); public static bool operator ==(GraderType left, GraderType right); public static implicit operator GraderType(string value); + public static implicit operator GraderType?(string value); public static bool operator !=(GraderType left, GraderType right); public override readonly string ToString(); } @@ -3208,6 +3233,7 @@ public class GeneratedImage : IJsonModel, IPersistableModel, IPer public override readonly int GetHashCode(); public static bool operator ==(ConversationContentPartKind left, ConversationContentPartKind right); public static implicit operator ConversationContentPartKind(string value); + public static implicit operator ConversationContentPartKind?(string value); public static bool operator !=(ConversationContentPartKind left, ConversationContentPartKind right); public override readonly string ToString(); } @@ -3643,6 +3675,7 @@ public class ConversationFunctionTool : ConversationTool, IJsonModel public override readonly int GetHashCode(); public static bool operator ==(InputTranscriptionModel left, InputTranscriptionModel right); public static implicit operator InputTranscriptionModel(string value); + public static implicit operator InputTranscriptionModel?(string value); public static bool operator !=(InputTranscriptionModel left, InputTranscriptionModel right); public override readonly string ToString(); } @@ -4160,6 +4199,7 @@ public class RateLimitsUpdate : RealtimeUpdate, IJsonModel, IP public override readonly int GetHashCode(); public static bool operator ==(RealtimeAudioFormat left, RealtimeAudioFormat right); public static implicit operator RealtimeAudioFormat(string value); + public static implicit operator RealtimeAudioFormat?(string value); public static bool operator !=(RealtimeAudioFormat left, RealtimeAudioFormat right); public override readonly string ToString(); } @@ -4326,6 +4366,7 @@ public enum RealtimeUpdateKind { public override readonly int GetHashCode(); public static bool operator ==(ResponseConversationSelection left, ResponseConversationSelection right); public static implicit operator ResponseConversationSelection(string value); + public static implicit operator ResponseConversationSelection?(string value); public static bool operator !=(ResponseConversationSelection left, ResponseConversationSelection right); public override readonly string ToString(); } @@ -4367,6 +4408,7 @@ public class ResponseStartedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel, IPersistableModel, IPersistableModel, IP public override readonly int GetHashCode(); public static bool operator ==(ResponseReasoningSummaryVerbosity left, ResponseReasoningSummaryVerbosity right); public static implicit operator ResponseReasoningSummaryVerbosity(string value); + public static implicit operator ResponseReasoningSummaryVerbosity?(string value); public static bool operator !=(ResponseReasoningSummaryVerbosity left, ResponseReasoningSummaryVerbosity right); public override readonly string ToString(); } @@ -5139,6 +5188,7 @@ public enum ResponseToolChoiceKind { public override readonly int GetHashCode(); public static bool operator ==(ResponseTruncationMode left, ResponseTruncationMode right); public static implicit operator ResponseTruncationMode(string value); + public static implicit operator ResponseTruncationMode?(string value); public static bool operator !=(ResponseTruncationMode left, ResponseTruncationMode right); public override readonly string ToString(); } @@ -5406,6 +5456,7 @@ public enum WebSearchCallStatus { public override readonly int GetHashCode(); public static bool operator ==(WebSearchContextSize left, WebSearchContextSize right); public static implicit operator WebSearchContextSize(string value); + public static implicit operator WebSearchContextSize?(string value); public static bool operator !=(WebSearchContextSize left, WebSearchContextSize right); public override readonly string ToString(); } @@ -5542,6 +5593,7 @@ public class VectorStoreBatchFileJob : IJsonModel, IPer public override readonly int GetHashCode(); public static bool operator ==(VectorStoreBatchFileJobStatus left, VectorStoreBatchFileJobStatus right); public static implicit operator VectorStoreBatchFileJobStatus(string value); + public static implicit operator VectorStoreBatchFileJobStatus?(string value); public static bool operator !=(VectorStoreBatchFileJobStatus left, VectorStoreBatchFileJobStatus right); public override readonly string ToString(); } @@ -5638,6 +5690,7 @@ public class VectorStoreCollectionOptions { public override readonly int GetHashCode(); public static bool operator ==(VectorStoreCollectionOrder left, VectorStoreCollectionOrder right); public static implicit operator VectorStoreCollectionOrder(string value); + public static implicit operator VectorStoreCollectionOrder?(string value); public static bool operator !=(VectorStoreCollectionOrder left, VectorStoreCollectionOrder right); public override readonly string ToString(); } @@ -5737,6 +5790,7 @@ public class VectorStoreFileAssociationError : IJsonModel, IPersist public override readonly int GetHashCode(); public static bool operator ==(VectorStoreFileStatusFilter left, VectorStoreFileStatusFilter right); public static implicit operator VectorStoreFileStatusFilter(string value); + public static implicit operator VectorStoreFileStatusFilter?(string value); public static bool operator !=(VectorStoreFileStatusFilter left, VectorStoreFileStatusFilter right); public override readonly string ToString(); } diff --git a/api/OpenAI.netstandard2.0.cs b/api/OpenAI.netstandard2.0.cs index 2306f43be..4d5f6fe65 100644 --- a/api/OpenAI.netstandard2.0.cs +++ b/api/OpenAI.netstandard2.0.cs @@ -291,6 +291,7 @@ public class CodeInterpreterToolResources : IJsonModel, IPersist public override readonly int GetHashCode(); public static bool operator ==(MessageFailureReason left, MessageFailureReason right); public static implicit operator MessageFailureReason(string value); + public static implicit operator MessageFailureReason?(string value); public static bool operator !=(MessageFailureReason left, MessageFailureReason right); public override readonly string ToString(); } @@ -455,6 +457,7 @@ public enum MessageRole { public override readonly int GetHashCode(); public static bool operator ==(MessageStatus left, MessageStatus right); public static implicit operator MessageStatus(string value); + public static implicit operator MessageStatus?(string value); public static bool operator !=(MessageStatus left, MessageStatus right); public override readonly string ToString(); } @@ -531,6 +534,7 @@ public class RunError : IJsonModel, IPersistableModel { public override readonly int GetHashCode(); public static bool operator ==(RunErrorCode left, RunErrorCode right); public static implicit operator RunErrorCode(string value); + public static implicit operator RunErrorCode?(string value); public static bool operator !=(RunErrorCode left, RunErrorCode right); public override readonly string ToString(); } @@ -552,6 +556,7 @@ public class RunIncompleteDetails : IJsonModel, IPersistab public override readonly int GetHashCode(); public static bool operator ==(RunIncompleteReason left, RunIncompleteReason right); public static implicit operator RunIncompleteReason(string value); + public static implicit operator RunIncompleteReason?(string value); public static bool operator !=(RunIncompleteReason left, RunIncompleteReason right); public override readonly string ToString(); } @@ -581,6 +586,7 @@ public class RunModificationOptions : IJsonModel, IPersi public override readonly int GetHashCode(); public static bool operator ==(RunStatus left, RunStatus right); public static implicit operator RunStatus(string value); + public static implicit operator RunStatus?(string value); public static bool operator !=(RunStatus left, RunStatus right); public override readonly string ToString(); } @@ -673,6 +679,7 @@ public class RunStepError : IJsonModel, IPersistableModel, IPersistableMo public override readonly int GetHashCode(); public static bool operator ==(AudioTranscriptionFormat left, AudioTranscriptionFormat right); public static implicit operator AudioTranscriptionFormat(string value); + public static implicit operator AudioTranscriptionFormat?(string value); public static bool operator !=(AudioTranscriptionFormat left, AudioTranscriptionFormat right); public override readonly string ToString(); } @@ -1083,6 +1092,7 @@ public class AudioTranslation : IJsonModel, IPersistableModel< public override readonly int GetHashCode(); public static bool operator ==(AudioTranslationFormat left, AudioTranslationFormat right); public static implicit operator AudioTranslationFormat(string value); + public static implicit operator AudioTranslationFormat?(string value); public static bool operator !=(AudioTranslationFormat left, AudioTranslationFormat right); public override readonly string ToString(); } @@ -1110,6 +1120,7 @@ public class AudioTranslationOptions : IJsonModel, IPer public override readonly int GetHashCode(); public static bool operator ==(GeneratedSpeechFormat left, GeneratedSpeechFormat right); public static implicit operator GeneratedSpeechFormat(string value); + public static implicit operator GeneratedSpeechFormat?(string value); public static bool operator !=(GeneratedSpeechFormat left, GeneratedSpeechFormat right); public override readonly string ToString(); } @@ -1133,6 +1144,7 @@ public class AudioTranslationOptions : IJsonModel, IPer public override readonly int GetHashCode(); public static bool operator ==(GeneratedSpeechVoice left, GeneratedSpeechVoice right); public static implicit operator GeneratedSpeechVoice(string value); + public static implicit operator GeneratedSpeechVoice?(string value); public static bool operator !=(GeneratedSpeechVoice left, GeneratedSpeechVoice right); public override readonly string ToString(); } @@ -1186,6 +1198,7 @@ public class StreamingAudioTranscriptionUpdate : IJsonModel, IPersistableMo public override readonly int GetHashCode(); public static bool operator ==(ChatImageDetailLevel left, ChatImageDetailLevel right); public static implicit operator ChatImageDetailLevel(string value); + public static implicit operator ChatImageDetailLevel?(string value); public static bool operator !=(ChatImageDetailLevel left, ChatImageDetailLevel right); public override readonly string ToString(); } @@ -1496,6 +1512,7 @@ public class ChatFunctionChoice : IJsonModel, IPersistableMo public override readonly int GetHashCode(); public static bool operator ==(ChatInputAudioFormat left, ChatInputAudioFormat right); public static implicit operator ChatInputAudioFormat(string value); + public static implicit operator ChatInputAudioFormat?(string value); public static bool operator !=(ChatInputAudioFormat left, ChatInputAudioFormat right); public override readonly string ToString(); } @@ -1619,6 +1636,7 @@ public class ChatOutputAudio : IJsonModel, IPersistableModel, IP public override readonly int GetHashCode(); public static bool operator ==(ChatOutputAudioVoice left, ChatOutputAudioVoice right); public static implicit operator ChatOutputAudioVoice(string value); + public static implicit operator ChatOutputAudioVoice?(string value); public static bool operator !=(ChatOutputAudioVoice left, ChatOutputAudioVoice right); public override readonly string ToString(); } @@ -1683,6 +1702,7 @@ public class ChatOutputTokenUsageDetails : IJsonModel, IPersistableMode public override readonly int GetHashCode(); public static bool operator ==(FineTuningStatus left, FineTuningStatus right); public static implicit operator FineTuningStatus(string value); + public static implicit operator FineTuningStatus?(string value); public static bool operator !=(FineTuningStatus left, FineTuningStatus right); public override readonly string ToString(); } @@ -2649,6 +2672,7 @@ public class GraderStringCheck : Grader, IJsonModel, IPersist public override readonly int GetHashCode(); public static bool operator ==(GraderStringCheckOperation left, GraderStringCheckOperation right); public static implicit operator GraderStringCheckOperation(string value); + public static implicit operator GraderStringCheckOperation?(string value); public static bool operator !=(GraderStringCheckOperation left, GraderStringCheckOperation right); public override readonly string ToString(); } @@ -2682,6 +2706,7 @@ public class GraderTextSimilarity : Grader, IJsonModel, IP public override readonly int GetHashCode(); public static bool operator ==(GraderTextSimilarityEvaluationMetric left, GraderTextSimilarityEvaluationMetric right); public static implicit operator GraderTextSimilarityEvaluationMetric(string value); + public static implicit operator GraderTextSimilarityEvaluationMetric?(string value); public static bool operator !=(GraderTextSimilarityEvaluationMetric left, GraderTextSimilarityEvaluationMetric right); public override readonly string ToString(); } @@ -2700,6 +2725,7 @@ public class GraderTextSimilarity : Grader, IJsonModel, IP public override readonly int GetHashCode(); public static bool operator ==(GraderType left, GraderType right); public static implicit operator GraderType(string value); + public static implicit operator GraderType?(string value); public static bool operator !=(GraderType left, GraderType right); public override readonly string ToString(); } @@ -2798,6 +2824,7 @@ public class GeneratedImage : IJsonModel, IPersistableModel, IPer public override readonly int GetHashCode(); public static bool operator ==(ConversationContentPartKind left, ConversationContentPartKind right); public static implicit operator ConversationContentPartKind(string value); + public static implicit operator ConversationContentPartKind?(string value); public static bool operator !=(ConversationContentPartKind left, ConversationContentPartKind right); public override readonly string ToString(); } @@ -3168,6 +3201,7 @@ public class ConversationFunctionTool : ConversationTool, IJsonModel public override readonly int GetHashCode(); public static bool operator ==(InputTranscriptionModel left, InputTranscriptionModel right); public static implicit operator InputTranscriptionModel(string value); + public static implicit operator InputTranscriptionModel?(string value); public static bool operator !=(InputTranscriptionModel left, InputTranscriptionModel right); public override readonly string ToString(); } @@ -3643,6 +3683,7 @@ public class RateLimitsUpdate : RealtimeUpdate, IJsonModel, IP public override readonly int GetHashCode(); public static bool operator ==(RealtimeAudioFormat left, RealtimeAudioFormat right); public static implicit operator RealtimeAudioFormat(string value); + public static implicit operator RealtimeAudioFormat?(string value); public static bool operator !=(RealtimeAudioFormat left, RealtimeAudioFormat right); public override readonly string ToString(); } @@ -3801,6 +3842,7 @@ public enum RealtimeUpdateKind { public override readonly int GetHashCode(); public static bool operator ==(ResponseConversationSelection left, ResponseConversationSelection right); public static implicit operator ResponseConversationSelection(string value); + public static implicit operator ResponseConversationSelection?(string value); public static bool operator !=(ResponseConversationSelection left, ResponseConversationSelection right); public override readonly string ToString(); } @@ -3839,6 +3881,7 @@ public class ResponseStartedUpdate : RealtimeUpdate, IJsonModel, IPersistableModel, IPersistableModel, IPersistableModel, IP public override readonly int GetHashCode(); public static bool operator ==(ResponseReasoningSummaryVerbosity left, ResponseReasoningSummaryVerbosity right); public static implicit operator ResponseReasoningSummaryVerbosity(string value); + public static implicit operator ResponseReasoningSummaryVerbosity?(string value); public static bool operator !=(ResponseReasoningSummaryVerbosity left, ResponseReasoningSummaryVerbosity right); public override readonly string ToString(); } @@ -4543,6 +4593,7 @@ public enum ResponseToolChoiceKind { public override readonly int GetHashCode(); public static bool operator ==(ResponseTruncationMode left, ResponseTruncationMode right); public static implicit operator ResponseTruncationMode(string value); + public static implicit operator ResponseTruncationMode?(string value); public static bool operator !=(ResponseTruncationMode left, ResponseTruncationMode right); public override readonly string ToString(); } @@ -4782,6 +4833,7 @@ public enum WebSearchCallStatus { public override readonly int GetHashCode(); public static bool operator ==(WebSearchContextSize left, WebSearchContextSize right); public static implicit operator WebSearchContextSize(string value); + public static implicit operator WebSearchContextSize?(string value); public static bool operator !=(WebSearchContextSize left, WebSearchContextSize right); public override readonly string ToString(); } @@ -4908,6 +4960,7 @@ public class VectorStoreBatchFileJob : IJsonModel, IPer public override readonly int GetHashCode(); public static bool operator ==(VectorStoreBatchFileJobStatus left, VectorStoreBatchFileJobStatus right); public static implicit operator VectorStoreBatchFileJobStatus(string value); + public static implicit operator VectorStoreBatchFileJobStatus?(string value); public static bool operator !=(VectorStoreBatchFileJobStatus left, VectorStoreBatchFileJobStatus right); public override readonly string ToString(); } @@ -5001,6 +5054,7 @@ public class VectorStoreCollectionOptions { public override readonly int GetHashCode(); public static bool operator ==(VectorStoreCollectionOrder left, VectorStoreCollectionOrder right); public static implicit operator VectorStoreCollectionOrder(string value); + public static implicit operator VectorStoreCollectionOrder?(string value); public static bool operator !=(VectorStoreCollectionOrder left, VectorStoreCollectionOrder right); public override readonly string ToString(); } @@ -5091,6 +5145,7 @@ public class VectorStoreFileAssociationError : IJsonModel, IPersist public override readonly int GetHashCode(); public static bool operator ==(VectorStoreFileStatusFilter left, VectorStoreFileStatusFilter right); public static implicit operator VectorStoreFileStatusFilter(string value); + public static implicit operator VectorStoreFileStatusFilter?(string value); public static bool operator !=(VectorStoreFileStatusFilter left, VectorStoreFileStatusFilter right); public override readonly string ToString(); } diff --git a/codegen/generator/src/OpenAI.Library.Plugin.csproj b/codegen/generator/src/OpenAI.Library.Plugin.csproj index 2eb08f6e7..869603005 100644 --- a/codegen/generator/src/OpenAI.Library.Plugin.csproj +++ b/codegen/generator/src/OpenAI.Library.Plugin.csproj @@ -8,7 +8,7 @@ - + diff --git a/codegen/generator/src/Visitors/OmittedTypesVisitor.cs b/codegen/generator/src/Visitors/OmittedTypesVisitor.cs index 26c41e1c3..a1ca8b61d 100644 --- a/codegen/generator/src/Visitors/OmittedTypesVisitor.cs +++ b/codegen/generator/src/Visitors/OmittedTypesVisitor.cs @@ -1,5 +1,7 @@ using Microsoft.TypeSpec.Generator.ClientModel; +using Microsoft.TypeSpec.Generator.Expressions; using Microsoft.TypeSpec.Generator.Providers; +using Microsoft.TypeSpec.Generator.Statements; using System.Collections.Generic; using System.Linq; @@ -20,10 +22,29 @@ public class OmittedTypesVisitor : ScmLibraryVisitor protected override TypeProvider? VisitType(TypeProvider type) { - if (TypeNamesToOmit.Any(typeName => type.Name == typeName)) + // Strip buildable attributes for omitted types from OpenAIContext + if (type.Name == "OpenAIContext") { - return null; + var filtered = new List(type.Attributes.Count); + foreach (var a in type.Attributes) + { + bool drop = + a.Type.Name == "ModelReaderWriterBuildableAttribute" && + a.Arguments.Count == 1 && + a.Arguments[0] is TypeOfExpression tof && + TypeNamesToOmit.Contains(tof.Type.Name); + + if (!drop) filtered.Add(a); + } + + if (filtered.Count != type.Attributes.Count) + type.Update(attributes: filtered); } - return type; + + // Omit the types themselves + if (TypeNamesToOmit.Contains(type.Name)) + return null; + + return base.VisitType(type); } } \ No newline at end of file diff --git a/codegen/package.json b/codegen/package.json index 7013663a4..c3653c9cc 100644 --- a/codegen/package.json +++ b/codegen/package.json @@ -29,8 +29,11 @@ ], "dependencies": { "@open-ai/plugin": "file:", - "@azure-tools/typespec-client-generator-core": "~0.57.0", - "@typespec/http-client-csharp": "1.0.0-alpha.20250626.7" + "@azure-tools/typespec-client-generator-core": "0.57.2", + "@azure-tools/typespec-azure-core": "0.57.0", + "@typespec/http-client-csharp": "1.0.0-alpha.20250722.1", + "@typespec/http": "1.1.0", + "@typespec/openapi": "1.1.0" }, "devDependencies": { "@types/node": "^22.8.1", diff --git a/package-lock.json b/package-lock.json index f7850543d..cc5c4e631 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,9 +11,7 @@ "codegen" ], "dependencies": { - "@open-ai/plugin": "file:codegen", - "@typespec/openapi3": "^1.0.0", - "openai-tsp": "file:" + "@open-ai/plugin": "file:codegen" } }, "codegen": { @@ -21,9 +19,12 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "@azure-tools/typespec-client-generator-core": "~0.57.0", + "@azure-tools/typespec-azure-core": "0.57.0", + "@azure-tools/typespec-client-generator-core": "0.57.2", "@open-ai/plugin": "file:", - "@typespec/http-client-csharp": "1.0.0-alpha.20250626.7" + "@typespec/http": "1.1.0", + "@typespec/http-client-csharp": "1.0.0-alpha.20250722.1", + "@typespec/openapi": "1.1.0" }, "devDependencies": { "@types/node": "^22.8.1", @@ -50,62 +51,11 @@ "node": ">=6.0.0" } }, - "node_modules/@apidevtools/json-schema-ref-parser": { - "version": "11.7.2", - "resolved": "https://registry.npmjs.org/@apidevtools/json-schema-ref-parser/-/json-schema-ref-parser-11.7.2.tgz", - "integrity": "sha512-4gY54eEGEstClvEkGnwVkTkrx0sqwemEFG5OSRRn3tD91XH0+Q8XIkYIfo7IwEWPpJZwILb9GUXeShtplRc/eA==", - "license": "MIT", - "dependencies": { - "@jsdevtools/ono": "^7.1.3", - "@types/json-schema": "^7.0.15", - "js-yaml": "^4.1.0" - }, - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://github.com/sponsors/philsturgeon" - } - }, - "node_modules/@apidevtools/openapi-schemas": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@apidevtools/openapi-schemas/-/openapi-schemas-2.1.0.tgz", - "integrity": "sha512-Zc1AlqrJlX3SlpupFGpiLi2EbteyP7fXmUOGup6/DnkRgjP9bgMM/ag+n91rsv0U1Gpz0H3VILA/o3bW7Ua6BQ==", - "license": "MIT", - "engines": { - "node": ">=10" - } - }, - "node_modules/@apidevtools/swagger-methods": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/@apidevtools/swagger-methods/-/swagger-methods-3.0.2.tgz", - "integrity": "sha512-QAkD5kK2b1WfjDS/UQn/qQkbwF31uqRjPTrsCs5ZG9BQGAkjwvqGFjjPqAuzac/IYzpPtRzjCP1WrTuAIjMrXg==", - "license": "MIT" - }, - "node_modules/@apidevtools/swagger-parser": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/@apidevtools/swagger-parser/-/swagger-parser-10.1.1.tgz", - "integrity": "sha512-u/kozRnsPO/x8QtKYJOqoGtC4kH6yg1lfYkB9Au0WhYB0FNLpyFusttQtvhlwjtG3rOwiRz4D8DnnXa8iEpIKA==", - "license": "MIT", - "dependencies": { - "@apidevtools/json-schema-ref-parser": "11.7.2", - "@apidevtools/openapi-schemas": "^2.1.0", - "@apidevtools/swagger-methods": "^3.0.2", - "@jsdevtools/ono": "^7.1.3", - "ajv": "^8.17.1", - "ajv-draft-04": "^1.0.0", - "call-me-maybe": "^1.0.2" - }, - "peerDependencies": { - "openapi-types": ">=7" - } - }, "node_modules/@azure-tools/typespec-azure-core": { "version": "0.57.0", "resolved": "https://registry.npmjs.org/@azure-tools/typespec-azure-core/-/typespec-azure-core-0.57.0.tgz", "integrity": "sha512-O+F3axrJOJHjYGrQLRWoydHtWjWiXeAlaaILncS0I0xe6kinyFkpn7VIVKxH9ZZ+hPmkDAZybO53656R3PRfUA==", "license": "MIT", - "peer": true, "engines": { "node": ">=20.0.0" }, @@ -116,14 +66,14 @@ } }, "node_modules/@azure-tools/typespec-client-generator-core": { - "version": "0.57.1", - "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.57.1.tgz", - "integrity": "sha512-R91xwSVDQrAf7wk/u2aJDz/zthGjp+RpziVbFeg4+u4BdPP1+fY4WwXCb3wG4fF8GdlkvYZAE0q+HVPsu15gYg==", + "version": "0.57.2", + "resolved": "https://registry.npmjs.org/@azure-tools/typespec-client-generator-core/-/typespec-client-generator-core-0.57.2.tgz", + "integrity": "sha512-/HPdsWAO5aRolTf9pOa1ZFIDpKhi22oZmNj7ypHTjntSJh7bn3Q6tw9J/10n4eyvkUElLVqa691fODfeIZH/qA==", "license": "MIT", "dependencies": { "change-case": "~5.4.4", "pluralize": "^8.0.0", - "yaml": "~2.7.0" + "yaml": "~2.8.0" }, "engines": { "node": ">=20.0.0" @@ -141,6 +91,18 @@ "@typespec/xml": "^0.71.0" } }, + "node_modules/@azure-tools/typespec-client-generator-core/node_modules/yaml": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.8.1.tgz", + "integrity": "sha512-lcYcMxX2PO9XMGvAJkJ3OsNMw+/7FKes7/hgerGUYWIoWu5j/+YQqcZr5JnPZWzOsEBgMbSbiSTn/dv/69Mkpw==", + "license": "ISC", + "bin": { + "yaml": "bin.mjs" + }, + "engines": { + "node": ">= 14.6" + } + }, "node_modules/@babel/code-frame": { "version": "7.27.1", "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz", @@ -1113,12 +1075,6 @@ "@jridgewell/sourcemap-codec": "^1.4.14" } }, - "node_modules/@jsdevtools/ono": { - "version": "7.1.3", - "resolved": "https://registry.npmjs.org/@jsdevtools/ono/-/ono-7.1.3.tgz", - "integrity": "sha512-4JQNk+3mVzK3xh2rqd6RB4J46qUR19azEHBneZyTZM+c456qOrbbM/5xcR8huNCCcbVt7+UmizG6GuUvPvKUYg==", - "license": "MIT" - }, "node_modules/@nodelib/fs.scandir": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz", @@ -1490,12 +1446,6 @@ "dev": true, "license": "MIT" }, - "node_modules/@types/json-schema": { - "version": "7.0.15", - "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz", - "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==", - "license": "MIT" - }, "node_modules/@types/node": { "version": "22.15.33", "resolved": "https://registry.npmjs.org/@types/node/-/node-22.15.33.tgz", @@ -1506,18 +1456,6 @@ "undici-types": "~6.21.0" } }, - "node_modules/@typespec/asset-emitter": { - "version": "0.71.0", - "resolved": "https://registry.npmjs.org/@typespec/asset-emitter/-/asset-emitter-0.71.0.tgz", - "integrity": "sha512-wXDF2kbEPTJksv16mzcEyaz97PUxz1xH/Bl4OFSnvwE5xC1hkb0uKQ2nsunnu4yFzbz6Jmn7aoxM1WlYR5PzkA==", - "license": "MIT", - "engines": { - "node": ">=20.0.0" - }, - "peerDependencies": { - "@typespec/compiler": "^1.1.0" - } - }, "node_modules/@typespec/compiler": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/@typespec/compiler/-/compiler-1.1.0.tgz", @@ -1569,7 +1507,6 @@ "resolved": "https://registry.npmjs.org/@typespec/http/-/http-1.1.0.tgz", "integrity": "sha512-1doVGmkv3N8l57fVuci4jGMZ61EZBlDzuNZO2b9o0+mexCOs/P96CIpFkaNVvTQgjpyFsW1DlXiUKAvUC9zQfg==", "license": "MIT", - "peer": true, "engines": { "node": ">=20.0.0" }, @@ -1584,9 +1521,9 @@ } }, "node_modules/@typespec/http-client-csharp": { - "version": "1.0.0-alpha.20250626.7", - "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250626.7.tgz", - "integrity": "sha512-aYtA/g3UaHEVjFG1290BcHB4hw8z6ZSwa0bEBjbwlhprW3vV6KKP0J11ONFllMHX7I5skpdj9jNRrBJuZyeuKg==", + "version": "1.0.0-alpha.20250722.1", + "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250722.1.tgz", + "integrity": "sha512-dKcFGXM+Bm0iJdmdTFCQwrNyI9RQ5XwIyXpRI15z/zbLL7qdrbO9cyp1IP2H0A7jI6/rdfkMaKv6m9KTAgi/wA==", "license": "MIT", "peerDependencies": { "@azure-tools/typespec-azure-core": ">=0.57.0 <0.58.0 || ~0.58.0-0", @@ -1603,7 +1540,6 @@ "resolved": "https://registry.npmjs.org/@typespec/openapi/-/openapi-1.1.0.tgz", "integrity": "sha512-HPvrpSS7eSVk3fEkWndcDTrAZssWRYv3FyDTqVqljildc7FAiXdo88+r5CCK8endmgIrES7uJdHLkcIGUZx1pg==", "license": "MIT", - "peer": true, "engines": { "node": ">=20.0.0" }, @@ -1612,42 +1548,6 @@ "@typespec/http": "^1.1.0" } }, - "node_modules/@typespec/openapi3": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@typespec/openapi3/-/openapi3-1.1.0.tgz", - "integrity": "sha512-+1Ue7+M/PkNX54H6SJAym5ONHzlW7s5ZnA4fCH5jwKvalvI94stMvefOpd8FAesJDVmXc3wZ0kiqYo5EuMTjOQ==", - "license": "MIT", - "dependencies": { - "@apidevtools/swagger-parser": "~10.1.1", - "@typespec/asset-emitter": "^0.71.0", - "openapi-types": "~12.1.3", - "yaml": "~2.7.0" - }, - "bin": { - "tsp-openapi3": "cmd/tsp-openapi3.js" - }, - "engines": { - "node": ">=20.0.0" - }, - "peerDependencies": { - "@typespec/compiler": "^1.1.0", - "@typespec/http": "^1.1.0", - "@typespec/json-schema": "^1.1.0", - "@typespec/openapi": "^1.1.0", - "@typespec/versioning": "^0.71.0" - }, - "peerDependenciesMeta": { - "@typespec/json-schema": { - "optional": true - }, - "@typespec/versioning": { - "optional": true - }, - "@typespec/xml": { - "optional": true - } - } - }, "node_modules/@typespec/rest": { "version": "0.71.0", "resolved": "https://registry.npmjs.org/@typespec/rest/-/rest-0.71.0.tgz", @@ -1901,6 +1801,7 @@ "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.17.1.tgz", "integrity": "sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==", "license": "MIT", + "peer": true, "dependencies": { "fast-deep-equal": "^3.1.3", "fast-uri": "^3.0.1", @@ -1912,20 +1813,6 @@ "url": "https://github.com/sponsors/epoberezkin" } }, - "node_modules/ajv-draft-04": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/ajv-draft-04/-/ajv-draft-04-1.0.0.tgz", - "integrity": "sha512-mv00Te6nmYbRp5DCwclxtt7yV/joXJPGS7nM+97GdxvuttCOfgI3K4U25zboyeX0O+myI8ERluxQe5wljMmVIw==", - "license": "MIT", - "peerDependencies": { - "ajv": "^8.5.0" - }, - "peerDependenciesMeta": { - "ajv": { - "optional": true - } - } - }, "node_modules/ansi-escapes": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz", @@ -1966,12 +1853,6 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, - "node_modules/argparse": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz", - "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==", - "license": "Python-2.0" - }, "node_modules/assertion-error": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/assertion-error/-/assertion-error-1.1.0.tgz", @@ -2048,12 +1929,6 @@ "node": ">=8" } }, - "node_modules/call-me-maybe": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/call-me-maybe/-/call-me-maybe-1.0.2.tgz", - "integrity": "sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ==", - "license": "MIT" - }, "node_modules/chai": { "version": "4.5.0", "resolved": "https://registry.npmjs.org/chai/-/chai-4.5.0.tgz", @@ -2471,7 +2346,8 @@ "version": "3.1.3", "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==", - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/fast-glob": { "version": "3.3.3", @@ -2503,7 +2379,8 @@ "url": "https://opencollective.com/fastify" } ], - "license": "BSD-3-Clause" + "license": "BSD-3-Clause", + "peer": true }, "node_modules/fastq": { "version": "1.19.1", @@ -2908,23 +2785,12 @@ "license": "MIT", "peer": true }, - "node_modules/js-yaml": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", - "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==", - "license": "MIT", - "dependencies": { - "argparse": "^2.0.1" - }, - "bin": { - "js-yaml": "bin/js-yaml.js" - } - }, "node_modules/json-schema-traverse": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz", "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==", - "license": "MIT" + "license": "MIT", + "peer": true }, "node_modules/local-pkg": { "version": "0.5.1", @@ -3249,16 +3115,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/openai-tsp": { - "resolved": "", - "link": true - }, - "node_modules/openapi-types": { - "version": "12.1.3", - "resolved": "https://registry.npmjs.org/openapi-types/-/openapi-types-12.1.3.tgz", - "integrity": "sha512-N4YtSYJqghVu4iek2ZUvcN/0aqH1kRDuNqzcycDxhOUpg7GdvLa2F3DgS6yBNhInhv2r/6I0Flkn7CqL8+nIcw==", - "license": "MIT" - }, "node_modules/os-tmpdir": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", @@ -3565,6 +3421,7 @@ "resolved": "https://registry.npmjs.org/require-from-string/-/require-from-string-2.0.2.tgz", "integrity": "sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==", "license": "MIT", + "peer": true, "engines": { "node": ">=0.10.0" } @@ -4491,6 +4348,7 @@ "resolved": "https://registry.npmjs.org/yaml/-/yaml-2.7.1.tgz", "integrity": "sha512-10ULxpnOCQXxJvBgxsn9ptjq6uviG/htZKk9veJGhlqn3w/DxQ631zFF+nlQXLwmImeS5amR2dl2U8sg6U9jsQ==", "license": "ISC", + "peer": true, "bin": { "yaml": "bin.mjs" }, diff --git a/package.json b/package.json index 391563d4c..aab5906fa 100644 --- a/package.json +++ b/package.json @@ -6,9 +6,7 @@ "version": "0.1.0", "type": "module", "dependencies": { - "@typespec/openapi3": "^1.0.0", - "@open-ai/plugin": "file:codegen", - "openai-tsp": "file:" + "@open-ai/plugin": "file:codegen" }, "private": true } \ No newline at end of file diff --git a/src/Custom/OpenAIContext.cs b/src/Custom/OpenAIContext.cs deleted file mode 100644 index 5937afb63..000000000 --- a/src/Custom/OpenAIContext.cs +++ /dev/null @@ -1,267 +0,0 @@ -#nullable disable - -using System.ClientModel.Internal; -using System.ClientModel.Primitives; -using System.Diagnostics.CodeAnalysis; - -namespace OpenAI -{ - [Experimental("OPENAI001")] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.Assistant))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.AssistantChatMessage))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.AssistantCreationOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.AssistantDeletionResult))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.AssistantModificationOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.AssistantResponseFormat))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.AssistantThread))] - [ModelReaderWriterBuildable(typeof(OpenAI.Audio.AudioTokenLogProbabilityDetails))] - [ModelReaderWriterBuildable(typeof(OpenAI.Audio.AudioTranscription))] - [ModelReaderWriterBuildable(typeof(OpenAI.Audio.AudioTranscriptionOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Audio.AudioTranslation))] - [ModelReaderWriterBuildable(typeof(OpenAI.Audio.AudioTranslationOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatAudioOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatCompletion))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatCompletionDeletionResult))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatCompletionOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatFunction))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatFunctionCall))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatFunctionChoice))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatInputTokenUsageDetails))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatMessage))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatMessageAnnotation))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatMessageContentPart))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatOutputAudio))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatOutputAudioReference))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatOutputPrediction))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatOutputTokenUsageDetails))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatResponseFormat))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatTokenLogProbabilityDetails))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatTokenTopLogProbabilityDetails))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatTokenUsage))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatTool))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatToolCall))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatToolChoice))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ChatWebSearchOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.CodeInterpreterToolDefinition))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.CodeInterpreterToolResources))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ComputerCallAction))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ComputerCallOutputResponseItem))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ComputerCallResponseItem))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ComputerCallSafetyCheck))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ComputerOutput))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ConversationContentPart))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ConversationFunctionTool))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ConversationInputTokenUsageDetails))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ConversationMaxTokensChoice))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ConversationOutputTokenUsageDetails))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ConversationRateLimitDetailsItem))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ConversationResponseOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ConversationSessionConfiguredUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ConversationSessionOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ConversationSessionStartedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ConversationStatusDetails))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ConversationTokenUsage))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ConversationTool))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ConversationToolChoice))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.DeveloperChatMessage))] - [ModelReaderWriterBuildable(typeof(OpenAI.Embeddings.EmbeddingGenerationOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Embeddings.EmbeddingTokenUsage))] - [ModelReaderWriterBuildable(typeof(OpenAI.VectorStores.FileChunkingStrategy))] - [ModelReaderWriterBuildable(typeof(OpenAI.Files.FileDeletionResult))] - [ModelReaderWriterBuildable(typeof(OpenAI.VectorStores.FileFromStoreRemovalResult))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.FileSearchCallResponseItem))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.FileSearchCallResult))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.FileSearchRankingOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.FileSearchToolDefinition))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.FileSearchToolRankingOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.FileSearchToolResources))] - [ModelReaderWriterBuildable(typeof(OpenAI.FineTuning.FineTuningCheckpoint))] - [ModelReaderWriterBuildable(typeof(OpenAI.FineTuning.FineTuningCheckpointMetrics))] - [ModelReaderWriterBuildable(typeof(OpenAI.FineTuning.FineTuningError))] - [ModelReaderWriterBuildable(typeof(OpenAI.FineTuning.FineTuningEvent))] - [ModelReaderWriterBuildable(typeof(OpenAI.FineTuning.FineTuningIntegration))] - [ModelReaderWriterBuildable(typeof(OpenAI.FineTuning.FineTuningIntegrationWandbWandb))] - [ModelReaderWriterBuildable(typeof(OpenAI.FineTuning.FineTuningOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.FineTuning.FineTuningTrainingMethod))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.FunctionCallOutputResponseItem))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.FunctionCallResponseItem))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.FunctionChatMessage))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.FunctionToolDefinition))] - [ModelReaderWriterBuildable(typeof(OpenAI.Images.GeneratedImage))] - [ModelReaderWriterBuildable(typeof(OpenAI.Images.GeneratedImageCollection))] - [ModelReaderWriterBuildable(typeof(OpenAI.FineTuning.HyperparameterOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.FineTuning.HyperparametersForDPO))] - [ModelReaderWriterBuildable(typeof(OpenAI.FineTuning.HyperparametersForSupervised))] - [ModelReaderWriterBuildable(typeof(OpenAI.Images.ImageEditOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Images.ImageGenerationOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Images.ImageInputTokenUsageDetails))] - [ModelReaderWriterBuildable(typeof(OpenAI.Images.ImageTokenUsage))] - [ModelReaderWriterBuildable(typeof(OpenAI.Images.ImageVariationOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.InputAudioClearedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.InputAudioCommittedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.InputAudioSpeechFinishedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.InputAudioSpeechStartedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.InputAudioTranscriptionDeltaUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.InputAudioTranscriptionFailedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.InputAudioTranscriptionFinishedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.InputNoiseReductionOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.InputTranscriptionOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ItemCreatedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ItemDeletedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ItemRetrievedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ItemTruncatedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.MessageContent))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.MessageCreationAttachment))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.MessageCreationOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.MessageDeletionResult))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.MessageFailureDetails))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.MessageModificationOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.MessageResponseItem))] - [ModelReaderWriterBuildable(typeof(OpenAI.Models.ModelDeletionResult))] - [ModelReaderWriterBuildable(typeof(OpenAI.Moderations.ModerationOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Moderations.ModerationResult))] - [ModelReaderWriterBuildable(typeof(OpenAI.Moderations.ModerationResultCollection))] - [ModelReaderWriterBuildable(typeof(OpenAI.Embeddings.OpenAIEmbedding))] - [ModelReaderWriterBuildable(typeof(OpenAI.Embeddings.OpenAIEmbeddingCollection))] - [ModelReaderWriterBuildable(typeof(OpenAI.Internal.OpenAIError))] - [ModelReaderWriterBuildable(typeof(OpenAI.Internal.OpenAIErrorResponse))] - [ModelReaderWriterBuildable(typeof(OpenAI.Files.OpenAIFile))] - [ModelReaderWriterBuildable(typeof(OpenAI.Files.OpenAIFileCollection))] - [ModelReaderWriterBuildable(typeof(OpenAI.Models.OpenAIModel))] - [ModelReaderWriterBuildable(typeof(OpenAI.Models.OpenAIModelCollection))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.OpenAIResponse))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.OutputAudioFinishedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.OutputAudioTranscriptionFinishedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.OutputDeltaUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.OutputPartFinishedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.OutputStreamingFinishedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.OutputStreamingStartedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.OutputTextFinishedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.RateLimitsUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.RealtimeErrorUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.RealtimeItem))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.RealtimeUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ReasoningResponseItem))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ReasoningSummaryPart))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ReasoningSummaryTextPart))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ReferenceResponseItem))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ResponseContentPart))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ResponseCreationOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ResponseDeletionResult))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ResponseError))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ResponseFinishedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ResponseIncompleteStatusDetails))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ResponseInputTokenUsageDetails))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ResponseItem))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ResponseMessageAnnotation))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ResponseOutputTokenUsageDetails))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ResponseReasoningOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.ResponseStartedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ResponseTextFormat))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ResponseTextOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ResponseTokenUsage))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ResponseTool))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.ResponseToolChoice))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.RunCreationOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.RunError))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.RunIncompleteDetails))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.RunModificationOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.RunStep))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.RunStepCodeInterpreterOutput))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.RunStepDetails))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.RunStepError))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.RunStepFileSearchResult))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.RunStepFileSearchResultContent))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.RunStepTokenUsage))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.RunStepToolCall))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.RunStepUpdateCodeInterpreterOutput))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.RunTokenUsage))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.RunTruncationStrategy))] - [ModelReaderWriterBuildable(typeof(OpenAI.Audio.SpeechGenerationOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.VectorStores.StaticFileChunkingStrategy))] - [ModelReaderWriterBuildable(typeof(OpenAI.Audio.StreamingAudioTranscriptionTextDeltaUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Audio.StreamingAudioTranscriptionTextDoneUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Audio.StreamingAudioTranscriptionUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.StreamingChatCompletionUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.StreamingChatFunctionCallUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.StreamingChatOutputAudioUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.StreamingChatToolCallUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseCompletedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseContentPartAddedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseContentPartDoneUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseCreatedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseErrorUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseFailedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseFileSearchCallCompletedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseFileSearchCallInProgressUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseFileSearchCallSearchingUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseFunctionCallArgumentsDeltaUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseFunctionCallArgumentsDoneUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseIncompleteUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseInProgressUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseOutputItemAddedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseOutputItemDoneUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseOutputTextDeltaUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseOutputTextDoneUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseQueuedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseRefusalDeltaUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseRefusalDoneUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseTextAnnotationAddedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseWebSearchCallCompletedUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseWebSearchCallInProgressUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.StreamingResponseWebSearchCallSearchingUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.SystemChatMessage))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.ThreadCreationOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.ThreadDeletionResult))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.ThreadMessage))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.ThreadModificationOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.ThreadRun))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.ToolChatMessage))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.ToolConstraint))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.ToolDefinition))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.ToolOutput))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.ToolResources))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.TranscriptionSessionConfiguredUpdate))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.TranscriptionSessionOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.TurnDetectionOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.UnknownAssistantToolDefinition))] - [ModelReaderWriterBuildable(typeof(OpenAI.FineTuning.UnknownCreateFineTuningJobRequestIntegration))] - [ModelReaderWriterBuildable(typeof(OpenAI.FineTuning.UnknownFineTuningIntegration))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.UnknownMessageContentTextObjectAnnotation))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.UnknownMessageDeltaContent))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.UnknownMessageDeltaTextContentAnnotation))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.UnknownRealtimeClientEvent))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.UnknownRealtimeContentPart))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.UnknownRealtimeRequestItem))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.UnknownRealtimeRequestMessageItem))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.UnknownRealtimeResponseItem))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.UnknownRealtimeServerEvent))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.UnknownRealtimeTool))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.UnknownRealtimeToolChoiceObject))] - [ModelReaderWriterBuildable(typeof(OpenAI.Realtime.UnknownRealtimeTurnDetection))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.UnknownResponseStreamEvent))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.UnknownRunStepDeltaStepDetails))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.UnknownRunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.UnknownRunStepDeltaStepDetailsToolCallsObjectToolCallsObject))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.UnknownRunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.UnknownRunStepDetailsToolCallsObjectToolCallsObject))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.UnknownRunStepObjectStepDetails))] - [ModelReaderWriterBuildable(typeof(OpenAI.Chat.UserChatMessage))] - [ModelReaderWriterBuildable(typeof(OpenAI.VectorStores.VectorStore))] - [ModelReaderWriterBuildable(typeof(OpenAI.VectorStores.VectorStoreBatchFileJob))] - [ModelReaderWriterBuildable(typeof(OpenAI.Assistants.VectorStoreCreationHelper))] - [ModelReaderWriterBuildable(typeof(OpenAI.VectorStores.VectorStoreCreationOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.VectorStores.VectorStoreDeletionResult))] - [ModelReaderWriterBuildable(typeof(OpenAI.VectorStores.VectorStoreExpirationPolicy))] - [ModelReaderWriterBuildable(typeof(OpenAI.VectorStores.VectorStoreFileAssociation))] - [ModelReaderWriterBuildable(typeof(OpenAI.VectorStores.VectorStoreFileAssociationError))] - [ModelReaderWriterBuildable(typeof(OpenAI.VectorStores.VectorStoreFileCounts))] - [ModelReaderWriterBuildable(typeof(OpenAI.VectorStores.VectorStoreModificationOptions))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.WebSearchCallResponseItem))] - [ModelReaderWriterBuildable(typeof(OpenAI.Responses.WebSearchUserLocation))] - [ModelReaderWriterBuildable(typeof(OpenAI.FineTuning.WeightsAndBiasesIntegration))] - public partial class OpenAIContext - { - } -} diff --git a/src/Generated/Models/Assistants/FileSearchRanker.cs b/src/Generated/Models/Assistants/FileSearchRanker.cs index 1397571c0..a2f6cdd2f 100644 --- a/src/Generated/Models/Assistants/FileSearchRanker.cs +++ b/src/Generated/Models/Assistants/FileSearchRanker.cs @@ -33,6 +33,8 @@ public FileSearchRanker(string value) public static implicit operator FileSearchRanker(string value) => new FileSearchRanker(value); + public static implicit operator FileSearchRanker?(string value) => value == null ? null : new FileSearchRanker(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is FileSearchRanker other && Equals(other); diff --git a/src/Generated/Models/Assistants/InternalAssistantSupportedModels.cs b/src/Generated/Models/Assistants/InternalAssistantSupportedModels.cs index 861194072..f6342b535 100644 --- a/src/Generated/Models/Assistants/InternalAssistantSupportedModels.cs +++ b/src/Generated/Models/Assistants/InternalAssistantSupportedModels.cs @@ -133,6 +133,8 @@ public InternalAssistantSupportedModels(string value) public static implicit operator InternalAssistantSupportedModels(string value) => new InternalAssistantSupportedModels(value); + public static implicit operator InternalAssistantSupportedModels?(string value) => value == null ? null : new InternalAssistantSupportedModels(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalAssistantSupportedModels other && Equals(other); diff --git a/src/Generated/Models/Assistants/InternalAssistantToolDefinitionType.cs b/src/Generated/Models/Assistants/InternalAssistantToolDefinitionType.cs index e3b92b801..888d93adf 100644 --- a/src/Generated/Models/Assistants/InternalAssistantToolDefinitionType.cs +++ b/src/Generated/Models/Assistants/InternalAssistantToolDefinitionType.cs @@ -34,6 +34,8 @@ public InternalAssistantToolDefinitionType(string value) public static implicit operator InternalAssistantToolDefinitionType(string value) => new InternalAssistantToolDefinitionType(value); + public static implicit operator InternalAssistantToolDefinitionType?(string value) => value == null ? null : new InternalAssistantToolDefinitionType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalAssistantToolDefinitionType other && Equals(other); diff --git a/src/Generated/Models/Assistants/InternalAssistantsNamedToolChoiceType.cs b/src/Generated/Models/Assistants/InternalAssistantsNamedToolChoiceType.cs index 0ef9c9c7d..c19460440 100644 --- a/src/Generated/Models/Assistants/InternalAssistantsNamedToolChoiceType.cs +++ b/src/Generated/Models/Assistants/InternalAssistantsNamedToolChoiceType.cs @@ -34,6 +34,8 @@ public InternalAssistantsNamedToolChoiceType(string value) public static implicit operator InternalAssistantsNamedToolChoiceType(string value) => new InternalAssistantsNamedToolChoiceType(value); + public static implicit operator InternalAssistantsNamedToolChoiceType?(string value) => value == null ? null : new InternalAssistantsNamedToolChoiceType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalAssistantsNamedToolChoiceType other && Equals(other); diff --git a/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequestModel.cs b/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequestModel.cs index d9aa2f1ef..93c10a07d 100644 --- a/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequestModel.cs +++ b/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequestModel.cs @@ -121,6 +121,8 @@ public InternalCreateThreadAndRunRequestModel(string value) public static implicit operator InternalCreateThreadAndRunRequestModel(string value) => new InternalCreateThreadAndRunRequestModel(value); + public static implicit operator InternalCreateThreadAndRunRequestModel?(string value) => value == null ? null : new InternalCreateThreadAndRunRequestModel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateThreadAndRunRequestModel other && Equals(other); diff --git a/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequestToolChoice.cs b/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequestToolChoice.cs index aed6de1ca..262138c3e 100644 --- a/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequestToolChoice.cs +++ b/src/Generated/Models/Assistants/InternalCreateThreadAndRunRequestToolChoice.cs @@ -34,6 +34,8 @@ public InternalCreateThreadAndRunRequestToolChoice(string value) public static implicit operator InternalCreateThreadAndRunRequestToolChoice(string value) => new InternalCreateThreadAndRunRequestToolChoice(value); + public static implicit operator InternalCreateThreadAndRunRequestToolChoice?(string value) => value == null ? null : new InternalCreateThreadAndRunRequestToolChoice(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateThreadAndRunRequestToolChoice other && Equals(other); diff --git a/src/Generated/Models/Assistants/InternalIncludedRunStepProperty.cs b/src/Generated/Models/Assistants/InternalIncludedRunStepProperty.cs index 6ea802fa4..a2452de75 100644 --- a/src/Generated/Models/Assistants/InternalIncludedRunStepProperty.cs +++ b/src/Generated/Models/Assistants/InternalIncludedRunStepProperty.cs @@ -28,6 +28,8 @@ public InternalIncludedRunStepProperty(string value) public static implicit operator InternalIncludedRunStepProperty(string value) => new InternalIncludedRunStepProperty(value); + public static implicit operator InternalIncludedRunStepProperty?(string value) => value == null ? null : new InternalIncludedRunStepProperty(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalIncludedRunStepProperty other && Equals(other); diff --git a/src/Generated/Models/Assistants/InternalMessageContentImageFileObjectImageFileDetail.cs b/src/Generated/Models/Assistants/InternalMessageContentImageFileObjectImageFileDetail.cs index ced090438..7d9fa906e 100644 --- a/src/Generated/Models/Assistants/InternalMessageContentImageFileObjectImageFileDetail.cs +++ b/src/Generated/Models/Assistants/InternalMessageContentImageFileObjectImageFileDetail.cs @@ -34,6 +34,8 @@ public InternalMessageContentImageFileObjectImageFileDetail(string value) public static implicit operator InternalMessageContentImageFileObjectImageFileDetail(string value) => new InternalMessageContentImageFileObjectImageFileDetail(value); + public static implicit operator InternalMessageContentImageFileObjectImageFileDetail?(string value) => value == null ? null : new InternalMessageContentImageFileObjectImageFileDetail(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalMessageContentImageFileObjectImageFileDetail other && Equals(other); diff --git a/src/Generated/Models/Assistants/InternalMessageContentImageUrlObjectImageUrlDetail.cs b/src/Generated/Models/Assistants/InternalMessageContentImageUrlObjectImageUrlDetail.cs index 1bc5a670d..136fc25c2 100644 --- a/src/Generated/Models/Assistants/InternalMessageContentImageUrlObjectImageUrlDetail.cs +++ b/src/Generated/Models/Assistants/InternalMessageContentImageUrlObjectImageUrlDetail.cs @@ -34,6 +34,8 @@ public InternalMessageContentImageUrlObjectImageUrlDetail(string value) public static implicit operator InternalMessageContentImageUrlObjectImageUrlDetail(string value) => new InternalMessageContentImageUrlObjectImageUrlDetail(value); + public static implicit operator InternalMessageContentImageUrlObjectImageUrlDetail?(string value) => value == null ? null : new InternalMessageContentImageUrlObjectImageUrlDetail(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalMessageContentImageUrlObjectImageUrlDetail other && Equals(other); diff --git a/src/Generated/Models/Assistants/InternalMessageContentTextAnnotationType.cs b/src/Generated/Models/Assistants/InternalMessageContentTextAnnotationType.cs index 3cdd76bf7..f51e9f042 100644 --- a/src/Generated/Models/Assistants/InternalMessageContentTextAnnotationType.cs +++ b/src/Generated/Models/Assistants/InternalMessageContentTextAnnotationType.cs @@ -31,6 +31,8 @@ public InternalMessageContentTextAnnotationType(string value) public static implicit operator InternalMessageContentTextAnnotationType(string value) => new InternalMessageContentTextAnnotationType(value); + public static implicit operator InternalMessageContentTextAnnotationType?(string value) => value == null ? null : new InternalMessageContentTextAnnotationType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalMessageContentTextAnnotationType other && Equals(other); diff --git a/src/Generated/Models/Assistants/InternalMessageContentType.cs b/src/Generated/Models/Assistants/InternalMessageContentType.cs index 32bfdc487..bbf5f9b4f 100644 --- a/src/Generated/Models/Assistants/InternalMessageContentType.cs +++ b/src/Generated/Models/Assistants/InternalMessageContentType.cs @@ -37,6 +37,8 @@ public InternalMessageContentType(string value) public static implicit operator InternalMessageContentType(string value) => new InternalMessageContentType(value); + public static implicit operator InternalMessageContentType?(string value) => value == null ? null : new InternalMessageContentType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalMessageContentType other && Equals(other); diff --git a/src/Generated/Models/Assistants/InternalMessageDeltaContentImageFileObjectImageFileDetail.cs b/src/Generated/Models/Assistants/InternalMessageDeltaContentImageFileObjectImageFileDetail.cs index 50e7509f1..331214cae 100644 --- a/src/Generated/Models/Assistants/InternalMessageDeltaContentImageFileObjectImageFileDetail.cs +++ b/src/Generated/Models/Assistants/InternalMessageDeltaContentImageFileObjectImageFileDetail.cs @@ -34,6 +34,8 @@ public InternalMessageDeltaContentImageFileObjectImageFileDetail(string value) public static implicit operator InternalMessageDeltaContentImageFileObjectImageFileDetail(string value) => new InternalMessageDeltaContentImageFileObjectImageFileDetail(value); + public static implicit operator InternalMessageDeltaContentImageFileObjectImageFileDetail?(string value) => value == null ? null : new InternalMessageDeltaContentImageFileObjectImageFileDetail(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalMessageDeltaContentImageFileObjectImageFileDetail other && Equals(other); diff --git a/src/Generated/Models/Assistants/InternalMessageDeltaContentImageUrlObjectImageUrlDetail.cs b/src/Generated/Models/Assistants/InternalMessageDeltaContentImageUrlObjectImageUrlDetail.cs index 8e2561eec..2851de157 100644 --- a/src/Generated/Models/Assistants/InternalMessageDeltaContentImageUrlObjectImageUrlDetail.cs +++ b/src/Generated/Models/Assistants/InternalMessageDeltaContentImageUrlObjectImageUrlDetail.cs @@ -34,6 +34,8 @@ public InternalMessageDeltaContentImageUrlObjectImageUrlDetail(string value) public static implicit operator InternalMessageDeltaContentImageUrlObjectImageUrlDetail(string value) => new InternalMessageDeltaContentImageUrlObjectImageUrlDetail(value); + public static implicit operator InternalMessageDeltaContentImageUrlObjectImageUrlDetail?(string value) => value == null ? null : new InternalMessageDeltaContentImageUrlObjectImageUrlDetail(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalMessageDeltaContentImageUrlObjectImageUrlDetail other && Equals(other); diff --git a/src/Generated/Models/Assistants/InternalMessageDeltaObjectDeltaRole.cs b/src/Generated/Models/Assistants/InternalMessageDeltaObjectDeltaRole.cs index 6fdc364ba..246cb166e 100644 --- a/src/Generated/Models/Assistants/InternalMessageDeltaObjectDeltaRole.cs +++ b/src/Generated/Models/Assistants/InternalMessageDeltaObjectDeltaRole.cs @@ -31,6 +31,8 @@ public InternalMessageDeltaObjectDeltaRole(string value) public static implicit operator InternalMessageDeltaObjectDeltaRole(string value) => new InternalMessageDeltaObjectDeltaRole(value); + public static implicit operator InternalMessageDeltaObjectDeltaRole?(string value) => value == null ? null : new InternalMessageDeltaObjectDeltaRole(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalMessageDeltaObjectDeltaRole other && Equals(other); diff --git a/src/Generated/Models/Assistants/InternalMessageObjectRole.cs b/src/Generated/Models/Assistants/InternalMessageObjectRole.cs index 1381808ed..6ae5cc61f 100644 --- a/src/Generated/Models/Assistants/InternalMessageObjectRole.cs +++ b/src/Generated/Models/Assistants/InternalMessageObjectRole.cs @@ -31,6 +31,8 @@ public InternalMessageObjectRole(string value) public static implicit operator InternalMessageObjectRole(string value) => new InternalMessageObjectRole(value); + public static implicit operator InternalMessageObjectRole?(string value) => value == null ? null : new InternalMessageObjectRole(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalMessageObjectRole other && Equals(other); diff --git a/src/Generated/Models/Assistants/InternalRunStepDetailsCodeInterpreterOutputType.cs b/src/Generated/Models/Assistants/InternalRunStepDetailsCodeInterpreterOutputType.cs index 43ffda452..f5c8b1782 100644 --- a/src/Generated/Models/Assistants/InternalRunStepDetailsCodeInterpreterOutputType.cs +++ b/src/Generated/Models/Assistants/InternalRunStepDetailsCodeInterpreterOutputType.cs @@ -31,6 +31,8 @@ public InternalRunStepDetailsCodeInterpreterOutputType(string value) public static implicit operator InternalRunStepDetailsCodeInterpreterOutputType(string value) => new InternalRunStepDetailsCodeInterpreterOutputType(value); + public static implicit operator InternalRunStepDetailsCodeInterpreterOutputType?(string value) => value == null ? null : new InternalRunStepDetailsCodeInterpreterOutputType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRunStepDetailsCodeInterpreterOutputType other && Equals(other); diff --git a/src/Generated/Models/Assistants/InternalRunStepDetailsType.cs b/src/Generated/Models/Assistants/InternalRunStepDetailsType.cs index 7d7ba6503..ed890b3ba 100644 --- a/src/Generated/Models/Assistants/InternalRunStepDetailsType.cs +++ b/src/Generated/Models/Assistants/InternalRunStepDetailsType.cs @@ -31,6 +31,8 @@ public InternalRunStepDetailsType(string value) public static implicit operator InternalRunStepDetailsType(string value) => new InternalRunStepDetailsType(value); + public static implicit operator InternalRunStepDetailsType?(string value) => value == null ? null : new InternalRunStepDetailsType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRunStepDetailsType other && Equals(other); diff --git a/src/Generated/Models/Assistants/InternalTruncationObjectType.cs b/src/Generated/Models/Assistants/InternalTruncationObjectType.cs index 55d2371bc..b48cf8351 100644 --- a/src/Generated/Models/Assistants/InternalTruncationObjectType.cs +++ b/src/Generated/Models/Assistants/InternalTruncationObjectType.cs @@ -31,6 +31,8 @@ public InternalTruncationObjectType(string value) public static implicit operator InternalTruncationObjectType(string value) => new InternalTruncationObjectType(value); + public static implicit operator InternalTruncationObjectType?(string value) => value == null ? null : new InternalTruncationObjectType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalTruncationObjectType other && Equals(other); diff --git a/src/Generated/Models/Assistants/MessageFailureReason.cs b/src/Generated/Models/Assistants/MessageFailureReason.cs index 3a2a0ac51..ae565dcd7 100644 --- a/src/Generated/Models/Assistants/MessageFailureReason.cs +++ b/src/Generated/Models/Assistants/MessageFailureReason.cs @@ -42,6 +42,8 @@ public MessageFailureReason(string value) public static implicit operator MessageFailureReason(string value) => new MessageFailureReason(value); + public static implicit operator MessageFailureReason?(string value) => value == null ? null : new MessageFailureReason(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is MessageFailureReason other && Equals(other); diff --git a/src/Generated/Models/Assistants/MessageStatus.cs b/src/Generated/Models/Assistants/MessageStatus.cs index 041421851..75a785404 100644 --- a/src/Generated/Models/Assistants/MessageStatus.cs +++ b/src/Generated/Models/Assistants/MessageStatus.cs @@ -36,6 +36,8 @@ public MessageStatus(string value) public static implicit operator MessageStatus(string value) => new MessageStatus(value); + public static implicit operator MessageStatus?(string value) => value == null ? null : new MessageStatus(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is MessageStatus other && Equals(other); diff --git a/src/Generated/Models/Assistants/RunErrorCode.cs b/src/Generated/Models/Assistants/RunErrorCode.cs index d42f1fcd0..6e716acdb 100644 --- a/src/Generated/Models/Assistants/RunErrorCode.cs +++ b/src/Generated/Models/Assistants/RunErrorCode.cs @@ -36,6 +36,8 @@ public RunErrorCode(string value) public static implicit operator RunErrorCode(string value) => new RunErrorCode(value); + public static implicit operator RunErrorCode?(string value) => value == null ? null : new RunErrorCode(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is RunErrorCode other && Equals(other); diff --git a/src/Generated/Models/Assistants/RunIncompleteReason.cs b/src/Generated/Models/Assistants/RunIncompleteReason.cs index 4fb57faf6..5f281b571 100644 --- a/src/Generated/Models/Assistants/RunIncompleteReason.cs +++ b/src/Generated/Models/Assistants/RunIncompleteReason.cs @@ -29,6 +29,8 @@ public RunIncompleteReason(string value) public static implicit operator RunIncompleteReason(string value) => new RunIncompleteReason(value); + public static implicit operator RunIncompleteReason?(string value) => value == null ? null : new RunIncompleteReason(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is RunIncompleteReason other && Equals(other); diff --git a/src/Generated/Models/Assistants/RunStatus.cs b/src/Generated/Models/Assistants/RunStatus.cs index 2adc7f2bf..27e18fe83 100644 --- a/src/Generated/Models/Assistants/RunStatus.cs +++ b/src/Generated/Models/Assistants/RunStatus.cs @@ -54,6 +54,8 @@ public RunStatus(string value) public static implicit operator RunStatus(string value) => new RunStatus(value); + public static implicit operator RunStatus?(string value) => value == null ? null : new RunStatus(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is RunStatus other && Equals(other); diff --git a/src/Generated/Models/Assistants/RunStepErrorCode.cs b/src/Generated/Models/Assistants/RunStepErrorCode.cs index fa09318b8..57ea7a8dc 100644 --- a/src/Generated/Models/Assistants/RunStepErrorCode.cs +++ b/src/Generated/Models/Assistants/RunStepErrorCode.cs @@ -33,6 +33,8 @@ public RunStepErrorCode(string value) public static implicit operator RunStepErrorCode(string value) => new RunStepErrorCode(value); + public static implicit operator RunStepErrorCode?(string value) => value == null ? null : new RunStepErrorCode(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is RunStepErrorCode other && Equals(other); diff --git a/src/Generated/Models/Assistants/RunStepStatus.cs b/src/Generated/Models/Assistants/RunStepStatus.cs index f815a2841..498c12059 100644 --- a/src/Generated/Models/Assistants/RunStepStatus.cs +++ b/src/Generated/Models/Assistants/RunStepStatus.cs @@ -42,6 +42,8 @@ public RunStepStatus(string value) public static implicit operator RunStepStatus(string value) => new RunStepStatus(value); + public static implicit operator RunStepStatus?(string value) => value == null ? null : new RunStepStatus(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is RunStepStatus other && Equals(other); diff --git a/src/Generated/Models/Audio/AudioTranscriptionFormat.cs b/src/Generated/Models/Audio/AudioTranscriptionFormat.cs index 0c2834261..9090c46b4 100644 --- a/src/Generated/Models/Audio/AudioTranscriptionFormat.cs +++ b/src/Generated/Models/Audio/AudioTranscriptionFormat.cs @@ -30,6 +30,8 @@ public AudioTranscriptionFormat(string value) public static implicit operator AudioTranscriptionFormat(string value) => new AudioTranscriptionFormat(value); + public static implicit operator AudioTranscriptionFormat?(string value) => value == null ? null : new AudioTranscriptionFormat(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is AudioTranscriptionFormat other && Equals(other); diff --git a/src/Generated/Models/Audio/AudioTranslationFormat.cs b/src/Generated/Models/Audio/AudioTranslationFormat.cs index 8d0be5459..fbad90604 100644 --- a/src/Generated/Models/Audio/AudioTranslationFormat.cs +++ b/src/Generated/Models/Audio/AudioTranslationFormat.cs @@ -30,6 +30,8 @@ public AudioTranslationFormat(string value) public static implicit operator AudioTranslationFormat(string value) => new AudioTranslationFormat(value); + public static implicit operator AudioTranslationFormat?(string value) => value == null ? null : new AudioTranslationFormat(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is AudioTranslationFormat other && Equals(other); diff --git a/src/Generated/Models/Audio/GeneratedSpeechFormat.cs b/src/Generated/Models/Audio/GeneratedSpeechFormat.cs index d1eebe036..0b6ae85c1 100644 --- a/src/Generated/Models/Audio/GeneratedSpeechFormat.cs +++ b/src/Generated/Models/Audio/GeneratedSpeechFormat.cs @@ -43,6 +43,8 @@ public GeneratedSpeechFormat(string value) public static implicit operator GeneratedSpeechFormat(string value) => new GeneratedSpeechFormat(value); + public static implicit operator GeneratedSpeechFormat?(string value) => value == null ? null : new GeneratedSpeechFormat(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is GeneratedSpeechFormat other && Equals(other); diff --git a/src/Generated/Models/Audio/GeneratedSpeechVoice.cs b/src/Generated/Models/Audio/GeneratedSpeechVoice.cs index 9a80196d1..4a6eff3ce 100644 --- a/src/Generated/Models/Audio/GeneratedSpeechVoice.cs +++ b/src/Generated/Models/Audio/GeneratedSpeechVoice.cs @@ -64,6 +64,8 @@ public GeneratedSpeechVoice(string value) public static implicit operator GeneratedSpeechVoice(string value) => new GeneratedSpeechVoice(value); + public static implicit operator GeneratedSpeechVoice?(string value) => value == null ? null : new GeneratedSpeechVoice(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is GeneratedSpeechVoice other && Equals(other); diff --git a/src/Generated/Models/Audio/InternalCreateSpeechRequestModel.cs b/src/Generated/Models/Audio/InternalCreateSpeechRequestModel.cs index 40f9eb852..5a2b6442e 100644 --- a/src/Generated/Models/Audio/InternalCreateSpeechRequestModel.cs +++ b/src/Generated/Models/Audio/InternalCreateSpeechRequestModel.cs @@ -34,6 +34,8 @@ public InternalCreateSpeechRequestModel(string value) public static implicit operator InternalCreateSpeechRequestModel(string value) => new InternalCreateSpeechRequestModel(value); + public static implicit operator InternalCreateSpeechRequestModel?(string value) => value == null ? null : new InternalCreateSpeechRequestModel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateSpeechRequestModel other && Equals(other); diff --git a/src/Generated/Models/Audio/InternalCreateTranscriptionRequestAccept.cs b/src/Generated/Models/Audio/InternalCreateTranscriptionRequestAccept.cs index 2af628e07..c77a6b5a3 100644 --- a/src/Generated/Models/Audio/InternalCreateTranscriptionRequestAccept.cs +++ b/src/Generated/Models/Audio/InternalCreateTranscriptionRequestAccept.cs @@ -31,6 +31,8 @@ public InternalCreateTranscriptionRequestAccept(string value) public static implicit operator InternalCreateTranscriptionRequestAccept(string value) => new InternalCreateTranscriptionRequestAccept(value); + public static implicit operator InternalCreateTranscriptionRequestAccept?(string value) => value == null ? null : new InternalCreateTranscriptionRequestAccept(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateTranscriptionRequestAccept other && Equals(other); diff --git a/src/Generated/Models/Audio/InternalCreateTranscriptionRequestModel.cs b/src/Generated/Models/Audio/InternalCreateTranscriptionRequestModel.cs index 6751afaad..a5ccde37d 100644 --- a/src/Generated/Models/Audio/InternalCreateTranscriptionRequestModel.cs +++ b/src/Generated/Models/Audio/InternalCreateTranscriptionRequestModel.cs @@ -34,6 +34,8 @@ public InternalCreateTranscriptionRequestModel(string value) public static implicit operator InternalCreateTranscriptionRequestModel(string value) => new InternalCreateTranscriptionRequestModel(value); + public static implicit operator InternalCreateTranscriptionRequestModel?(string value) => value == null ? null : new InternalCreateTranscriptionRequestModel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateTranscriptionRequestModel other && Equals(other); diff --git a/src/Generated/Models/Audio/InternalCreateTranscriptionRequestTimestampGranularities.cs b/src/Generated/Models/Audio/InternalCreateTranscriptionRequestTimestampGranularities.cs index 002fbdd7a..c0c86d759 100644 --- a/src/Generated/Models/Audio/InternalCreateTranscriptionRequestTimestampGranularities.cs +++ b/src/Generated/Models/Audio/InternalCreateTranscriptionRequestTimestampGranularities.cs @@ -31,6 +31,8 @@ public InternalCreateTranscriptionRequestTimestampGranularities(string value) public static implicit operator InternalCreateTranscriptionRequestTimestampGranularities(string value) => new InternalCreateTranscriptionRequestTimestampGranularities(value); + public static implicit operator InternalCreateTranscriptionRequestTimestampGranularities?(string value) => value == null ? null : new InternalCreateTranscriptionRequestTimestampGranularities(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateTranscriptionRequestTimestampGranularities other && Equals(other); diff --git a/src/Generated/Models/Audio/InternalCreateTranslationRequestModel.cs b/src/Generated/Models/Audio/InternalCreateTranslationRequestModel.cs index c44d1bbbf..4168c421c 100644 --- a/src/Generated/Models/Audio/InternalCreateTranslationRequestModel.cs +++ b/src/Generated/Models/Audio/InternalCreateTranslationRequestModel.cs @@ -28,6 +28,8 @@ public InternalCreateTranslationRequestModel(string value) public static implicit operator InternalCreateTranslationRequestModel(string value) => new InternalCreateTranslationRequestModel(value); + public static implicit operator InternalCreateTranslationRequestModel?(string value) => value == null ? null : new InternalCreateTranslationRequestModel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateTranslationRequestModel other && Equals(other); diff --git a/src/Generated/Models/Audio/InternalTranscriptionInclude.cs b/src/Generated/Models/Audio/InternalTranscriptionInclude.cs index 15cbe8562..2535af909 100644 --- a/src/Generated/Models/Audio/InternalTranscriptionInclude.cs +++ b/src/Generated/Models/Audio/InternalTranscriptionInclude.cs @@ -28,6 +28,8 @@ public InternalTranscriptionInclude(string value) public static implicit operator InternalTranscriptionInclude(string value) => new InternalTranscriptionInclude(value); + public static implicit operator InternalTranscriptionInclude?(string value) => value == null ? null : new InternalTranscriptionInclude(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalTranscriptionInclude other && Equals(other); diff --git a/src/Generated/Models/Audio/StreamingAudioTranscriptionUpdateKind.cs b/src/Generated/Models/Audio/StreamingAudioTranscriptionUpdateKind.cs index 99c4d4c77..10dd578f6 100644 --- a/src/Generated/Models/Audio/StreamingAudioTranscriptionUpdateKind.cs +++ b/src/Generated/Models/Audio/StreamingAudioTranscriptionUpdateKind.cs @@ -33,6 +33,8 @@ public StreamingAudioTranscriptionUpdateKind(string value) public static implicit operator StreamingAudioTranscriptionUpdateKind(string value) => new StreamingAudioTranscriptionUpdateKind(value); + public static implicit operator StreamingAudioTranscriptionUpdateKind?(string value) => value == null ? null : new StreamingAudioTranscriptionUpdateKind(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is StreamingAudioTranscriptionUpdateKind other && Equals(other); diff --git a/src/Generated/Models/Batch/InternalBatchStatus.cs b/src/Generated/Models/Batch/InternalBatchStatus.cs index 3edeb43ce..a245918df 100644 --- a/src/Generated/Models/Batch/InternalBatchStatus.cs +++ b/src/Generated/Models/Batch/InternalBatchStatus.cs @@ -49,6 +49,8 @@ public InternalBatchStatus(string value) public static implicit operator InternalBatchStatus(string value) => new InternalBatchStatus(value); + public static implicit operator InternalBatchStatus?(string value) => value == null ? null : new InternalBatchStatus(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalBatchStatus other && Equals(other); diff --git a/src/Generated/Models/Batch/InternalCreateBatchRequestEndpoint.cs b/src/Generated/Models/Batch/InternalCreateBatchRequestEndpoint.cs index 186a89103..068d9c173 100644 --- a/src/Generated/Models/Batch/InternalCreateBatchRequestEndpoint.cs +++ b/src/Generated/Models/Batch/InternalCreateBatchRequestEndpoint.cs @@ -31,6 +31,8 @@ public InternalCreateBatchRequestEndpoint(string value) public static implicit operator InternalCreateBatchRequestEndpoint(string value) => new InternalCreateBatchRequestEndpoint(value); + public static implicit operator InternalCreateBatchRequestEndpoint?(string value) => value == null ? null : new InternalCreateBatchRequestEndpoint(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateBatchRequestEndpoint other && Equals(other); diff --git a/src/Generated/Models/Chat/ChatCompletionCollectionOrder.cs b/src/Generated/Models/Chat/ChatCompletionCollectionOrder.cs index 414bb39bb..1f43a98b6 100644 --- a/src/Generated/Models/Chat/ChatCompletionCollectionOrder.cs +++ b/src/Generated/Models/Chat/ChatCompletionCollectionOrder.cs @@ -33,6 +33,8 @@ public ChatCompletionCollectionOrder(string value) public static implicit operator ChatCompletionCollectionOrder(string value) => new ChatCompletionCollectionOrder(value); + public static implicit operator ChatCompletionCollectionOrder?(string value) => value == null ? null : new ChatCompletionCollectionOrder(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ChatCompletionCollectionOrder other && Equals(other); diff --git a/src/Generated/Models/Chat/ChatCompletionMessageCollectionOrder.cs b/src/Generated/Models/Chat/ChatCompletionMessageCollectionOrder.cs index 84dec8b0a..67e4d5851 100644 --- a/src/Generated/Models/Chat/ChatCompletionMessageCollectionOrder.cs +++ b/src/Generated/Models/Chat/ChatCompletionMessageCollectionOrder.cs @@ -33,6 +33,8 @@ public ChatCompletionMessageCollectionOrder(string value) public static implicit operator ChatCompletionMessageCollectionOrder(string value) => new ChatCompletionMessageCollectionOrder(value); + public static implicit operator ChatCompletionMessageCollectionOrder?(string value) => value == null ? null : new ChatCompletionMessageCollectionOrder(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ChatCompletionMessageCollectionOrder other && Equals(other); diff --git a/src/Generated/Models/Chat/ChatImageDetailLevel.cs b/src/Generated/Models/Chat/ChatImageDetailLevel.cs index 485f3a13d..94b204dc2 100644 --- a/src/Generated/Models/Chat/ChatImageDetailLevel.cs +++ b/src/Generated/Models/Chat/ChatImageDetailLevel.cs @@ -34,6 +34,8 @@ public ChatImageDetailLevel(string value) public static implicit operator ChatImageDetailLevel(string value) => new ChatImageDetailLevel(value); + public static implicit operator ChatImageDetailLevel?(string value) => value == null ? null : new ChatImageDetailLevel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ChatImageDetailLevel other && Equals(other); diff --git a/src/Generated/Models/Chat/ChatInputAudioFormat.cs b/src/Generated/Models/Chat/ChatInputAudioFormat.cs index 350fa3b75..d7d62fba8 100644 --- a/src/Generated/Models/Chat/ChatInputAudioFormat.cs +++ b/src/Generated/Models/Chat/ChatInputAudioFormat.cs @@ -33,6 +33,8 @@ public ChatInputAudioFormat(string value) public static implicit operator ChatInputAudioFormat(string value) => new ChatInputAudioFormat(value); + public static implicit operator ChatInputAudioFormat?(string value) => value == null ? null : new ChatInputAudioFormat(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ChatInputAudioFormat other && Equals(other); diff --git a/src/Generated/Models/Chat/ChatOutputAudioFormat.cs b/src/Generated/Models/Chat/ChatOutputAudioFormat.cs index b48619dac..4be3cf1e7 100644 --- a/src/Generated/Models/Chat/ChatOutputAudioFormat.cs +++ b/src/Generated/Models/Chat/ChatOutputAudioFormat.cs @@ -45,6 +45,8 @@ public ChatOutputAudioFormat(string value) public static implicit operator ChatOutputAudioFormat(string value) => new ChatOutputAudioFormat(value); + public static implicit operator ChatOutputAudioFormat?(string value) => value == null ? null : new ChatOutputAudioFormat(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ChatOutputAudioFormat other && Equals(other); diff --git a/src/Generated/Models/Chat/ChatOutputAudioVoice.cs b/src/Generated/Models/Chat/ChatOutputAudioVoice.cs index 818bdbb4f..06521148c 100644 --- a/src/Generated/Models/Chat/ChatOutputAudioVoice.cs +++ b/src/Generated/Models/Chat/ChatOutputAudioVoice.cs @@ -60,6 +60,8 @@ public ChatOutputAudioVoice(string value) public static implicit operator ChatOutputAudioVoice(string value) => new ChatOutputAudioVoice(value); + public static implicit operator ChatOutputAudioVoice?(string value) => value == null ? null : new ChatOutputAudioVoice(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ChatOutputAudioVoice other && Equals(other); diff --git a/src/Generated/Models/Chat/ChatReasoningEffortLevel.cs b/src/Generated/Models/Chat/ChatReasoningEffortLevel.cs index ff5fad88b..27653e2ff 100644 --- a/src/Generated/Models/Chat/ChatReasoningEffortLevel.cs +++ b/src/Generated/Models/Chat/ChatReasoningEffortLevel.cs @@ -36,6 +36,8 @@ public ChatReasoningEffortLevel(string value) public static implicit operator ChatReasoningEffortLevel(string value) => new ChatReasoningEffortLevel(value); + public static implicit operator ChatReasoningEffortLevel?(string value) => value == null ? null : new ChatReasoningEffortLevel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ChatReasoningEffortLevel other && Equals(other); diff --git a/src/Generated/Models/Chat/InternalChatOutputPredictionKind.cs b/src/Generated/Models/Chat/InternalChatOutputPredictionKind.cs index 27097ce95..8e78f1966 100644 --- a/src/Generated/Models/Chat/InternalChatOutputPredictionKind.cs +++ b/src/Generated/Models/Chat/InternalChatOutputPredictionKind.cs @@ -28,6 +28,8 @@ public InternalChatOutputPredictionKind(string value) public static implicit operator InternalChatOutputPredictionKind(string value) => new InternalChatOutputPredictionKind(value); + public static implicit operator InternalChatOutputPredictionKind?(string value) => value == null ? null : new InternalChatOutputPredictionKind(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalChatOutputPredictionKind other && Equals(other); diff --git a/src/Generated/Models/Chat/InternalCreateChatCompletionRequestModality.cs b/src/Generated/Models/Chat/InternalCreateChatCompletionRequestModality.cs index 794b07602..762f761c5 100644 --- a/src/Generated/Models/Chat/InternalCreateChatCompletionRequestModality.cs +++ b/src/Generated/Models/Chat/InternalCreateChatCompletionRequestModality.cs @@ -31,6 +31,8 @@ public InternalCreateChatCompletionRequestModality(string value) public static implicit operator InternalCreateChatCompletionRequestModality(string value) => new InternalCreateChatCompletionRequestModality(value); + public static implicit operator InternalCreateChatCompletionRequestModality?(string value) => value == null ? null : new InternalCreateChatCompletionRequestModality(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateChatCompletionRequestModality other && Equals(other); diff --git a/src/Generated/Models/Chat/InternalCreateChatCompletionRequestToolChoice.cs b/src/Generated/Models/Chat/InternalCreateChatCompletionRequestToolChoice.cs index 01244b631..3ea21055d 100644 --- a/src/Generated/Models/Chat/InternalCreateChatCompletionRequestToolChoice.cs +++ b/src/Generated/Models/Chat/InternalCreateChatCompletionRequestToolChoice.cs @@ -34,6 +34,8 @@ public InternalCreateChatCompletionRequestToolChoice(string value) public static implicit operator InternalCreateChatCompletionRequestToolChoice(string value) => new InternalCreateChatCompletionRequestToolChoice(value); + public static implicit operator InternalCreateChatCompletionRequestToolChoice?(string value) => value == null ? null : new InternalCreateChatCompletionRequestToolChoice(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateChatCompletionRequestToolChoice other && Equals(other); diff --git a/src/Generated/Models/Chat/InternalCreateChatCompletionStreamResponseChoiceFinishReason.cs b/src/Generated/Models/Chat/InternalCreateChatCompletionStreamResponseChoiceFinishReason.cs index 20bdd5a96..9d5790093 100644 --- a/src/Generated/Models/Chat/InternalCreateChatCompletionStreamResponseChoiceFinishReason.cs +++ b/src/Generated/Models/Chat/InternalCreateChatCompletionStreamResponseChoiceFinishReason.cs @@ -40,6 +40,8 @@ public InternalCreateChatCompletionStreamResponseChoiceFinishReason(string value public static implicit operator InternalCreateChatCompletionStreamResponseChoiceFinishReason(string value) => new InternalCreateChatCompletionStreamResponseChoiceFinishReason(value); + public static implicit operator InternalCreateChatCompletionStreamResponseChoiceFinishReason?(string value) => value == null ? null : new InternalCreateChatCompletionStreamResponseChoiceFinishReason(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateChatCompletionStreamResponseChoiceFinishReason other && Equals(other); diff --git a/src/Generated/Models/Embeddings/InternalCreateEmbeddingRequestEncodingFormat.cs b/src/Generated/Models/Embeddings/InternalCreateEmbeddingRequestEncodingFormat.cs index 8a92ad776..ae1221046 100644 --- a/src/Generated/Models/Embeddings/InternalCreateEmbeddingRequestEncodingFormat.cs +++ b/src/Generated/Models/Embeddings/InternalCreateEmbeddingRequestEncodingFormat.cs @@ -31,6 +31,8 @@ public InternalCreateEmbeddingRequestEncodingFormat(string value) public static implicit operator InternalCreateEmbeddingRequestEncodingFormat(string value) => new InternalCreateEmbeddingRequestEncodingFormat(value); + public static implicit operator InternalCreateEmbeddingRequestEncodingFormat?(string value) => value == null ? null : new InternalCreateEmbeddingRequestEncodingFormat(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateEmbeddingRequestEncodingFormat other && Equals(other); diff --git a/src/Generated/Models/Embeddings/InternalCreateEmbeddingRequestModel.cs b/src/Generated/Models/Embeddings/InternalCreateEmbeddingRequestModel.cs index 069aff175..1412fbec7 100644 --- a/src/Generated/Models/Embeddings/InternalCreateEmbeddingRequestModel.cs +++ b/src/Generated/Models/Embeddings/InternalCreateEmbeddingRequestModel.cs @@ -34,6 +34,8 @@ public InternalCreateEmbeddingRequestModel(string value) public static implicit operator InternalCreateEmbeddingRequestModel(string value) => new InternalCreateEmbeddingRequestModel(value); + public static implicit operator InternalCreateEmbeddingRequestModel?(string value) => value == null ? null : new InternalCreateEmbeddingRequestModel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateEmbeddingRequestModel other && Equals(other); diff --git a/src/Generated/Models/Evals/InternalEvalDataSourceConfigType.cs b/src/Generated/Models/Evals/InternalEvalDataSourceConfigType.cs index 858e53240..0691a2e1a 100644 --- a/src/Generated/Models/Evals/InternalEvalDataSourceConfigType.cs +++ b/src/Generated/Models/Evals/InternalEvalDataSourceConfigType.cs @@ -34,6 +34,8 @@ public InternalEvalDataSourceConfigType(string value) public static implicit operator InternalEvalDataSourceConfigType(string value) => new InternalEvalDataSourceConfigType(value); + public static implicit operator InternalEvalDataSourceConfigType?(string value) => value == null ? null : new InternalEvalDataSourceConfigType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalEvalDataSourceConfigType other && Equals(other); diff --git a/src/Generated/Models/Evals/InternalEvalItemContentType.cs b/src/Generated/Models/Evals/InternalEvalItemContentType.cs index cce4e5854..51aadc3d5 100644 --- a/src/Generated/Models/Evals/InternalEvalItemContentType.cs +++ b/src/Generated/Models/Evals/InternalEvalItemContentType.cs @@ -31,6 +31,8 @@ public InternalEvalItemContentType(string value) public static implicit operator InternalEvalItemContentType(string value) => new InternalEvalItemContentType(value); + public static implicit operator InternalEvalItemContentType?(string value) => value == null ? null : new InternalEvalItemContentType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalEvalItemContentType other && Equals(other); diff --git a/src/Generated/Models/Evals/InternalEvalItemRole.cs b/src/Generated/Models/Evals/InternalEvalItemRole.cs index d722f0a28..725dd6453 100644 --- a/src/Generated/Models/Evals/InternalEvalItemRole.cs +++ b/src/Generated/Models/Evals/InternalEvalItemRole.cs @@ -37,6 +37,8 @@ public InternalEvalItemRole(string value) public static implicit operator InternalEvalItemRole(string value) => new InternalEvalItemRole(value); + public static implicit operator InternalEvalItemRole?(string value) => value == null ? null : new InternalEvalItemRole(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalEvalItemRole other && Equals(other); diff --git a/src/Generated/Models/Evals/InternalEvalRunDataContentSourceType.cs b/src/Generated/Models/Evals/InternalEvalRunDataContentSourceType.cs index 124c43501..f01c6940e 100644 --- a/src/Generated/Models/Evals/InternalEvalRunDataContentSourceType.cs +++ b/src/Generated/Models/Evals/InternalEvalRunDataContentSourceType.cs @@ -37,6 +37,8 @@ public InternalEvalRunDataContentSourceType(string value) public static implicit operator InternalEvalRunDataContentSourceType(string value) => new InternalEvalRunDataContentSourceType(value); + public static implicit operator InternalEvalRunDataContentSourceType?(string value) => value == null ? null : new InternalEvalRunDataContentSourceType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalEvalRunDataContentSourceType other && Equals(other); diff --git a/src/Generated/Models/Evals/InternalEvalRunDataSourceType.cs b/src/Generated/Models/Evals/InternalEvalRunDataSourceType.cs index 5da9ab1a5..6f855c0cc 100644 --- a/src/Generated/Models/Evals/InternalEvalRunDataSourceType.cs +++ b/src/Generated/Models/Evals/InternalEvalRunDataSourceType.cs @@ -34,6 +34,8 @@ public InternalEvalRunDataSourceType(string value) public static implicit operator InternalEvalRunDataSourceType(string value) => new InternalEvalRunDataSourceType(value); + public static implicit operator InternalEvalRunDataSourceType?(string value) => value == null ? null : new InternalEvalRunDataSourceType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalEvalRunDataSourceType other && Equals(other); diff --git a/src/Generated/Models/Evals/InternalGetEvalRunOutputItemsRequestStatus.cs b/src/Generated/Models/Evals/InternalGetEvalRunOutputItemsRequestStatus.cs index 2c0a043e1..561251643 100644 --- a/src/Generated/Models/Evals/InternalGetEvalRunOutputItemsRequestStatus.cs +++ b/src/Generated/Models/Evals/InternalGetEvalRunOutputItemsRequestStatus.cs @@ -31,6 +31,8 @@ public InternalGetEvalRunOutputItemsRequestStatus(string value) public static implicit operator InternalGetEvalRunOutputItemsRequestStatus(string value) => new InternalGetEvalRunOutputItemsRequestStatus(value); + public static implicit operator InternalGetEvalRunOutputItemsRequestStatus?(string value) => value == null ? null : new InternalGetEvalRunOutputItemsRequestStatus(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalGetEvalRunOutputItemsRequestStatus other && Equals(other); diff --git a/src/Generated/Models/Evals/InternalGetEvalRunsRequestStatus.cs b/src/Generated/Models/Evals/InternalGetEvalRunsRequestStatus.cs index 547277776..8ed9a2a78 100644 --- a/src/Generated/Models/Evals/InternalGetEvalRunsRequestStatus.cs +++ b/src/Generated/Models/Evals/InternalGetEvalRunsRequestStatus.cs @@ -40,6 +40,8 @@ public InternalGetEvalRunsRequestStatus(string value) public static implicit operator InternalGetEvalRunsRequestStatus(string value) => new InternalGetEvalRunsRequestStatus(value); + public static implicit operator InternalGetEvalRunsRequestStatus?(string value) => value == null ? null : new InternalGetEvalRunsRequestStatus(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalGetEvalRunsRequestStatus other && Equals(other); diff --git a/src/Generated/Models/Evals/InternalListEvalsRequestOrderBy.cs b/src/Generated/Models/Evals/InternalListEvalsRequestOrderBy.cs index ef85b2528..4d21353ed 100644 --- a/src/Generated/Models/Evals/InternalListEvalsRequestOrderBy.cs +++ b/src/Generated/Models/Evals/InternalListEvalsRequestOrderBy.cs @@ -31,6 +31,8 @@ public InternalListEvalsRequestOrderBy(string value) public static implicit operator InternalListEvalsRequestOrderBy(string value) => new InternalListEvalsRequestOrderBy(value); + public static implicit operator InternalListEvalsRequestOrderBy?(string value) => value == null ? null : new InternalListEvalsRequestOrderBy(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalListEvalsRequestOrderBy other && Equals(other); diff --git a/src/Generated/Models/Files/FileUploadPurpose.cs b/src/Generated/Models/Files/FileUploadPurpose.cs index 505d9e74e..5da1b63a8 100644 --- a/src/Generated/Models/Files/FileUploadPurpose.cs +++ b/src/Generated/Models/Files/FileUploadPurpose.cs @@ -39,6 +39,8 @@ public FileUploadPurpose(string value) public static implicit operator FileUploadPurpose(string value) => new FileUploadPurpose(value); + public static implicit operator FileUploadPurpose?(string value) => value == null ? null : new FileUploadPurpose(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is FileUploadPurpose other && Equals(other); diff --git a/src/Generated/Models/Files/InternalCreateUploadRequestPurpose.cs b/src/Generated/Models/Files/InternalCreateUploadRequestPurpose.cs index af2acf0a2..e01900b26 100644 --- a/src/Generated/Models/Files/InternalCreateUploadRequestPurpose.cs +++ b/src/Generated/Models/Files/InternalCreateUploadRequestPurpose.cs @@ -37,6 +37,8 @@ public InternalCreateUploadRequestPurpose(string value) public static implicit operator InternalCreateUploadRequestPurpose(string value) => new InternalCreateUploadRequestPurpose(value); + public static implicit operator InternalCreateUploadRequestPurpose?(string value) => value == null ? null : new InternalCreateUploadRequestPurpose(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateUploadRequestPurpose other && Equals(other); diff --git a/src/Generated/Models/Files/InternalUploadStatus.cs b/src/Generated/Models/Files/InternalUploadStatus.cs index a34dc58cc..7f1f1c4ee 100644 --- a/src/Generated/Models/Files/InternalUploadStatus.cs +++ b/src/Generated/Models/Files/InternalUploadStatus.cs @@ -37,6 +37,8 @@ public InternalUploadStatus(string value) public static implicit operator InternalUploadStatus(string value) => new InternalUploadStatus(value); + public static implicit operator InternalUploadStatus?(string value) => value == null ? null : new InternalUploadStatus(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalUploadStatus other && Equals(other); diff --git a/src/Generated/Models/FineTuning/FineTuningJobEventKind.cs b/src/Generated/Models/FineTuning/FineTuningJobEventKind.cs index abdc9231d..722d5cdec 100644 --- a/src/Generated/Models/FineTuning/FineTuningJobEventKind.cs +++ b/src/Generated/Models/FineTuning/FineTuningJobEventKind.cs @@ -33,6 +33,8 @@ public FineTuningJobEventKind(string value) public static implicit operator FineTuningJobEventKind(string value) => new FineTuningJobEventKind(value); + public static implicit operator FineTuningJobEventKind?(string value) => value == null ? null : new FineTuningJobEventKind(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is FineTuningJobEventKind other && Equals(other); diff --git a/src/Generated/Models/FineTuning/FineTuningStatus.cs b/src/Generated/Models/FineTuning/FineTuningStatus.cs index 59de5e938..af437823d 100644 --- a/src/Generated/Models/FineTuning/FineTuningStatus.cs +++ b/src/Generated/Models/FineTuning/FineTuningStatus.cs @@ -45,6 +45,8 @@ public FineTuningStatus(string value) public static implicit operator FineTuningStatus(string value) => new FineTuningStatus(value); + public static implicit operator FineTuningStatus?(string value) => value == null ? null : new FineTuningStatus(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is FineTuningStatus other && Equals(other); diff --git a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersBatchSizeChoiceEnum.cs b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersBatchSizeChoiceEnum.cs index 363a0bafd..7d5f724a0 100644 --- a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersBatchSizeChoiceEnum.cs +++ b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersBatchSizeChoiceEnum.cs @@ -28,6 +28,8 @@ public InternalCreateFineTuningJobRequestHyperparametersBatchSizeChoiceEnum(stri public static implicit operator InternalCreateFineTuningJobRequestHyperparametersBatchSizeChoiceEnum(string value) => new InternalCreateFineTuningJobRequestHyperparametersBatchSizeChoiceEnum(value); + public static implicit operator InternalCreateFineTuningJobRequestHyperparametersBatchSizeChoiceEnum?(string value) => value == null ? null : new InternalCreateFineTuningJobRequestHyperparametersBatchSizeChoiceEnum(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateFineTuningJobRequestHyperparametersBatchSizeChoiceEnum other && Equals(other); diff --git a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersBetaChoiceEnum.cs b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersBetaChoiceEnum.cs index 06135d01f..92d700e2d 100644 --- a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersBetaChoiceEnum.cs +++ b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersBetaChoiceEnum.cs @@ -28,6 +28,8 @@ public InternalCreateFineTuningJobRequestHyperparametersBetaChoiceEnum(string va public static implicit operator InternalCreateFineTuningJobRequestHyperparametersBetaChoiceEnum(string value) => new InternalCreateFineTuningJobRequestHyperparametersBetaChoiceEnum(value); + public static implicit operator InternalCreateFineTuningJobRequestHyperparametersBetaChoiceEnum?(string value) => value == null ? null : new InternalCreateFineTuningJobRequestHyperparametersBetaChoiceEnum(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateFineTuningJobRequestHyperparametersBetaChoiceEnum other && Equals(other); diff --git a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersLearningRateMultiplierChoiceEnum.cs b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersLearningRateMultiplierChoiceEnum.cs index ba8593976..5100803cc 100644 --- a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersLearningRateMultiplierChoiceEnum.cs +++ b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersLearningRateMultiplierChoiceEnum.cs @@ -28,6 +28,8 @@ public InternalCreateFineTuningJobRequestHyperparametersLearningRateMultiplierCh public static implicit operator InternalCreateFineTuningJobRequestHyperparametersLearningRateMultiplierChoiceEnum(string value) => new InternalCreateFineTuningJobRequestHyperparametersLearningRateMultiplierChoiceEnum(value); + public static implicit operator InternalCreateFineTuningJobRequestHyperparametersLearningRateMultiplierChoiceEnum?(string value) => value == null ? null : new InternalCreateFineTuningJobRequestHyperparametersLearningRateMultiplierChoiceEnum(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateFineTuningJobRequestHyperparametersLearningRateMultiplierChoiceEnum other && Equals(other); diff --git a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersNEpochsChoiceEnum.cs b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersNEpochsChoiceEnum.cs index c7dfac647..45c6b322d 100644 --- a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersNEpochsChoiceEnum.cs +++ b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestHyperparametersNEpochsChoiceEnum.cs @@ -28,6 +28,8 @@ public InternalCreateFineTuningJobRequestHyperparametersNEpochsChoiceEnum(string public static implicit operator InternalCreateFineTuningJobRequestHyperparametersNEpochsChoiceEnum(string value) => new InternalCreateFineTuningJobRequestHyperparametersNEpochsChoiceEnum(value); + public static implicit operator InternalCreateFineTuningJobRequestHyperparametersNEpochsChoiceEnum?(string value) => value == null ? null : new InternalCreateFineTuningJobRequestHyperparametersNEpochsChoiceEnum(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateFineTuningJobRequestHyperparametersNEpochsChoiceEnum other && Equals(other); diff --git a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestIntegrationType.cs b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestIntegrationType.cs index 96cf8fd86..5d9551e33 100644 --- a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestIntegrationType.cs +++ b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestIntegrationType.cs @@ -28,6 +28,8 @@ public InternalCreateFineTuningJobRequestIntegrationType(string value) public static implicit operator InternalCreateFineTuningJobRequestIntegrationType(string value) => new InternalCreateFineTuningJobRequestIntegrationType(value); + public static implicit operator InternalCreateFineTuningJobRequestIntegrationType?(string value) => value == null ? null : new InternalCreateFineTuningJobRequestIntegrationType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateFineTuningJobRequestIntegrationType other && Equals(other); diff --git a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestModel.cs b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestModel.cs index e00077760..b836a6e6f 100644 --- a/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestModel.cs +++ b/src/Generated/Models/FineTuning/InternalCreateFineTuningJobRequestModel.cs @@ -37,6 +37,8 @@ public InternalCreateFineTuningJobRequestModel(string value) public static implicit operator InternalCreateFineTuningJobRequestModel(string value) => new InternalCreateFineTuningJobRequestModel(value); + public static implicit operator InternalCreateFineTuningJobRequestModel?(string value) => value == null ? null : new InternalCreateFineTuningJobRequestModel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateFineTuningJobRequestModel other && Equals(other); diff --git a/src/Generated/Models/FineTuning/InternalFineTuneChatCompletionRequestAssistantMessageWeight.cs b/src/Generated/Models/FineTuning/InternalFineTuneChatCompletionRequestAssistantMessageWeight.cs index aa6ddd5cc..aae787060 100644 --- a/src/Generated/Models/FineTuning/InternalFineTuneChatCompletionRequestAssistantMessageWeight.cs +++ b/src/Generated/Models/FineTuning/InternalFineTuneChatCompletionRequestAssistantMessageWeight.cs @@ -31,6 +31,8 @@ public InternalFineTuneChatCompletionRequestAssistantMessageWeight(string value) public static implicit operator InternalFineTuneChatCompletionRequestAssistantMessageWeight(string value) => new InternalFineTuneChatCompletionRequestAssistantMessageWeight(value); + public static implicit operator InternalFineTuneChatCompletionRequestAssistantMessageWeight?(string value) => value == null ? null : new InternalFineTuneChatCompletionRequestAssistantMessageWeight(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalFineTuneChatCompletionRequestAssistantMessageWeight other && Equals(other); diff --git a/src/Generated/Models/FineTuning/InternalFineTuneMethodType.cs b/src/Generated/Models/FineTuning/InternalFineTuneMethodType.cs index 10aa2fdf4..ac56d23c5 100644 --- a/src/Generated/Models/FineTuning/InternalFineTuneMethodType.cs +++ b/src/Generated/Models/FineTuning/InternalFineTuneMethodType.cs @@ -34,6 +34,8 @@ public InternalFineTuneMethodType(string value) public static implicit operator InternalFineTuneMethodType(string value) => new InternalFineTuneMethodType(value); + public static implicit operator InternalFineTuneMethodType?(string value) => value == null ? null : new InternalFineTuneMethodType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalFineTuneMethodType other && Equals(other); diff --git a/src/Generated/Models/FineTuning/InternalFineTuneReinforcementHyperparametersReasoningEffort.cs b/src/Generated/Models/FineTuning/InternalFineTuneReinforcementHyperparametersReasoningEffort.cs index b9a75111e..c668255ec 100644 --- a/src/Generated/Models/FineTuning/InternalFineTuneReinforcementHyperparametersReasoningEffort.cs +++ b/src/Generated/Models/FineTuning/InternalFineTuneReinforcementHyperparametersReasoningEffort.cs @@ -37,6 +37,8 @@ public InternalFineTuneReinforcementHyperparametersReasoningEffort(string value) public static implicit operator InternalFineTuneReinforcementHyperparametersReasoningEffort(string value) => new InternalFineTuneReinforcementHyperparametersReasoningEffort(value); + public static implicit operator InternalFineTuneReinforcementHyperparametersReasoningEffort?(string value) => value == null ? null : new InternalFineTuneReinforcementHyperparametersReasoningEffort(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalFineTuneReinforcementHyperparametersReasoningEffort other && Equals(other); diff --git a/src/Generated/Models/FineTuning/InternalFineTuningIntegrationType.cs b/src/Generated/Models/FineTuning/InternalFineTuningIntegrationType.cs index 50bad24df..f2afc14cb 100644 --- a/src/Generated/Models/FineTuning/InternalFineTuningIntegrationType.cs +++ b/src/Generated/Models/FineTuning/InternalFineTuningIntegrationType.cs @@ -28,6 +28,8 @@ public InternalFineTuningIntegrationType(string value) public static implicit operator InternalFineTuningIntegrationType(string value) => new InternalFineTuningIntegrationType(value); + public static implicit operator InternalFineTuningIntegrationType?(string value) => value == null ? null : new InternalFineTuningIntegrationType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalFineTuningIntegrationType other && Equals(other); diff --git a/src/Generated/Models/Graders/GraderStringCheckOperation.cs b/src/Generated/Models/Graders/GraderStringCheckOperation.cs index b11b749da..8f9b9302a 100644 --- a/src/Generated/Models/Graders/GraderStringCheckOperation.cs +++ b/src/Generated/Models/Graders/GraderStringCheckOperation.cs @@ -39,6 +39,8 @@ public GraderStringCheckOperation(string value) public static implicit operator GraderStringCheckOperation(string value) => new GraderStringCheckOperation(value); + public static implicit operator GraderStringCheckOperation?(string value) => value == null ? null : new GraderStringCheckOperation(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is GraderStringCheckOperation other && Equals(other); diff --git a/src/Generated/Models/Graders/GraderTextSimilarityEvaluationMetric.cs b/src/Generated/Models/Graders/GraderTextSimilarityEvaluationMetric.cs index 76aaf398e..a5bc4c382 100644 --- a/src/Generated/Models/Graders/GraderTextSimilarityEvaluationMetric.cs +++ b/src/Generated/Models/Graders/GraderTextSimilarityEvaluationMetric.cs @@ -57,6 +57,8 @@ public GraderTextSimilarityEvaluationMetric(string value) public static implicit operator GraderTextSimilarityEvaluationMetric(string value) => new GraderTextSimilarityEvaluationMetric(value); + public static implicit operator GraderTextSimilarityEvaluationMetric?(string value) => value == null ? null : new GraderTextSimilarityEvaluationMetric(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is GraderTextSimilarityEvaluationMetric other && Equals(other); diff --git a/src/Generated/Models/Graders/GraderType.cs b/src/Generated/Models/Graders/GraderType.cs index 30f39fef6..65109d59d 100644 --- a/src/Generated/Models/Graders/GraderType.cs +++ b/src/Generated/Models/Graders/GraderType.cs @@ -45,6 +45,8 @@ public GraderType(string value) public static implicit operator GraderType(string value) => new GraderType(value); + public static implicit operator GraderType?(string value) => value == null ? null : new GraderType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is GraderType other && Equals(other); diff --git a/src/Generated/Models/Images/GeneratedImageBackground.cs b/src/Generated/Models/Images/GeneratedImageBackground.cs index 5cc89a256..6c5671e6a 100644 --- a/src/Generated/Models/Images/GeneratedImageBackground.cs +++ b/src/Generated/Models/Images/GeneratedImageBackground.cs @@ -36,6 +36,8 @@ public GeneratedImageBackground(string value) public static implicit operator GeneratedImageBackground(string value) => new GeneratedImageBackground(value); + public static implicit operator GeneratedImageBackground?(string value) => value == null ? null : new GeneratedImageBackground(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is GeneratedImageBackground other && Equals(other); diff --git a/src/Generated/Models/Images/GeneratedImageFileFormat.cs b/src/Generated/Models/Images/GeneratedImageFileFormat.cs index aeadc8d89..293c15e0f 100644 --- a/src/Generated/Models/Images/GeneratedImageFileFormat.cs +++ b/src/Generated/Models/Images/GeneratedImageFileFormat.cs @@ -36,6 +36,8 @@ public GeneratedImageFileFormat(string value) public static implicit operator GeneratedImageFileFormat(string value) => new GeneratedImageFileFormat(value); + public static implicit operator GeneratedImageFileFormat?(string value) => value == null ? null : new GeneratedImageFileFormat(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is GeneratedImageFileFormat other && Equals(other); diff --git a/src/Generated/Models/Images/GeneratedImageFormat.cs b/src/Generated/Models/Images/GeneratedImageFormat.cs index 51076da91..48d37e31f 100644 --- a/src/Generated/Models/Images/GeneratedImageFormat.cs +++ b/src/Generated/Models/Images/GeneratedImageFormat.cs @@ -27,6 +27,8 @@ public GeneratedImageFormat(string value) public static implicit operator GeneratedImageFormat(string value) => new GeneratedImageFormat(value); + public static implicit operator GeneratedImageFormat?(string value) => value == null ? null : new GeneratedImageFormat(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is GeneratedImageFormat other && Equals(other); diff --git a/src/Generated/Models/Images/GeneratedImageModerationLevel.cs b/src/Generated/Models/Images/GeneratedImageModerationLevel.cs index c55776921..073d63bfe 100644 --- a/src/Generated/Models/Images/GeneratedImageModerationLevel.cs +++ b/src/Generated/Models/Images/GeneratedImageModerationLevel.cs @@ -33,6 +33,8 @@ public GeneratedImageModerationLevel(string value) public static implicit operator GeneratedImageModerationLevel(string value) => new GeneratedImageModerationLevel(value); + public static implicit operator GeneratedImageModerationLevel?(string value) => value == null ? null : new GeneratedImageModerationLevel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is GeneratedImageModerationLevel other && Equals(other); diff --git a/src/Generated/Models/Images/GeneratedImageQuality.cs b/src/Generated/Models/Images/GeneratedImageQuality.cs index a3ff1687c..9f45c4a5b 100644 --- a/src/Generated/Models/Images/GeneratedImageQuality.cs +++ b/src/Generated/Models/Images/GeneratedImageQuality.cs @@ -43,6 +43,8 @@ public GeneratedImageQuality(string value) public static implicit operator GeneratedImageQuality(string value) => new GeneratedImageQuality(value); + public static implicit operator GeneratedImageQuality?(string value) => value == null ? null : new GeneratedImageQuality(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is GeneratedImageQuality other && Equals(other); diff --git a/src/Generated/Models/Images/GeneratedImageStyle.cs b/src/Generated/Models/Images/GeneratedImageStyle.cs index 1b16f5bc3..4c72a8849 100644 --- a/src/Generated/Models/Images/GeneratedImageStyle.cs +++ b/src/Generated/Models/Images/GeneratedImageStyle.cs @@ -31,6 +31,8 @@ public GeneratedImageStyle(string value) public static implicit operator GeneratedImageStyle(string value) => new GeneratedImageStyle(value); + public static implicit operator GeneratedImageStyle?(string value) => value == null ? null : new GeneratedImageStyle(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is GeneratedImageStyle other && Equals(other); diff --git a/src/Generated/Models/Images/InternalCreateImageEditRequestBackground.cs b/src/Generated/Models/Images/InternalCreateImageEditRequestBackground.cs index 8b153d05d..00bcd664d 100644 --- a/src/Generated/Models/Images/InternalCreateImageEditRequestBackground.cs +++ b/src/Generated/Models/Images/InternalCreateImageEditRequestBackground.cs @@ -34,6 +34,8 @@ public InternalCreateImageEditRequestBackground(string value) public static implicit operator InternalCreateImageEditRequestBackground(string value) => new InternalCreateImageEditRequestBackground(value); + public static implicit operator InternalCreateImageEditRequestBackground?(string value) => value == null ? null : new InternalCreateImageEditRequestBackground(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateImageEditRequestBackground other && Equals(other); diff --git a/src/Generated/Models/Images/InternalCreateImageEditRequestModel.cs b/src/Generated/Models/Images/InternalCreateImageEditRequestModel.cs index de8d17afe..31b68a63c 100644 --- a/src/Generated/Models/Images/InternalCreateImageEditRequestModel.cs +++ b/src/Generated/Models/Images/InternalCreateImageEditRequestModel.cs @@ -31,6 +31,8 @@ public InternalCreateImageEditRequestModel(string value) public static implicit operator InternalCreateImageEditRequestModel(string value) => new InternalCreateImageEditRequestModel(value); + public static implicit operator InternalCreateImageEditRequestModel?(string value) => value == null ? null : new InternalCreateImageEditRequestModel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateImageEditRequestModel other && Equals(other); diff --git a/src/Generated/Models/Images/InternalCreateImageEditRequestQuality.cs b/src/Generated/Models/Images/InternalCreateImageEditRequestQuality.cs index 29096f687..d4459857d 100644 --- a/src/Generated/Models/Images/InternalCreateImageEditRequestQuality.cs +++ b/src/Generated/Models/Images/InternalCreateImageEditRequestQuality.cs @@ -40,6 +40,8 @@ public InternalCreateImageEditRequestQuality(string value) public static implicit operator InternalCreateImageEditRequestQuality(string value) => new InternalCreateImageEditRequestQuality(value); + public static implicit operator InternalCreateImageEditRequestQuality?(string value) => value == null ? null : new InternalCreateImageEditRequestQuality(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateImageEditRequestQuality other && Equals(other); diff --git a/src/Generated/Models/Images/InternalCreateImageEditRequestResponseFormat.cs b/src/Generated/Models/Images/InternalCreateImageEditRequestResponseFormat.cs index 45be860fb..5650984c3 100644 --- a/src/Generated/Models/Images/InternalCreateImageEditRequestResponseFormat.cs +++ b/src/Generated/Models/Images/InternalCreateImageEditRequestResponseFormat.cs @@ -31,6 +31,8 @@ public InternalCreateImageEditRequestResponseFormat(string value) public static implicit operator InternalCreateImageEditRequestResponseFormat(string value) => new InternalCreateImageEditRequestResponseFormat(value); + public static implicit operator InternalCreateImageEditRequestResponseFormat?(string value) => value == null ? null : new InternalCreateImageEditRequestResponseFormat(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateImageEditRequestResponseFormat other && Equals(other); diff --git a/src/Generated/Models/Images/InternalCreateImageEditRequestSize.cs b/src/Generated/Models/Images/InternalCreateImageEditRequestSize.cs index b8b4a511d..cada2600a 100644 --- a/src/Generated/Models/Images/InternalCreateImageEditRequestSize.cs +++ b/src/Generated/Models/Images/InternalCreateImageEditRequestSize.cs @@ -43,6 +43,8 @@ public InternalCreateImageEditRequestSize(string value) public static implicit operator InternalCreateImageEditRequestSize(string value) => new InternalCreateImageEditRequestSize(value); + public static implicit operator InternalCreateImageEditRequestSize?(string value) => value == null ? null : new InternalCreateImageEditRequestSize(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateImageEditRequestSize other && Equals(other); diff --git a/src/Generated/Models/Images/InternalCreateImageRequestModel.cs b/src/Generated/Models/Images/InternalCreateImageRequestModel.cs index 03e4b723c..570816e6f 100644 --- a/src/Generated/Models/Images/InternalCreateImageRequestModel.cs +++ b/src/Generated/Models/Images/InternalCreateImageRequestModel.cs @@ -34,6 +34,8 @@ public InternalCreateImageRequestModel(string value) public static implicit operator InternalCreateImageRequestModel(string value) => new InternalCreateImageRequestModel(value); + public static implicit operator InternalCreateImageRequestModel?(string value) => value == null ? null : new InternalCreateImageRequestModel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateImageRequestModel other && Equals(other); diff --git a/src/Generated/Models/Images/InternalCreateImageVariationRequestModel.cs b/src/Generated/Models/Images/InternalCreateImageVariationRequestModel.cs index 1943637c6..6881b4baf 100644 --- a/src/Generated/Models/Images/InternalCreateImageVariationRequestModel.cs +++ b/src/Generated/Models/Images/InternalCreateImageVariationRequestModel.cs @@ -28,6 +28,8 @@ public InternalCreateImageVariationRequestModel(string value) public static implicit operator InternalCreateImageVariationRequestModel(string value) => new InternalCreateImageVariationRequestModel(value); + public static implicit operator InternalCreateImageVariationRequestModel?(string value) => value == null ? null : new InternalCreateImageVariationRequestModel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateImageVariationRequestModel other && Equals(other); diff --git a/src/Generated/Models/Images/InternalCreateImageVariationRequestResponseFormat.cs b/src/Generated/Models/Images/InternalCreateImageVariationRequestResponseFormat.cs index 49e0f1700..81c23ec2c 100644 --- a/src/Generated/Models/Images/InternalCreateImageVariationRequestResponseFormat.cs +++ b/src/Generated/Models/Images/InternalCreateImageVariationRequestResponseFormat.cs @@ -31,6 +31,8 @@ public InternalCreateImageVariationRequestResponseFormat(string value) public static implicit operator InternalCreateImageVariationRequestResponseFormat(string value) => new InternalCreateImageVariationRequestResponseFormat(value); + public static implicit operator InternalCreateImageVariationRequestResponseFormat?(string value) => value == null ? null : new InternalCreateImageVariationRequestResponseFormat(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateImageVariationRequestResponseFormat other && Equals(other); diff --git a/src/Generated/Models/Images/InternalCreateImageVariationRequestSize.cs b/src/Generated/Models/Images/InternalCreateImageVariationRequestSize.cs index 54362a93d..7b965c05d 100644 --- a/src/Generated/Models/Images/InternalCreateImageVariationRequestSize.cs +++ b/src/Generated/Models/Images/InternalCreateImageVariationRequestSize.cs @@ -34,6 +34,8 @@ public InternalCreateImageVariationRequestSize(string value) public static implicit operator InternalCreateImageVariationRequestSize(string value) => new InternalCreateImageVariationRequestSize(value); + public static implicit operator InternalCreateImageVariationRequestSize?(string value) => value == null ? null : new InternalCreateImageVariationRequestSize(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateImageVariationRequestSize other && Equals(other); diff --git a/src/Generated/Models/Internal/InternalModelIdsShared.cs b/src/Generated/Models/Internal/InternalModelIdsShared.cs index 630873289..b7c24f2b2 100644 --- a/src/Generated/Models/Internal/InternalModelIdsShared.cs +++ b/src/Generated/Models/Internal/InternalModelIdsShared.cs @@ -190,6 +190,8 @@ public InternalModelIdsShared(string value) public static implicit operator InternalModelIdsShared(string value) => new InternalModelIdsShared(value); + public static implicit operator InternalModelIdsShared?(string value) => value == null ? null : new InternalModelIdsShared(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalModelIdsShared other && Equals(other); diff --git a/src/Generated/Models/Internal/InternalResponseFormatType.cs b/src/Generated/Models/Internal/InternalResponseFormatType.cs index b998e0695..a0cea6dd5 100644 --- a/src/Generated/Models/Internal/InternalResponseFormatType.cs +++ b/src/Generated/Models/Internal/InternalResponseFormatType.cs @@ -34,6 +34,8 @@ public InternalResponseFormatType(string value) public static implicit operator InternalResponseFormatType(string value) => new InternalResponseFormatType(value); + public static implicit operator InternalResponseFormatType?(string value) => value == null ? null : new InternalResponseFormatType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalResponseFormatType other && Equals(other); diff --git a/src/Generated/Models/Internal/InternalServiceTier.cs b/src/Generated/Models/Internal/InternalServiceTier.cs index aaa2faf49..b4921faef 100644 --- a/src/Generated/Models/Internal/InternalServiceTier.cs +++ b/src/Generated/Models/Internal/InternalServiceTier.cs @@ -37,6 +37,8 @@ public InternalServiceTier(string value) public static implicit operator InternalServiceTier(string value) => new InternalServiceTier(value); + public static implicit operator InternalServiceTier?(string value) => value == null ? null : new InternalServiceTier(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalServiceTier other && Equals(other); diff --git a/src/Generated/Models/Internal/InternalVoiceIdsShared.cs b/src/Generated/Models/Internal/InternalVoiceIdsShared.cs index dcc690c27..95b6f9252 100644 --- a/src/Generated/Models/Internal/InternalVoiceIdsShared.cs +++ b/src/Generated/Models/Internal/InternalVoiceIdsShared.cs @@ -58,6 +58,8 @@ public InternalVoiceIdsShared(string value) public static implicit operator InternalVoiceIdsShared(string value) => new InternalVoiceIdsShared(value); + public static implicit operator InternalVoiceIdsShared?(string value) => value == null ? null : new InternalVoiceIdsShared(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalVoiceIdsShared other && Equals(other); diff --git a/src/Generated/Models/Internal/InternalWebSearchContextSize.cs b/src/Generated/Models/Internal/InternalWebSearchContextSize.cs index b56b31fdd..1bf58b98b 100644 --- a/src/Generated/Models/Internal/InternalWebSearchContextSize.cs +++ b/src/Generated/Models/Internal/InternalWebSearchContextSize.cs @@ -34,6 +34,8 @@ public InternalWebSearchContextSize(string value) public static implicit operator InternalWebSearchContextSize(string value) => new InternalWebSearchContextSize(value); + public static implicit operator InternalWebSearchContextSize?(string value) => value == null ? null : new InternalWebSearchContextSize(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalWebSearchContextSize other && Equals(other); diff --git a/src/Generated/Models/LegacyCompletions/InternalCreateCompletionRequestModel.cs b/src/Generated/Models/LegacyCompletions/InternalCreateCompletionRequestModel.cs index 51bc2950a..cceec977b 100644 --- a/src/Generated/Models/LegacyCompletions/InternalCreateCompletionRequestModel.cs +++ b/src/Generated/Models/LegacyCompletions/InternalCreateCompletionRequestModel.cs @@ -34,6 +34,8 @@ public InternalCreateCompletionRequestModel(string value) public static implicit operator InternalCreateCompletionRequestModel(string value) => new InternalCreateCompletionRequestModel(value); + public static implicit operator InternalCreateCompletionRequestModel?(string value) => value == null ? null : new InternalCreateCompletionRequestModel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateCompletionRequestModel other && Equals(other); diff --git a/src/Generated/Models/LegacyCompletions/InternalCreateCompletionResponseChoiceFinishReason.cs b/src/Generated/Models/LegacyCompletions/InternalCreateCompletionResponseChoiceFinishReason.cs index f94c8ed51..69013e210 100644 --- a/src/Generated/Models/LegacyCompletions/InternalCreateCompletionResponseChoiceFinishReason.cs +++ b/src/Generated/Models/LegacyCompletions/InternalCreateCompletionResponseChoiceFinishReason.cs @@ -34,6 +34,8 @@ public InternalCreateCompletionResponseChoiceFinishReason(string value) public static implicit operator InternalCreateCompletionResponseChoiceFinishReason(string value) => new InternalCreateCompletionResponseChoiceFinishReason(value); + public static implicit operator InternalCreateCompletionResponseChoiceFinishReason?(string value) => value == null ? null : new InternalCreateCompletionResponseChoiceFinishReason(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateCompletionResponseChoiceFinishReason other && Equals(other); diff --git a/src/Generated/Models/Moderations/InternalCreateModerationRequestModel.cs b/src/Generated/Models/Moderations/InternalCreateModerationRequestModel.cs index 954a0f977..e5d3cf650 100644 --- a/src/Generated/Models/Moderations/InternalCreateModerationRequestModel.cs +++ b/src/Generated/Models/Moderations/InternalCreateModerationRequestModel.cs @@ -37,6 +37,8 @@ public InternalCreateModerationRequestModel(string value) public static implicit operator InternalCreateModerationRequestModel(string value) => new InternalCreateModerationRequestModel(value); + public static implicit operator InternalCreateModerationRequestModel?(string value) => value == null ? null : new InternalCreateModerationRequestModel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCreateModerationRequestModel other && Equals(other); diff --git a/src/Generated/Models/OpenAIContext.cs b/src/Generated/Models/OpenAIContext.cs index beacae960..c789fa530 100644 --- a/src/Generated/Models/OpenAIContext.cs +++ b/src/Generated/Models/OpenAIContext.cs @@ -3,9 +3,806 @@ #nullable disable using System.ClientModel.Primitives; +using OpenAI.Assistants; +using OpenAI.Audio; +using OpenAI.Batch; +using OpenAI.Chat; +using OpenAI.Containers; +using OpenAI.Embeddings; +using OpenAI.Evals; +using OpenAI.Files; +using OpenAI.FineTuning; +using OpenAI.Graders; +using OpenAI.Images; +using OpenAI.Internal; +using OpenAI.LegacyCompletions; +using OpenAI.Models; +using OpenAI.Moderations; +using OpenAI.Realtime; +using OpenAI.Responses; +using OpenAI.VectorStores; namespace OpenAI { + [ModelReaderWriterBuildable(typeof(InternalListAssistantsResponse))] + [ModelReaderWriterBuildable(typeof(Assistant))] + [ModelReaderWriterBuildable(typeof(ToolDefinition))] + [ModelReaderWriterBuildable(typeof(ToolResources))] + [ModelReaderWriterBuildable(typeof(UnknownAssistantToolDefinition))] + [ModelReaderWriterBuildable(typeof(CodeInterpreterToolDefinition))] + [ModelReaderWriterBuildable(typeof(FileSearchToolDefinition))] + [ModelReaderWriterBuildable(typeof(InternalAssistantToolsFileSearchFileSearch))] + [ModelReaderWriterBuildable(typeof(FileSearchRankingOptions))] + [ModelReaderWriterBuildable(typeof(FunctionToolDefinition))] + [ModelReaderWriterBuildable(typeof(InternalFunctionDefinition))] + [ModelReaderWriterBuildable(typeof(CodeInterpreterToolResources))] + [ModelReaderWriterBuildable(typeof(InternalToolResourcesFileSearchIdsOnly))] + [ModelReaderWriterBuildable(typeof(InternalResponseFormatText))] + [ModelReaderWriterBuildable(typeof(InternalResponseFormat))] + [ModelReaderWriterBuildable(typeof(InternalUnknownResponseFormat))] + [ModelReaderWriterBuildable(typeof(InternalResponseFormatJsonObject))] + [ModelReaderWriterBuildable(typeof(InternalResponseFormatJsonSchema))] + [ModelReaderWriterBuildable(typeof(InternalResponseFormatJsonSchemaJsonSchema))] + [ModelReaderWriterBuildable(typeof(InternalResponseFormatJsonSchemaSchema))] + [ModelReaderWriterBuildable(typeof(OpenAIErrorResponse))] + [ModelReaderWriterBuildable(typeof(OpenAIError))] + [ModelReaderWriterBuildable(typeof(AssistantCreationOptions))] + [ModelReaderWriterBuildable(typeof(InternalCreateAssistantRequestToolResources))] + [ModelReaderWriterBuildable(typeof(InternalCreateAssistantRequestToolResourcesCodeInterpreter))] + [ModelReaderWriterBuildable(typeof(FileSearchToolResources))] + [ModelReaderWriterBuildable(typeof(VectorStoreCreationHelper))] + [ModelReaderWriterBuildable(typeof(InternalChunkingStrategyRequestParam))] + [ModelReaderWriterBuildable(typeof(InternalUnknownChunkingStrategyRequestParamProxy))] + [ModelReaderWriterBuildable(typeof(InternalAutoChunkingStrategyRequestParam))] + [ModelReaderWriterBuildable(typeof(InternalStaticChunkingStrategyRequestParam))] + [ModelReaderWriterBuildable(typeof(InternalStaticChunkingStrategy))] + [ModelReaderWriterBuildable(typeof(AssistantModificationOptions))] + [ModelReaderWriterBuildable(typeof(InternalModifyAssistantRequestToolResources))] + [ModelReaderWriterBuildable(typeof(InternalModifyAssistantRequestToolResourcesCodeInterpreter))] + [ModelReaderWriterBuildable(typeof(AssistantDeletionResult))] + [ModelReaderWriterBuildable(typeof(SpeechGenerationOptions))] + [ModelReaderWriterBuildable(typeof(AudioTranscriptionOptions))] + [ModelReaderWriterBuildable(typeof(InternalVadConfig))] + [ModelReaderWriterBuildable(typeof(InternalCreateTranscriptionResponseVerboseJson))] + [ModelReaderWriterBuildable(typeof(TranscribedWord))] + [ModelReaderWriterBuildable(typeof(TranscribedSegment))] + [ModelReaderWriterBuildable(typeof(InternalCreateTranscriptionResponseJson))] + [ModelReaderWriterBuildable(typeof(InternalCreateTranscriptionResponseJsonLogprob))] + [ModelReaderWriterBuildable(typeof(StreamingAudioTranscriptionUpdate))] + [ModelReaderWriterBuildable(typeof(InternalUnknownCreateTranscriptionResponseStreamEvent))] + [ModelReaderWriterBuildable(typeof(StreamingAudioTranscriptionTextDeltaUpdate))] + [ModelReaderWriterBuildable(typeof(InternalTranscriptTextDeltaEventLogprob))] + [ModelReaderWriterBuildable(typeof(StreamingAudioTranscriptionTextDoneUpdate))] + [ModelReaderWriterBuildable(typeof(InternalTranscriptTextDoneEventLogprob))] + [ModelReaderWriterBuildable(typeof(AudioTranslationOptions))] + [ModelReaderWriterBuildable(typeof(AudioTranslation))] + [ModelReaderWriterBuildable(typeof(InternalCreateTranslationResponseJson))] + [ModelReaderWriterBuildable(typeof(InternalCreateBatchRequest))] + [ModelReaderWriterBuildable(typeof(InternalBatchJob))] + [ModelReaderWriterBuildable(typeof(InternalBatchErrors))] + [ModelReaderWriterBuildable(typeof(InternalBatchError))] + [ModelReaderWriterBuildable(typeof(InternalBatchRequestCounts))] + [ModelReaderWriterBuildable(typeof(InternalListBatchesResponse))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionList))] + [ModelReaderWriterBuildable(typeof(ChatCompletion))] + [ModelReaderWriterBuildable(typeof(ChatTokenUsage))] + [ModelReaderWriterBuildable(typeof(InternalCreateChatCompletionResponseChoice))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionResponseMessage))] + [ModelReaderWriterBuildable(typeof(ChatToolCall))] + [ModelReaderWriterBuildable(typeof(ChatMessageAnnotation))] + [ModelReaderWriterBuildable(typeof(ChatOutputAudio))] + [ModelReaderWriterBuildable(typeof(InternalCreateChatCompletionResponseChoiceLogprobs))] + [ModelReaderWriterBuildable(typeof(ChatTokenLogProbabilityDetails))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionMessageToolCallFunction))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionResponseMessageAnnotationUrlCitation))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionResponseMessageFunctionCall))] + [ModelReaderWriterBuildable(typeof(ChatTokenTopLogProbabilityDetails))] + [ModelReaderWriterBuildable(typeof(ChatOutputTokenUsageDetails))] + [ModelReaderWriterBuildable(typeof(ChatInputTokenUsageDetails))] + [ModelReaderWriterBuildable(typeof(ChatCompletionOptions))] + [ModelReaderWriterBuildable(typeof(ChatWebSearchOptions))] + [ModelReaderWriterBuildable(typeof(ChatTool))] + [ModelReaderWriterBuildable(typeof(ChatMessage))] + [ModelReaderWriterBuildable(typeof(InternalUnknownChatMessage))] + [ModelReaderWriterBuildable(typeof(ChatMessageContentPart))] + [ModelReaderWriterBuildable(typeof(InternalUnknownChatCompletionRequestMessageContentPart))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionRequestMessageContentPartText))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionRequestMessageContentPartImage))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionRequestMessageContentPartImageImageUrl))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionRequestMessageContentPartRefusal))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionRequestMessageContentPartFile))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionRequestMessageContentPartFileFile))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionRequestMessageContentPartAudio))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionRequestMessageContentPartAudioInputAudio))] + [ModelReaderWriterBuildable(typeof(SystemChatMessage))] + [ModelReaderWriterBuildable(typeof(DeveloperChatMessage))] + [ModelReaderWriterBuildable(typeof(UserChatMessage))] + [ModelReaderWriterBuildable(typeof(AssistantChatMessage))] + [ModelReaderWriterBuildable(typeof(ChatOutputAudioReference))] + [ModelReaderWriterBuildable(typeof(ChatFunctionCall))] + [ModelReaderWriterBuildable(typeof(ToolChatMessage))] + [ModelReaderWriterBuildable(typeof(FunctionChatMessage))] + [ModelReaderWriterBuildable(typeof(InternalCreateChatCompletionRequestWebSearchOptionsUserLocation1))] + [ModelReaderWriterBuildable(typeof(InternalWebSearchLocation))] + [ModelReaderWriterBuildable(typeof(ChatAudioOptions))] + [ModelReaderWriterBuildable(typeof(ChatOutputPrediction))] + [ModelReaderWriterBuildable(typeof(InternalUnknownChatOutputPrediction))] + [ModelReaderWriterBuildable(typeof(InternalChatOutputPredictionContent))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionStreamOptions))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionNamedToolChoice))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionNamedToolChoiceFunction))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionFunctionCallOption))] + [ModelReaderWriterBuildable(typeof(ChatFunction))] + [ModelReaderWriterBuildable(typeof(StreamingChatCompletionUpdate))] + [ModelReaderWriterBuildable(typeof(InternalCreateChatCompletionStreamResponseChoice))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionStreamResponseDelta))] + [ModelReaderWriterBuildable(typeof(StreamingChatOutputAudioUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingChatFunctionCallUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingChatToolCallUpdate))] + [ModelReaderWriterBuildable(typeof(InternalCreateChatCompletionStreamResponseChoiceLogprobs))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionMessageToolCallChunkFunction))] + [ModelReaderWriterBuildable(typeof(InternalUpdateChatCompletionRequest))] + [ModelReaderWriterBuildable(typeof(ChatCompletionDeletionResult))] + [ModelReaderWriterBuildable(typeof(InternalChatCompletionMessageList))] + [ModelReaderWriterBuildable(typeof(ChatCompletionMessageListDatum))] + [ModelReaderWriterBuildable(typeof(EmbeddingGenerationOptions))] + [ModelReaderWriterBuildable(typeof(OpenAIEmbeddingCollection))] + [ModelReaderWriterBuildable(typeof(EmbeddingTokenUsage))] + [ModelReaderWriterBuildable(typeof(OpenAIEmbedding))] + [ModelReaderWriterBuildable(typeof(OpenAIFileCollection))] + [ModelReaderWriterBuildable(typeof(OpenAIFile))] + [ModelReaderWriterBuildable(typeof(InternalFileUploadOptions))] + [ModelReaderWriterBuildable(typeof(FileDeletionResult))] + [ModelReaderWriterBuildable(typeof(InternalListFineTuningCheckpointPermissionResponse))] + [ModelReaderWriterBuildable(typeof(InternalFineTuningCheckpointPermission))] + [ModelReaderWriterBuildable(typeof(InternalCreateFineTuningCheckpointPermissionRequest))] + [ModelReaderWriterBuildable(typeof(InternalDeleteFineTuningCheckpointPermissionResponse))] + [ModelReaderWriterBuildable(typeof(FineTuningOptions))] + [ModelReaderWriterBuildable(typeof(HyperparameterOptions))] + [ModelReaderWriterBuildable(typeof(FineTuningIntegration))] + [ModelReaderWriterBuildable(typeof(UnknownCreateFineTuningJobRequestIntegration))] + [ModelReaderWriterBuildable(typeof(WeightsAndBiasesIntegration))] + [ModelReaderWriterBuildable(typeof(InternalCreateFineTuningJobRequestWandbIntegrationWandb))] + [ModelReaderWriterBuildable(typeof(FineTuningTrainingMethod))] + [ModelReaderWriterBuildable(typeof(InternalFineTuneReinforcementMethod))] + [ModelReaderWriterBuildable(typeof(FineTuneReinforcementHyperparameters))] + [ModelReaderWriterBuildable(typeof(InternalFineTuningJobRequestMethodSupervised))] + [ModelReaderWriterBuildable(typeof(HyperparametersForSupervised))] + [ModelReaderWriterBuildable(typeof(InternalFineTuningJobRequestMethodDpo))] + [ModelReaderWriterBuildable(typeof(HyperparametersForDPO))] + [ModelReaderWriterBuildable(typeof(GraderStringCheck))] + [ModelReaderWriterBuildable(typeof(Grader))] + [ModelReaderWriterBuildable(typeof(UnknownGrader))] + [ModelReaderWriterBuildable(typeof(GraderTextSimilarity))] + [ModelReaderWriterBuildable(typeof(GraderPython))] + [ModelReaderWriterBuildable(typeof(GraderScoreModel))] + [ModelReaderWriterBuildable(typeof(InternalEvalItem))] + [ModelReaderWriterBuildable(typeof(InternalEvalItemContent))] + [ModelReaderWriterBuildable(typeof(InternalUnknownEvalItemContent))] + [ModelReaderWriterBuildable(typeof(InternalEvalItemContentInputText))] + [ModelReaderWriterBuildable(typeof(InternalEvalItemContentOutputText))] + [ModelReaderWriterBuildable(typeof(GraderMulti))] + [ModelReaderWriterBuildable(typeof(GraderLabelModel))] + [ModelReaderWriterBuildable(typeof(InternalFineTuningJob))] + [ModelReaderWriterBuildable(typeof(FineTuningError))] + [ModelReaderWriterBuildable(typeof(FineTuningHyperparameters))] + [ModelReaderWriterBuildable(typeof(InternalFineTuningIntegration))] + [ModelReaderWriterBuildable(typeof(UnknownFineTuningIntegration))] + [ModelReaderWriterBuildable(typeof(InternalFineTuningIntegrationWandb))] + [ModelReaderWriterBuildable(typeof(FineTuningIntegrationWandbWandb))] + [ModelReaderWriterBuildable(typeof(InternalListPaginatedFineTuningJobsResponse))] + [ModelReaderWriterBuildable(typeof(InternalListFineTuningJobCheckpointsResponse))] + [ModelReaderWriterBuildable(typeof(FineTuningCheckpoint))] + [ModelReaderWriterBuildable(typeof(FineTuningCheckpointMetrics))] + [ModelReaderWriterBuildable(typeof(InternalListFineTuningJobEventsResponse))] + [ModelReaderWriterBuildable(typeof(FineTuningEvent))] + [ModelReaderWriterBuildable(typeof(InternalEvalList))] + [ModelReaderWriterBuildable(typeof(InternalEval))] + [ModelReaderWriterBuildable(typeof(InternalEvalDataSourceConfigResource))] + [ModelReaderWriterBuildable(typeof(InternalEvalGraderResource))] + [ModelReaderWriterBuildable(typeof(InternalUnknownEvalDataSourceConfigResource))] + [ModelReaderWriterBuildable(typeof(InternalEvalCustomDataSourceConfigResource))] + [ModelReaderWriterBuildable(typeof(InternalEvalStoredCompletionsDataSourceConfigResource))] + [ModelReaderWriterBuildable(typeof(InternalEvalLogsDataSourceConfigResource))] + [ModelReaderWriterBuildable(typeof(InternalUnknownEvalGraderResource))] + [ModelReaderWriterBuildable(typeof(InternalEvalGraderLabelModelResource))] + [ModelReaderWriterBuildable(typeof(InternalEvalGraderTextSimilarityResource))] + [ModelReaderWriterBuildable(typeof(InternalEvalGraderPythonResource))] + [ModelReaderWriterBuildable(typeof(InternalEvalGraderScoreModelResource))] + [ModelReaderWriterBuildable(typeof(InternalCreateEvalRequest))] + [ModelReaderWriterBuildable(typeof(InternalEvalDataSourceConfigParams))] + [ModelReaderWriterBuildable(typeof(InternalEvalGraderParams))] + [ModelReaderWriterBuildable(typeof(InternalUnknownEvalDataSourceConfigParams))] + [ModelReaderWriterBuildable(typeof(InternalEvalCustomDataSourceConfigParams))] + [ModelReaderWriterBuildable(typeof(InternalEvalLogsDataSourceConfigParams))] + [ModelReaderWriterBuildable(typeof(InternalEvalStoredCompletionsDataSourceConfigParams))] + [ModelReaderWriterBuildable(typeof(InternalUnknownEvalGraderParams))] + [ModelReaderWriterBuildable(typeof(InternalEvalGraderLabelModelParams))] + [ModelReaderWriterBuildable(typeof(InternalEvalGraderLabelModelParamsInput))] + [ModelReaderWriterBuildable(typeof(InternalEvalGraderStringCheckParams))] + [ModelReaderWriterBuildable(typeof(InternalEvalGraderTextSimilarityParams))] + [ModelReaderWriterBuildable(typeof(InternalEvalGraderPythonParams))] + [ModelReaderWriterBuildable(typeof(InternalEvalGraderScoreModelParams))] + [ModelReaderWriterBuildable(typeof(InternalUpdateEvalRequest))] + [ModelReaderWriterBuildable(typeof(InternalMetadataPropertyForRequest))] + [ModelReaderWriterBuildable(typeof(InternalDeleteEvalResponse))] + [ModelReaderWriterBuildable(typeof(InternalEvalRunList))] + [ModelReaderWriterBuildable(typeof(InternalEvalRun))] + [ModelReaderWriterBuildable(typeof(InternalEvalRunResultCounts))] + [ModelReaderWriterBuildable(typeof(InternalEvalRunPerModelUsage))] + [ModelReaderWriterBuildable(typeof(InternalEvalRunPerTestingCriteriaResult))] + [ModelReaderWriterBuildable(typeof(InternalEvalRunDataSourceResource))] + [ModelReaderWriterBuildable(typeof(InternalEvalApiError))] + [ModelReaderWriterBuildable(typeof(InternalCreateEvalRunRequest))] + [ModelReaderWriterBuildable(typeof(InternalEvalRunDataSourceParams))] + [ModelReaderWriterBuildable(typeof(InternalUnknownEvalRunDataSourceParams))] + [ModelReaderWriterBuildable(typeof(InternalEvalJsonlRunDataSourceParams))] + [ModelReaderWriterBuildable(typeof(InternalEvalRunFileContentDataContentSource))] + [ModelReaderWriterBuildable(typeof(InternalEvalRunFileContentDataContentSourceContent))] + [ModelReaderWriterBuildable(typeof(InternalEvalRunDataContentSource))] + [ModelReaderWriterBuildable(typeof(InternalUnknownEvalRunDataContentSource))] + [ModelReaderWriterBuildable(typeof(InternalEvalRunFileIdDataContentSource))] + [ModelReaderWriterBuildable(typeof(InternalEvalRunStoredCompletionsDataContentSource))] + [ModelReaderWriterBuildable(typeof(InternalEvalRunResponsesDataContentSource))] + [ModelReaderWriterBuildable(typeof(InternalEvalCompletionsRunDataSourceParams))] + [ModelReaderWriterBuildable(typeof(InternalEvalCompletionsRunDataSourceParamsSamplingParams))] + [ModelReaderWriterBuildable(typeof(ResponseTextFormat))] + [ModelReaderWriterBuildable(typeof(InternalEvalCompletionsRunDataSourceParamsInputMessages1))] + [ModelReaderWriterBuildable(typeof(InternalEvalCompletionsRunDataSourceParamsInputMessages2))] + [ModelReaderWriterBuildable(typeof(InternalUnknownResponseTextFormatConfiguration))] + [ModelReaderWriterBuildable(typeof(InternalResponsesTextFormatText))] + [ModelReaderWriterBuildable(typeof(InternalResponsesTextFormatJsonObject))] + [ModelReaderWriterBuildable(typeof(InternalResponsesTextFormatJsonSchema))] + [ModelReaderWriterBuildable(typeof(InternalEvalResponsesRunDataSourceParams))] + [ModelReaderWriterBuildable(typeof(InternalEvalResponsesRunDataSourceParamsSamplingParams))] + [ModelReaderWriterBuildable(typeof(ResponseTool))] + [ModelReaderWriterBuildable(typeof(InternalEvalResponsesRunDataSourceParamsSamplingParamsText))] + [ModelReaderWriterBuildable(typeof(InternalEvalResponsesRunDataSourceParamsInputMessages1))] + [ModelReaderWriterBuildable(typeof(InternalEvalResponsesRunDataSourceParamsInputMessagesTemplate1))] + [ModelReaderWriterBuildable(typeof(InternalEvalResponsesRunDataSourceParamsInputMessages2))] + [ModelReaderWriterBuildable(typeof(InternalUnknownTool))] + [ModelReaderWriterBuildable(typeof(InternalFunctionTool))] + [ModelReaderWriterBuildable(typeof(InternalFileSearchTool))] + [ModelReaderWriterBuildable(typeof(FileSearchToolRankingOptions))] + [ModelReaderWriterBuildable(typeof(InternalComparisonFilter))] + [ModelReaderWriterBuildable(typeof(InternalUnknownComparisonFilter))] + [ModelReaderWriterBuildable(typeof(InternalComparisonFilterEquals))] + [ModelReaderWriterBuildable(typeof(InternalComparisonFilterNotEquals))] + [ModelReaderWriterBuildable(typeof(InternalComparisonFilterGreaterThan))] + [ModelReaderWriterBuildable(typeof(InternalComparisonFilterGreaterThanOrEquals))] + [ModelReaderWriterBuildable(typeof(InternalComparisonFilterLessThan))] + [ModelReaderWriterBuildable(typeof(InternalComparisonFilterLessThanOrEquals))] + [ModelReaderWriterBuildable(typeof(InternalCompoundFilter))] + [ModelReaderWriterBuildable(typeof(InternalUnknownCompoundFilter))] + [ModelReaderWriterBuildable(typeof(InternalCompoundFilterAnd))] + [ModelReaderWriterBuildable(typeof(InternalCompoundFilterOr))] + [ModelReaderWriterBuildable(typeof(InternalComputerUsePreviewTool))] + [ModelReaderWriterBuildable(typeof(InternalWebSearchTool))] + [ModelReaderWriterBuildable(typeof(InternalLocation))] + [ModelReaderWriterBuildable(typeof(InternalUnknownLocation))] + [ModelReaderWriterBuildable(typeof(InternalApproximateLocation))] + [ModelReaderWriterBuildable(typeof(InternalCodeInterpreterTool))] + [ModelReaderWriterBuildable(typeof(InternalCodeInterpreterToolAuto))] + [ModelReaderWriterBuildable(typeof(InternalImageGenTool))] + [ModelReaderWriterBuildable(typeof(InternalImageGenToolInputImageMask))] + [ModelReaderWriterBuildable(typeof(InternalLocalShellTool))] + [ModelReaderWriterBuildable(typeof(InternalMCPTool))] + [ModelReaderWriterBuildable(typeof(InternalMCPToolAllowedTools1))] + [ModelReaderWriterBuildable(typeof(InternalMCPToolRequireApproval1))] + [ModelReaderWriterBuildable(typeof(InternalMCPToolRequireApprovalAlways))] + [ModelReaderWriterBuildable(typeof(InternalMCPToolRequireApprovalNever))] + [ModelReaderWriterBuildable(typeof(InternalDeleteEvalRunResponse))] + [ModelReaderWriterBuildable(typeof(InternalEvalRunOutputItemList))] + [ModelReaderWriterBuildable(typeof(InternalEvalRunOutputItem))] + [ModelReaderWriterBuildable(typeof(InternalEvalRunOutputItemSample))] + [ModelReaderWriterBuildable(typeof(InternalEvalRunOutputItemSampleInput))] + [ModelReaderWriterBuildable(typeof(InternalEvalRunOutputItemSampleOutput))] + [ModelReaderWriterBuildable(typeof(InternalEvalRunOutputItemSampleUsage))] + [ModelReaderWriterBuildable(typeof(ResponseCreationOptions))] + [ModelReaderWriterBuildable(typeof(ResponseReasoningOptions))] + [ModelReaderWriterBuildable(typeof(ResponseTextOptions))] + [ModelReaderWriterBuildable(typeof(InternalToolChoiceObject))] + [ModelReaderWriterBuildable(typeof(InternalUnknownToolChoiceObject))] + [ModelReaderWriterBuildable(typeof(InternalToolChoiceObjectFileSearch))] + [ModelReaderWriterBuildable(typeof(InternalToolChoiceObjectComputer))] + [ModelReaderWriterBuildable(typeof(InternalToolChoiceObjectWebSearch))] + [ModelReaderWriterBuildable(typeof(InternalToolChoiceObjectImageGen))] + [ModelReaderWriterBuildable(typeof(InternalToolChoiceObjectCodeInterpreter))] + [ModelReaderWriterBuildable(typeof(InternalToolChoiceObjectMCP))] + [ModelReaderWriterBuildable(typeof(InternalToolChoiceObjectFunction))] + [ModelReaderWriterBuildable(typeof(InternalImplicitUserMessage))] + [ModelReaderWriterBuildable(typeof(ResponseContentPart))] + [ModelReaderWriterBuildable(typeof(InternalUnknownItemContent))] + [ModelReaderWriterBuildable(typeof(InternalItemContentInputAudio))] + [ModelReaderWriterBuildable(typeof(InternalItemContentOutputAudio))] + [ModelReaderWriterBuildable(typeof(InternalItemContentRefusal))] + [ModelReaderWriterBuildable(typeof(InternalItemContentInputText))] + [ModelReaderWriterBuildable(typeof(InternalItemContentInputImage))] + [ModelReaderWriterBuildable(typeof(InternalItemContentInputFile))] + [ModelReaderWriterBuildable(typeof(InternalItemContentOutputText))] + [ModelReaderWriterBuildable(typeof(ResponseMessageAnnotation))] + [ModelReaderWriterBuildable(typeof(InternalLogProb))] + [ModelReaderWriterBuildable(typeof(InternalTopLogProb))] + [ModelReaderWriterBuildable(typeof(InternalUnknownAnnotation))] + [ModelReaderWriterBuildable(typeof(InternalAnnotationFileCitation))] + [ModelReaderWriterBuildable(typeof(InternalAnnotationUrlCitation))] + [ModelReaderWriterBuildable(typeof(InternalAnnotationFilePath))] + [ModelReaderWriterBuildable(typeof(InternalItemParam))] + [ModelReaderWriterBuildable(typeof(InternalUnknownItemParam))] + [ModelReaderWriterBuildable(typeof(InternalFileSearchToolCallItemParam))] + [ModelReaderWriterBuildable(typeof(FileSearchCallResult))] + [ModelReaderWriterBuildable(typeof(InternalComputerUsePreviewToolCallItemParam))] + [ModelReaderWriterBuildable(typeof(ComputerCallAction))] + [ModelReaderWriterBuildable(typeof(ComputerCallSafetyCheck))] + [ModelReaderWriterBuildable(typeof(InternalUnknownComputerAction))] + [ModelReaderWriterBuildable(typeof(InternalComputerActionClick))] + [ModelReaderWriterBuildable(typeof(InternalComputerActionDoubleClick))] + [ModelReaderWriterBuildable(typeof(InternalComputerActionDrag))] + [ModelReaderWriterBuildable(typeof(InternalCoordinate))] + [ModelReaderWriterBuildable(typeof(InternalComputerActionMove))] + [ModelReaderWriterBuildable(typeof(InternalComputerActionScreenshot))] + [ModelReaderWriterBuildable(typeof(InternalComputerActionScroll))] + [ModelReaderWriterBuildable(typeof(InternalComputerActionTypeKeys))] + [ModelReaderWriterBuildable(typeof(InternalComputerActionWait))] + [ModelReaderWriterBuildable(typeof(InternalComputerActionKeyPress))] + [ModelReaderWriterBuildable(typeof(InternalComputerUsePreviewToolCallOutputItemParam))] + [ModelReaderWriterBuildable(typeof(ComputerOutput))] + [ModelReaderWriterBuildable(typeof(InternalUnknownComputerToolCallOutputItemOutput))] + [ModelReaderWriterBuildable(typeof(InternalComputerToolCallOutputItemOutputComputerScreenshot))] + [ModelReaderWriterBuildable(typeof(InternalWebSearchToolCallItemParam))] + [ModelReaderWriterBuildable(typeof(InternalFunctionToolCallItemParam))] + [ModelReaderWriterBuildable(typeof(InternalFunctionToolCallOutputItemParam))] + [ModelReaderWriterBuildable(typeof(InternalReasoningItemParam))] + [ModelReaderWriterBuildable(typeof(ReasoningSummaryPart))] + [ModelReaderWriterBuildable(typeof(InternalUnknownReasoningItemSummaryPart))] + [ModelReaderWriterBuildable(typeof(ReasoningSummaryTextPart))] + [ModelReaderWriterBuildable(typeof(InternalItemReferenceItemParam))] + [ModelReaderWriterBuildable(typeof(InternalImageGenToolCallItemParam))] + [ModelReaderWriterBuildable(typeof(InternalCodeInterpreterToolCallItemParam))] + [ModelReaderWriterBuildable(typeof(InternalCodeInterpreterTextOutput))] + [ModelReaderWriterBuildable(typeof(InternalCodeInterpreterFileOutput))] + [ModelReaderWriterBuildable(typeof(InternalCodeInterpreterFileOutputFile))] + [ModelReaderWriterBuildable(typeof(InternalLocalShellToolCallItemParam))] + [ModelReaderWriterBuildable(typeof(InternalLocalShellExecAction))] + [ModelReaderWriterBuildable(typeof(InternalLocalShellToolCallOutputItemParam))] + [ModelReaderWriterBuildable(typeof(InternalMCPListToolsItemParam))] + [ModelReaderWriterBuildable(typeof(InternalMCPListToolsTool))] + [ModelReaderWriterBuildable(typeof(InternalMCPApprovalRequestItemParam))] + [ModelReaderWriterBuildable(typeof(InternalMCPApprovalResponseItemParam))] + [ModelReaderWriterBuildable(typeof(InternalMCPCallItemParam))] + [ModelReaderWriterBuildable(typeof(InternalResponsesMessageItemParam))] + [ModelReaderWriterBuildable(typeof(InternalUnknownResponsesMessageItemResourceItemParam))] + [ModelReaderWriterBuildable(typeof(InternalResponsesUserMessageItemParam))] + [ModelReaderWriterBuildable(typeof(InternalResponsesSystemMessageItemParam))] + [ModelReaderWriterBuildable(typeof(InternalResponsesDeveloperMessageItemParam))] + [ModelReaderWriterBuildable(typeof(InternalResponsesAssistantMessageItemParam))] + [ModelReaderWriterBuildable(typeof(OpenAIResponse))] + [ModelReaderWriterBuildable(typeof(ResponseError))] + [ModelReaderWriterBuildable(typeof(ResponseTokenUsage))] + [ModelReaderWriterBuildable(typeof(ResponseIncompleteStatusDetails))] + [ModelReaderWriterBuildable(typeof(ResponseItem))] + [ModelReaderWriterBuildable(typeof(InternalUnknownItemResource))] + [ModelReaderWriterBuildable(typeof(FileSearchCallResponseItem))] + [ModelReaderWriterBuildable(typeof(ComputerCallResponseItem))] + [ModelReaderWriterBuildable(typeof(ComputerCallOutputResponseItem))] + [ModelReaderWriterBuildable(typeof(WebSearchCallResponseItem))] + [ModelReaderWriterBuildable(typeof(FunctionCallResponseItem))] + [ModelReaderWriterBuildable(typeof(FunctionCallOutputResponseItem))] + [ModelReaderWriterBuildable(typeof(ReasoningResponseItem))] + [ModelReaderWriterBuildable(typeof(InternalImageGenToolCallItemResource))] + [ModelReaderWriterBuildable(typeof(InternalCodeInterpreterToolCallItemResource))] + [ModelReaderWriterBuildable(typeof(InternalLocalShellToolCallItemResource))] + [ModelReaderWriterBuildable(typeof(InternalLocalShellToolCallOutputItemResource))] + [ModelReaderWriterBuildable(typeof(InternalMCPListToolsItemResource))] + [ModelReaderWriterBuildable(typeof(InternalMCPApprovalRequestItemResource))] + [ModelReaderWriterBuildable(typeof(InternalMCPApprovalResponseItemResource))] + [ModelReaderWriterBuildable(typeof(InternalMCPCallItemResource))] + [ModelReaderWriterBuildable(typeof(MessageResponseItem))] + [ModelReaderWriterBuildable(typeof(InternalUnknownResponsesMessageItemResource))] + [ModelReaderWriterBuildable(typeof(InternalResponsesUserMessage))] + [ModelReaderWriterBuildable(typeof(InternalResponsesSystemMessage))] + [ModelReaderWriterBuildable(typeof(InternalResponsesDeveloperMessage))] + [ModelReaderWriterBuildable(typeof(InternalResponsesAssistantMessage))] + [ModelReaderWriterBuildable(typeof(ReferenceResponseItem))] + [ModelReaderWriterBuildable(typeof(ResponseInputTokenUsageDetails))] + [ModelReaderWriterBuildable(typeof(ResponseOutputTokenUsageDetails))] + [ModelReaderWriterBuildable(typeof(StreamingResponseUpdate))] + [ModelReaderWriterBuildable(typeof(UnknownResponseStreamEvent))] + [ModelReaderWriterBuildable(typeof(StreamingResponseCompletedUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseContentPartAddedUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseContentPartDoneUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseCreatedUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseErrorUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseFileSearchCallCompletedUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseFileSearchCallInProgressUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseFileSearchCallSearchingUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseFunctionCallArgumentsDeltaUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseFunctionCallArgumentsDoneUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseInProgressUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseFailedUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseIncompleteUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseOutputItemAddedUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseOutputItemDoneUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseRefusalDeltaUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseRefusalDoneUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseOutputTextDeltaUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseOutputTextDoneUpdate))] + [ModelReaderWriterBuildable(typeof(InternalResponseReasoningSummaryPartAddedEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseReasoningSummaryPartDoneEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseReasoningSummaryTextDeltaEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseReasoningSummaryTextDoneEvent))] + [ModelReaderWriterBuildable(typeof(StreamingResponseWebSearchCallCompletedUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseWebSearchCallInProgressUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseWebSearchCallSearchingUpdate))] + [ModelReaderWriterBuildable(typeof(InternalResponseImageGenCallCompletedEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseImageGenCallGeneratingEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseImageGenCallInProgressEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseImageGenCallPartialImageEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseMCPCallArgumentsDeltaEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseMCPCallArgumentsDoneEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseMCPCallCompletedEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseMCPCallFailedEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseMCPCallInProgressEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseMCPListToolsCompletedEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseMCPListToolsFailedEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseMCPListToolsInProgressEvent))] + [ModelReaderWriterBuildable(typeof(StreamingResponseTextAnnotationAddedUpdate))] + [ModelReaderWriterBuildable(typeof(StreamingResponseQueuedUpdate))] + [ModelReaderWriterBuildable(typeof(InternalResponseReasoningDeltaEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseReasoningDoneEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseReasoningSummaryDeltaEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseReasoningSummaryDoneEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseCodeInterpreterCallCodeDeltaEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseCodeInterpreterCallCodeDoneEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseCodeInterpreterCallCompletedEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseCodeInterpreterCallInProgressEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseCodeInterpreterCallInterpretingEvent))] + [ModelReaderWriterBuildable(typeof(InternalResponseErrorResponse))] + [ModelReaderWriterBuildable(typeof(ResponseDeletionResult))] + [ModelReaderWriterBuildable(typeof(InternalResponseItemList))] + [ModelReaderWriterBuildable(typeof(ImageGenerationOptions))] + [ModelReaderWriterBuildable(typeof(GeneratedImageCollection))] + [ModelReaderWriterBuildable(typeof(GeneratedImage))] + [ModelReaderWriterBuildable(typeof(ImageTokenUsage))] + [ModelReaderWriterBuildable(typeof(ImageInputTokenUsageDetails))] + [ModelReaderWriterBuildable(typeof(ImageEditOptions))] + [ModelReaderWriterBuildable(typeof(ImageVariationOptions))] + [ModelReaderWriterBuildable(typeof(MessageCreationOptions))] + [ModelReaderWriterBuildable(typeof(MessageCreationAttachment))] + [ModelReaderWriterBuildable(typeof(MessageContent))] + [ModelReaderWriterBuildable(typeof(InternalUnknownMessageContent))] + [ModelReaderWriterBuildable(typeof(InternalMessageContentImageFileObject))] + [ModelReaderWriterBuildable(typeof(InternalMessageContentItemFileObjectImageFile))] + [ModelReaderWriterBuildable(typeof(InternalMessageContentTextObject))] + [ModelReaderWriterBuildable(typeof(InternalMessageContentTextObjectText1))] + [ModelReaderWriterBuildable(typeof(InternalMessageContentTextObjectAnnotation))] + [ModelReaderWriterBuildable(typeof(UnknownMessageContentTextObjectAnnotation))] + [ModelReaderWriterBuildable(typeof(InternalMessageContentTextAnnotationsFileCitationObject))] + [ModelReaderWriterBuildable(typeof(InternalMessageContentTextAnnotationsFileCitationObjectFileCitation))] + [ModelReaderWriterBuildable(typeof(InternalMessageContentTextAnnotationsFilePathObject))] + [ModelReaderWriterBuildable(typeof(InternalMessageContentTextAnnotationsFilePathObjectFilePath))] + [ModelReaderWriterBuildable(typeof(InternalMessageContentRefusalObject))] + [ModelReaderWriterBuildable(typeof(InternalMessageContentImageUrlObject))] + [ModelReaderWriterBuildable(typeof(InternalMessageContentImageUrlObjectImageUrl))] + [ModelReaderWriterBuildable(typeof(InternalAssistantToolsFileSearchTypeOnly))] + [ModelReaderWriterBuildable(typeof(ThreadMessage))] + [ModelReaderWriterBuildable(typeof(MessageFailureDetails))] + [ModelReaderWriterBuildable(typeof(InternalMessageObjectAttachment))] + [ModelReaderWriterBuildable(typeof(InternalListMessagesResponse))] + [ModelReaderWriterBuildable(typeof(MessageModificationOptions))] + [ModelReaderWriterBuildable(typeof(MessageDeletionResult))] + [ModelReaderWriterBuildable(typeof(ModerationOptions))] + [ModelReaderWriterBuildable(typeof(InternalCreateModerationRequestInput2))] + [ModelReaderWriterBuildable(typeof(InternalCreateModerationRequestInputImageUrl))] + [ModelReaderWriterBuildable(typeof(InternalCreateModerationRequestInput3))] + [ModelReaderWriterBuildable(typeof(ModerationResultCollection))] + [ModelReaderWriterBuildable(typeof(ModerationResult))] + [ModelReaderWriterBuildable(typeof(InternalModerationCategories))] + [ModelReaderWriterBuildable(typeof(InternalModerationCategoryScores))] + [ModelReaderWriterBuildable(typeof(InternalCreateModerationResponseResultCategoryAppliedInputTypes))] + [ModelReaderWriterBuildable(typeof(InternalCreateThreadAndRunRequest))] + [ModelReaderWriterBuildable(typeof(ThreadCreationOptions))] + [ModelReaderWriterBuildable(typeof(RunTruncationStrategy))] + [ModelReaderWriterBuildable(typeof(InternalCreateThreadRequestToolResources))] + [ModelReaderWriterBuildable(typeof(InternalCreateThreadRequestToolResourcesCodeInterpreter))] + [ModelReaderWriterBuildable(typeof(InternalCreateThreadAndRunRequestToolResources))] + [ModelReaderWriterBuildable(typeof(InternalCreateThreadAndRunRequestToolResourcesCodeInterpreter))] + [ModelReaderWriterBuildable(typeof(ToolConstraint))] + [ModelReaderWriterBuildable(typeof(InternalAssistantsNamedToolChoiceFunction))] + [ModelReaderWriterBuildable(typeof(ThreadRun))] + [ModelReaderWriterBuildable(typeof(RunError))] + [ModelReaderWriterBuildable(typeof(RunIncompleteDetails))] + [ModelReaderWriterBuildable(typeof(RunTokenUsage))] + [ModelReaderWriterBuildable(typeof(InternalRunRequiredAction))] + [ModelReaderWriterBuildable(typeof(InternalRunObjectRequiredActionSubmitToolOutputs))] + [ModelReaderWriterBuildable(typeof(InternalRequiredFunctionToolCall))] + [ModelReaderWriterBuildable(typeof(InternalRunToolCallObjectFunction))] + [ModelReaderWriterBuildable(typeof(RunCreationOptions))] + [ModelReaderWriterBuildable(typeof(InternalListRunsResponse))] + [ModelReaderWriterBuildable(typeof(RunModificationOptions))] + [ModelReaderWriterBuildable(typeof(InternalSubmitToolOutputsRunRequest))] + [ModelReaderWriterBuildable(typeof(ToolOutput))] + [ModelReaderWriterBuildable(typeof(InternalListRunStepsResponse))] + [ModelReaderWriterBuildable(typeof(RunStep))] + [ModelReaderWriterBuildable(typeof(RunStepError))] + [ModelReaderWriterBuildable(typeof(RunStepTokenUsage))] + [ModelReaderWriterBuildable(typeof(RunStepDetails))] + [ModelReaderWriterBuildable(typeof(UnknownRunStepObjectStepDetails))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDetailsMessageCreationObject))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDetailsMessageCreationObjectMessageCreation))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDetailsToolCallsObject))] + [ModelReaderWriterBuildable(typeof(RunStepToolCall))] + [ModelReaderWriterBuildable(typeof(UnknownRunStepDetailsToolCallsObjectToolCallsObject))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDetailsToolCallsCodeObject))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDetailsToolCallsCodeObjectCodeInterpreter))] + [ModelReaderWriterBuildable(typeof(RunStepCodeInterpreterOutput))] + [ModelReaderWriterBuildable(typeof(UnknownRunStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject))] + [ModelReaderWriterBuildable(typeof(InternalRunStepCodeInterpreterLogOutput))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDetailsToolCallsCodeOutputImageObject))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDetailsToolCallsCodeOutputImageObjectImage))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDetailsToolCallsFileSearchObject))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDetailsToolCallsFileSearchObjectFileSearch))] + [ModelReaderWriterBuildable(typeof(RunStepFileSearchResult))] + [ModelReaderWriterBuildable(typeof(RunStepFileSearchResultContent))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDetailsToolCallsFileSearchRankingOptionsObject))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDetailsToolCallsFunctionObject))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDetailsToolCallsFunctionObjectFunction))] + [ModelReaderWriterBuildable(typeof(AssistantThread))] + [ModelReaderWriterBuildable(typeof(InternalThreadObjectToolResources))] + [ModelReaderWriterBuildable(typeof(InternalThreadObjectToolResourcesCodeInterpreter))] + [ModelReaderWriterBuildable(typeof(InternalThreadObjectToolResourcesFileSearch))] + [ModelReaderWriterBuildable(typeof(ThreadModificationOptions))] + [ModelReaderWriterBuildable(typeof(InternalModifyThreadRequestToolResources))] + [ModelReaderWriterBuildable(typeof(InternalModifyThreadRequestToolResourcesCodeInterpreter))] + [ModelReaderWriterBuildable(typeof(ThreadDeletionResult))] + [ModelReaderWriterBuildable(typeof(InternalListVectorStoresResponse))] + [ModelReaderWriterBuildable(typeof(VectorStore))] + [ModelReaderWriterBuildable(typeof(VectorStoreFileCounts))] + [ModelReaderWriterBuildable(typeof(VectorStoreExpirationPolicy))] + [ModelReaderWriterBuildable(typeof(VectorStoreCreationOptions))] + [ModelReaderWriterBuildable(typeof(VectorStoreModificationOptions))] + [ModelReaderWriterBuildable(typeof(VectorStoreDeletionResult))] + [ModelReaderWriterBuildable(typeof(InternalCreateVectorStoreFileBatchRequest))] + [ModelReaderWriterBuildable(typeof(VectorStoreBatchFileJob))] + [ModelReaderWriterBuildable(typeof(InternalVectorStoreFileBatchObjectFileCounts))] + [ModelReaderWriterBuildable(typeof(InternalListVectorStoreFilesResponse))] + [ModelReaderWriterBuildable(typeof(VectorStoreFileAssociation))] + [ModelReaderWriterBuildable(typeof(VectorStoreFileAssociationError))] + [ModelReaderWriterBuildable(typeof(InternalChunkingStrategyResponseParam))] + [ModelReaderWriterBuildable(typeof(InternalUnknownChunkingStrategyResponseParam))] + [ModelReaderWriterBuildable(typeof(InternalOtherChunkingStrategyResponseParam))] + [ModelReaderWriterBuildable(typeof(InternalStaticChunkingStrategyResponseParam))] + [ModelReaderWriterBuildable(typeof(InternalCreateVectorStoreFileRequest))] + [ModelReaderWriterBuildable(typeof(FileFromStoreRemovalResult))] + [ModelReaderWriterBuildable(typeof(InternalUpdateVectorStoreFileAttributesRequest))] + [ModelReaderWriterBuildable(typeof(InternalVectorStoreFileContentResponse))] + [ModelReaderWriterBuildable(typeof(InternalVectorStoreFileContentResponseDatum))] + [ModelReaderWriterBuildable(typeof(InternalVectorStoreSearchRequestRankingOptions))] + [ModelReaderWriterBuildable(typeof(InternalVectorStoreSearchRequest))] + [ModelReaderWriterBuildable(typeof(InternalVectorStoreSearchResultsPage))] + [ModelReaderWriterBuildable(typeof(InternalVectorStoreSearchResultItem))] + [ModelReaderWriterBuildable(typeof(InternalVectorStoreSearchResultContentObject))] + [ModelReaderWriterBuildable(typeof(InternalCreateCompletionRequest))] + [ModelReaderWriterBuildable(typeof(InternalCreateCompletionResponse))] + [ModelReaderWriterBuildable(typeof(InternalCreateCompletionResponseChoice))] + [ModelReaderWriterBuildable(typeof(InternalCreateCompletionResponseChoiceLogprobs))] + [ModelReaderWriterBuildable(typeof(OpenAIModelCollection))] + [ModelReaderWriterBuildable(typeof(OpenAIModel))] + [ModelReaderWriterBuildable(typeof(ModelDeletionResult))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeClientEvent))] + [ModelReaderWriterBuildable(typeof(UnknownRealtimeClientEvent))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeClientEventSessionUpdate))] + [ModelReaderWriterBuildable(typeof(ConversationSessionOptions))] + [ModelReaderWriterBuildable(typeof(ConversationTool))] + [ModelReaderWriterBuildable(typeof(InputTranscriptionOptions))] + [ModelReaderWriterBuildable(typeof(TurnDetectionOptions))] + [ModelReaderWriterBuildable(typeof(UnknownRealtimeTurnDetection))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeServerVadTurnDetection))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeSemanticVadTurnDetection))] + [ModelReaderWriterBuildable(typeof(InputNoiseReductionOptions))] + [ModelReaderWriterBuildable(typeof(InternalUnknownRealtimeAudioNoiseReduction))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeAudioNearFieldNoiseReduction))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeAudioFarFieldNoiseReduction))] + [ModelReaderWriterBuildable(typeof(UnknownRealtimeTool))] + [ModelReaderWriterBuildable(typeof(ConversationFunctionTool))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeToolChoiceObject))] + [ModelReaderWriterBuildable(typeof(UnknownRealtimeToolChoiceObject))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeToolChoiceFunctionObject))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeToolChoiceFunctionObjectFunction))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeClientEventInputAudioBufferAppend))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeClientEventInputAudioBufferCommit))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeClientEventInputAudioBufferClear))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeClientEventOutputAudioBufferClear))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeClientEventConversationItemCreate))] + [ModelReaderWriterBuildable(typeof(RealtimeItem))] + [ModelReaderWriterBuildable(typeof(UnknownRealtimeRequestItem))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeRequestMessageItem))] + [ModelReaderWriterBuildable(typeof(UnknownRealtimeRequestMessageItem))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeRequestSystemMessageItem))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeRequestTextContentPart))] + [ModelReaderWriterBuildable(typeof(ConversationContentPart))] + [ModelReaderWriterBuildable(typeof(UnknownRealtimeContentPart))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeRequestAudioContentPart))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeResponseTextContentPart))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeResponseAudioContentPart))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeRequestUserMessageItem))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeRequestAssistantMessageItem))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeRequestFunctionCallItem))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeRequestFunctionCallOutputItem))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeClientEventConversationItemTruncate))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeClientEventConversationItemDelete))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeClientEventResponseCreate))] + [ModelReaderWriterBuildable(typeof(ConversationResponseOptions))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeClientEventResponseCancel))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeClientEventConversationItemRetrieve))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeClientEventTranscriptionSessionUpdate))] + [ModelReaderWriterBuildable(typeof(TranscriptionSessionOptions))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeTranscriptionSessionCreateRequestClientSecret))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeTranscriptionSessionCreateRequestClientSecretExpiresAt))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeTranscriptionSessionCreateRequestInputAudioTranscription))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeTranscriptionSessionCreateRequestTurnDetection))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction1))] + [ModelReaderWriterBuildable(typeof(RealtimeUpdate))] + [ModelReaderWriterBuildable(typeof(UnknownRealtimeServerEvent))] + [ModelReaderWriterBuildable(typeof(RealtimeErrorUpdate))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeServerEventErrorError))] + [ModelReaderWriterBuildable(typeof(ConversationSessionStartedUpdate))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeResponseSession))] + [ModelReaderWriterBuildable(typeof(ConversationSessionConfiguredUpdate))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeServerEventConversationCreated))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeServerEventConversationCreatedConversation))] + [ModelReaderWriterBuildable(typeof(InputAudioCommittedUpdate))] + [ModelReaderWriterBuildable(typeof(InputAudioClearedUpdate))] + [ModelReaderWriterBuildable(typeof(InputAudioSpeechStartedUpdate))] + [ModelReaderWriterBuildable(typeof(InputAudioSpeechFinishedUpdate))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeServerEventOutputAudioBufferCleared))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeServerEventOutputAudioBufferStarted))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeServerEventOutputAudioBufferStopped))] + [ModelReaderWriterBuildable(typeof(ItemCreatedUpdate))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeResponseItem))] + [ModelReaderWriterBuildable(typeof(UnknownRealtimeResponseItem))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeResponseMessageItem))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeResponseFunctionCallItem))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeResponseFunctionCallOutputItem))] + [ModelReaderWriterBuildable(typeof(InputAudioTranscriptionFinishedUpdate))] + [ModelReaderWriterBuildable(typeof(InternalLogProbProperties))] + [ModelReaderWriterBuildable(typeof(InputAudioTranscriptionFailedUpdate))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeServerEventConversationItemInputAudioTranscriptionFailedError))] + [ModelReaderWriterBuildable(typeof(ItemTruncatedUpdate))] + [ModelReaderWriterBuildable(typeof(ItemDeletedUpdate))] + [ModelReaderWriterBuildable(typeof(ResponseStartedUpdate))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeResponse))] + [ModelReaderWriterBuildable(typeof(ConversationStatusDetails))] + [ModelReaderWriterBuildable(typeof(ConversationTokenUsage))] + [ModelReaderWriterBuildable(typeof(ConversationInputTokenUsageDetails))] + [ModelReaderWriterBuildable(typeof(ConversationOutputTokenUsageDetails))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeResponseStatusDetailsError))] + [ModelReaderWriterBuildable(typeof(ResponseFinishedUpdate))] + [ModelReaderWriterBuildable(typeof(OutputStreamingStartedUpdate))] + [ModelReaderWriterBuildable(typeof(OutputStreamingFinishedUpdate))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeServerEventResponseContentPartAdded))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeServerEventResponseContentPartDone))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeServerEventResponseTextDelta))] + [ModelReaderWriterBuildable(typeof(OutputTextFinishedUpdate))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeServerEventResponseAudioTranscriptDelta))] + [ModelReaderWriterBuildable(typeof(OutputAudioTranscriptionFinishedUpdate))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeServerEventResponseAudioDelta))] + [ModelReaderWriterBuildable(typeof(OutputAudioFinishedUpdate))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeServerEventResponseFunctionCallArgumentsDelta))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeServerEventResponseFunctionCallArgumentsDone))] + [ModelReaderWriterBuildable(typeof(RateLimitsUpdate))] + [ModelReaderWriterBuildable(typeof(ConversationRateLimitDetailsItem))] + [ModelReaderWriterBuildable(typeof(InputAudioTranscriptionDeltaUpdate))] + [ModelReaderWriterBuildable(typeof(ItemRetrievedUpdate))] + [ModelReaderWriterBuildable(typeof(TranscriptionSessionConfiguredUpdate))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeTranscriptionSessionCreateResponse))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeTranscriptionSessionCreateResponseClientSecret))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeTranscriptionSessionCreateResponseInputAudioTranscription))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeTranscriptionSessionCreateResponseTurnDetection))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeSessionCreateRequest))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeSessionCreateRequestInputAudioTranscription))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeSessionCreateRequestTurnDetection))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeSessionCreateRequestInputAudioNoiseReduction1))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeSessionCreateRequestClientSecret))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeSessionCreateRequestClientSecretExpiresAt))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeSessionCreateRequestTracing1))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeSessionCreateResponse))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeSessionCreateResponseClientSecret))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeSessionCreateResponseInputAudioTranscription))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeSessionCreateResponseTurnDetection))] + [ModelReaderWriterBuildable(typeof(InternalRealtimeSessionCreateResponseTracing1))] + [ModelReaderWriterBuildable(typeof(InternalCreateUploadRequest))] + [ModelReaderWriterBuildable(typeof(InternalUpload))] + [ModelReaderWriterBuildable(typeof(InternalAddUploadPartRequest))] + [ModelReaderWriterBuildable(typeof(InternalUploadPart))] + [ModelReaderWriterBuildable(typeof(InternalCompleteUploadRequest))] + [ModelReaderWriterBuildable(typeof(InternalBatchRequestInput))] + [ModelReaderWriterBuildable(typeof(InternalBatchRequestOutput))] + [ModelReaderWriterBuildable(typeof(InternalBatchRequestOutputResponse))] + [ModelReaderWriterBuildable(typeof(InternalBatchRequestOutputError))] + [ModelReaderWriterBuildable(typeof(ChatFunctionChoice))] + [ModelReaderWriterBuildable(typeof(ChatToolChoice))] + [ModelReaderWriterBuildable(typeof(InternalTodoFineTuneChatRequestInput))] + [ModelReaderWriterBuildable(typeof(InternalFineTuningJobsPageToken))] + [ModelReaderWriterBuildable(typeof(InternalMessageDeltaContent))] + [ModelReaderWriterBuildable(typeof(UnknownMessageDeltaContent))] + [ModelReaderWriterBuildable(typeof(InternalMessageDeltaContentImageFileObject))] + [ModelReaderWriterBuildable(typeof(InternalMessageDeltaContentImageFileObjectImageFile))] + [ModelReaderWriterBuildable(typeof(InternalMessageDeltaContentImageUrlObject))] + [ModelReaderWriterBuildable(typeof(InternalMessageDeltaContentImageUrlObjectImageUrl))] + [ModelReaderWriterBuildable(typeof(InternalMessageDeltaContentTextObject))] + [ModelReaderWriterBuildable(typeof(InternalMessageDeltaContentTextObjectText))] + [ModelReaderWriterBuildable(typeof(InternalMessageDeltaTextContentAnnotation))] + [ModelReaderWriterBuildable(typeof(UnknownMessageDeltaTextContentAnnotation))] + [ModelReaderWriterBuildable(typeof(InternalMessageDeltaContentTextAnnotationsFileCitationObject))] + [ModelReaderWriterBuildable(typeof(InternalMessageDeltaContentTextAnnotationsFileCitationObjectFileCitation))] + [ModelReaderWriterBuildable(typeof(InternalMessageDeltaContentTextAnnotationsFilePathObject))] + [ModelReaderWriterBuildable(typeof(InternalMessageDeltaContentTextAnnotationsFilePathObjectFilePath))] + [ModelReaderWriterBuildable(typeof(InternalMessageDeltaContentRefusalObject))] + [ModelReaderWriterBuildable(typeof(InternalMessageDeltaObject))] + [ModelReaderWriterBuildable(typeof(InternalMessageDeltaObjectDelta))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDelta))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDeltaObjectDelta))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDeltaStepDetails))] + [ModelReaderWriterBuildable(typeof(UnknownRunStepDeltaStepDetails))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDeltaStepDetailsMessageCreationObject))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDeltaStepDetailsMessageCreationObjectMessageCreation))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDeltaStepDetailsToolCallsObject))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDeltaStepDetailsToolCallsObjectToolCallsObject))] + [ModelReaderWriterBuildable(typeof(UnknownRunStepDeltaStepDetailsToolCallsObjectToolCallsObject))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDeltaStepDetailsToolCallsCodeObject))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreter))] + [ModelReaderWriterBuildable(typeof(RunStepUpdateCodeInterpreterOutput))] + [ModelReaderWriterBuildable(typeof(UnknownRunStepDeltaStepDetailsToolCallsCodeObjectCodeInterpreterOutputsObject))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDeltaStepDetailsToolCallsCodeOutputLogsObject))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDeltaStepDetailsToolCallsCodeOutputImageObject))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDeltaStepDetailsToolCallsCodeOutputImageObjectImage))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDeltaStepDetailsToolCallsFileSearchObject))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDeltaStepDetailsToolCallsFileSearchObjectFileSearch))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDeltaStepDetailsToolCallsFunctionObject))] + [ModelReaderWriterBuildable(typeof(InternalRunStepDeltaStepDetailsToolCallsFunctionObjectFunction))] + [ModelReaderWriterBuildable(typeof(InternalCreateThreadRequestToolResourcesFileSearchBase))] + [ModelReaderWriterBuildable(typeof(AudioTranscription))] + [ModelReaderWriterBuildable(typeof(ChatCompletionCollectionOptions))] + [ModelReaderWriterBuildable(typeof(ChatCompletionMessageCollectionOptions))] + [ModelReaderWriterBuildable(typeof(ChatResponseFormat))] + [ModelReaderWriterBuildable(typeof(InternalUnknownChatResponseFormat))] + [ModelReaderWriterBuildable(typeof(InternalDotNetChatResponseFormatText))] + [ModelReaderWriterBuildable(typeof(InternalDotNetChatResponseFormatJsonObject))] + [ModelReaderWriterBuildable(typeof(InternalDotNetChatResponseFormatJsonSchema))] + [ModelReaderWriterBuildable(typeof(InternalDotNetChatResponseFormatJsonSchemaJsonSchema))] + [ModelReaderWriterBuildable(typeof(AssistantResponseFormat))] + [ModelReaderWriterBuildable(typeof(InternalUnknownDotNetAssistantResponseFormat))] + [ModelReaderWriterBuildable(typeof(InternalDotNetAssistantResponseFormatText))] + [ModelReaderWriterBuildable(typeof(InternalDotNetAssistantResponseFormatJsonObject))] + [ModelReaderWriterBuildable(typeof(InternalDotNetAssistantResponseFormatJsonSchema))] + [ModelReaderWriterBuildable(typeof(InternalDotNetAssistantResponseFormatJsonSchemaJsonSchema))] + [ModelReaderWriterBuildable(typeof(AudioTokenLogProbabilityDetails))] + [ModelReaderWriterBuildable(typeof(InternalDotNetRealtimeLogProbProperties))] + [ModelReaderWriterBuildable(typeof(WebSearchUserLocation))] + [ModelReaderWriterBuildable(typeof(InternalUnknownDotnetResponseWebSearchLocation))] + [ModelReaderWriterBuildable(typeof(InternalDotnetResponseWebSearchApproximateLocation))] + [ModelReaderWriterBuildable(typeof(FileChunkingStrategy))] + [ModelReaderWriterBuildable(typeof(InternalUnknownDotNetCombinedChunkingStrategyParam))] + [ModelReaderWriterBuildable(typeof(InternalDotNetCombinedAutoChunkingStrategyParam))] + [ModelReaderWriterBuildable(typeof(StaticFileChunkingStrategy))] + [ModelReaderWriterBuildable(typeof(InternalDotNetCombinedOtherChunkingStrategyParam))] + [ModelReaderWriterBuildable(typeof(ContainerListResource))] + [ModelReaderWriterBuildable(typeof(ContainerResource))] + [ModelReaderWriterBuildable(typeof(ContainerResourceExpiresAfter))] + [ModelReaderWriterBuildable(typeof(CreateContainerBody))] + [ModelReaderWriterBuildable(typeof(CreateContainerBodyExpiresAfter))] + [ModelReaderWriterBuildable(typeof(DeleteContainerResponse))] + [ModelReaderWriterBuildable(typeof(CreateContainerFileBody))] + [ModelReaderWriterBuildable(typeof(ContainerFileResource))] + [ModelReaderWriterBuildable(typeof(ContainerFileListResource))] + [ModelReaderWriterBuildable(typeof(DeleteContainerFileResponse))] + [ModelReaderWriterBuildable(typeof(RunGraderRequest))] + [ModelReaderWriterBuildable(typeof(RunGraderResponse))] + [ModelReaderWriterBuildable(typeof(RunGraderResponseMetadata))] + [ModelReaderWriterBuildable(typeof(RunGraderResponseMetadataErrors))] + [ModelReaderWriterBuildable(typeof(ValidateGraderRequest))] + [ModelReaderWriterBuildable(typeof(ValidateGraderResponse))] public partial class OpenAIContext : ModelReaderWriterContext { } diff --git a/src/Generated/Models/Realtime/ConversationContentPartKind.cs b/src/Generated/Models/Realtime/ConversationContentPartKind.cs index 32da7dd1b..676dc5dd5 100644 --- a/src/Generated/Models/Realtime/ConversationContentPartKind.cs +++ b/src/Generated/Models/Realtime/ConversationContentPartKind.cs @@ -35,6 +35,8 @@ public ConversationContentPartKind(string value) public static implicit operator ConversationContentPartKind(string value) => new ConversationContentPartKind(value); + public static implicit operator ConversationContentPartKind?(string value) => value == null ? null : new ConversationContentPartKind(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ConversationContentPartKind other && Equals(other); diff --git a/src/Generated/Models/Realtime/ConversationIncompleteReason.cs b/src/Generated/Models/Realtime/ConversationIncompleteReason.cs index ffabc74e5..8c39406a1 100644 --- a/src/Generated/Models/Realtime/ConversationIncompleteReason.cs +++ b/src/Generated/Models/Realtime/ConversationIncompleteReason.cs @@ -39,6 +39,8 @@ public ConversationIncompleteReason(string value) public static implicit operator ConversationIncompleteReason(string value) => new ConversationIncompleteReason(value); + public static implicit operator ConversationIncompleteReason?(string value) => value == null ? null : new ConversationIncompleteReason(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ConversationIncompleteReason other && Equals(other); diff --git a/src/Generated/Models/Realtime/ConversationItemStatus.cs b/src/Generated/Models/Realtime/ConversationItemStatus.cs index e3f03b909..c8023bb58 100644 --- a/src/Generated/Models/Realtime/ConversationItemStatus.cs +++ b/src/Generated/Models/Realtime/ConversationItemStatus.cs @@ -36,6 +36,8 @@ public ConversationItemStatus(string value) public static implicit operator ConversationItemStatus(string value) => new ConversationItemStatus(value); + public static implicit operator ConversationItemStatus?(string value) => value == null ? null : new ConversationItemStatus(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ConversationItemStatus other && Equals(other); diff --git a/src/Generated/Models/Realtime/ConversationMessageRole.cs b/src/Generated/Models/Realtime/ConversationMessageRole.cs index 2e5764891..27b3cffe2 100644 --- a/src/Generated/Models/Realtime/ConversationMessageRole.cs +++ b/src/Generated/Models/Realtime/ConversationMessageRole.cs @@ -36,6 +36,8 @@ public ConversationMessageRole(string value) public static implicit operator ConversationMessageRole(string value) => new ConversationMessageRole(value); + public static implicit operator ConversationMessageRole?(string value) => value == null ? null : new ConversationMessageRole(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ConversationMessageRole other && Equals(other); diff --git a/src/Generated/Models/Realtime/ConversationStatus.cs b/src/Generated/Models/Realtime/ConversationStatus.cs index 89c834973..97cce22e4 100644 --- a/src/Generated/Models/Realtime/ConversationStatus.cs +++ b/src/Generated/Models/Realtime/ConversationStatus.cs @@ -39,6 +39,8 @@ public ConversationStatus(string value) public static implicit operator ConversationStatus(string value) => new ConversationStatus(value); + public static implicit operator ConversationStatus?(string value) => value == null ? null : new ConversationStatus(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ConversationStatus other && Equals(other); diff --git a/src/Generated/Models/Realtime/ConversationToolKind.cs b/src/Generated/Models/Realtime/ConversationToolKind.cs index 83240bcc2..255a1f8fb 100644 --- a/src/Generated/Models/Realtime/ConversationToolKind.cs +++ b/src/Generated/Models/Realtime/ConversationToolKind.cs @@ -30,6 +30,8 @@ public ConversationToolKind(string value) public static implicit operator ConversationToolKind(string value) => new ConversationToolKind(value); + public static implicit operator ConversationToolKind?(string value) => value == null ? null : new ConversationToolKind(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ConversationToolKind other && Equals(other); diff --git a/src/Generated/Models/Realtime/ConversationVoice.cs b/src/Generated/Models/Realtime/ConversationVoice.cs index 46057b361..3a1e04e5f 100644 --- a/src/Generated/Models/Realtime/ConversationVoice.cs +++ b/src/Generated/Models/Realtime/ConversationVoice.cs @@ -60,6 +60,8 @@ public ConversationVoice(string value) public static implicit operator ConversationVoice(string value) => new ConversationVoice(value); + public static implicit operator ConversationVoice?(string value) => value == null ? null : new ConversationVoice(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ConversationVoice other && Equals(other); diff --git a/src/Generated/Models/Realtime/InputTranscriptionModel.cs b/src/Generated/Models/Realtime/InputTranscriptionModel.cs index 59a498312..48561aec3 100644 --- a/src/Generated/Models/Realtime/InputTranscriptionModel.cs +++ b/src/Generated/Models/Realtime/InputTranscriptionModel.cs @@ -30,6 +30,8 @@ public InputTranscriptionModel(string value) public static implicit operator InputTranscriptionModel(string value) => new InputTranscriptionModel(value); + public static implicit operator InputTranscriptionModel?(string value) => value == null ? null : new InputTranscriptionModel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InputTranscriptionModel other && Equals(other); diff --git a/src/Generated/Models/Realtime/InternalRealtimeClientEventType.cs b/src/Generated/Models/Realtime/InternalRealtimeClientEventType.cs index 85c33c9fe..9ade3bbaa 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeClientEventType.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeClientEventType.cs @@ -61,6 +61,8 @@ public InternalRealtimeClientEventType(string value) public static implicit operator InternalRealtimeClientEventType(string value) => new InternalRealtimeClientEventType(value); + public static implicit operator InternalRealtimeClientEventType?(string value) => value == null ? null : new InternalRealtimeClientEventType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRealtimeClientEventType other && Equals(other); diff --git a/src/Generated/Models/Realtime/InternalRealtimeItemType.cs b/src/Generated/Models/Realtime/InternalRealtimeItemType.cs index c803cd0e0..6e895964a 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeItemType.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeItemType.cs @@ -34,6 +34,8 @@ public InternalRealtimeItemType(string value) public static implicit operator InternalRealtimeItemType(string value) => new InternalRealtimeItemType(value); + public static implicit operator InternalRealtimeItemType?(string value) => value == null ? null : new InternalRealtimeItemType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRealtimeItemType other && Equals(other); diff --git a/src/Generated/Models/Realtime/InternalRealtimeRequestSessionModality.cs b/src/Generated/Models/Realtime/InternalRealtimeRequestSessionModality.cs index 497862c0b..3b9b5d99c 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeRequestSessionModality.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeRequestSessionModality.cs @@ -31,6 +31,8 @@ public InternalRealtimeRequestSessionModality(string value) public static implicit operator InternalRealtimeRequestSessionModality(string value) => new InternalRealtimeRequestSessionModality(value); + public static implicit operator InternalRealtimeRequestSessionModality?(string value) => value == null ? null : new InternalRealtimeRequestSessionModality(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRealtimeRequestSessionModality other && Equals(other); diff --git a/src/Generated/Models/Realtime/InternalRealtimeRequestSessionModel.cs b/src/Generated/Models/Realtime/InternalRealtimeRequestSessionModel.cs index 6c8ae3c93..e05751103 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeRequestSessionModel.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeRequestSessionModel.cs @@ -40,6 +40,8 @@ public InternalRealtimeRequestSessionModel(string value) public static implicit operator InternalRealtimeRequestSessionModel(string value) => new InternalRealtimeRequestSessionModel(value); + public static implicit operator InternalRealtimeRequestSessionModel?(string value) => value == null ? null : new InternalRealtimeRequestSessionModel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRealtimeRequestSessionModel other && Equals(other); diff --git a/src/Generated/Models/Realtime/InternalRealtimeResponseModality.cs b/src/Generated/Models/Realtime/InternalRealtimeResponseModality.cs index 9c7a6570b..28ab69871 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeResponseModality.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeResponseModality.cs @@ -31,6 +31,8 @@ public InternalRealtimeResponseModality(string value) public static implicit operator InternalRealtimeResponseModality(string value) => new InternalRealtimeResponseModality(value); + public static implicit operator InternalRealtimeResponseModality?(string value) => value == null ? null : new InternalRealtimeResponseModality(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRealtimeResponseModality other && Equals(other); diff --git a/src/Generated/Models/Realtime/InternalRealtimeResponseOutputAudioFormat.cs b/src/Generated/Models/Realtime/InternalRealtimeResponseOutputAudioFormat.cs index 915e1cac4..7333e9ef6 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeResponseOutputAudioFormat.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeResponseOutputAudioFormat.cs @@ -34,6 +34,8 @@ public InternalRealtimeResponseOutputAudioFormat(string value) public static implicit operator InternalRealtimeResponseOutputAudioFormat(string value) => new InternalRealtimeResponseOutputAudioFormat(value); + public static implicit operator InternalRealtimeResponseOutputAudioFormat?(string value) => value == null ? null : new InternalRealtimeResponseOutputAudioFormat(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRealtimeResponseOutputAudioFormat other && Equals(other); diff --git a/src/Generated/Models/Realtime/InternalRealtimeResponseStatusDetailsType.cs b/src/Generated/Models/Realtime/InternalRealtimeResponseStatusDetailsType.cs index b164b8d35..24d9798e3 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeResponseStatusDetailsType.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeResponseStatusDetailsType.cs @@ -37,6 +37,8 @@ public InternalRealtimeResponseStatusDetailsType(string value) public static implicit operator InternalRealtimeResponseStatusDetailsType(string value) => new InternalRealtimeResponseStatusDetailsType(value); + public static implicit operator InternalRealtimeResponseStatusDetailsType?(string value) => value == null ? null : new InternalRealtimeResponseStatusDetailsType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRealtimeResponseStatusDetailsType other && Equals(other); diff --git a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestInputAudioNoiseReductionType.cs b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestInputAudioNoiseReductionType.cs index 57933b1d6..05d957fa8 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestInputAudioNoiseReductionType.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestInputAudioNoiseReductionType.cs @@ -31,6 +31,8 @@ public InternalRealtimeSessionCreateRequestInputAudioNoiseReductionType(string v public static implicit operator InternalRealtimeSessionCreateRequestInputAudioNoiseReductionType(string value) => new InternalRealtimeSessionCreateRequestInputAudioNoiseReductionType(value); + public static implicit operator InternalRealtimeSessionCreateRequestInputAudioNoiseReductionType?(string value) => value == null ? null : new InternalRealtimeSessionCreateRequestInputAudioNoiseReductionType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRealtimeSessionCreateRequestInputAudioNoiseReductionType other && Equals(other); diff --git a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestModel.cs b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestModel.cs index f1bb40335..814ccf22f 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestModel.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestModel.cs @@ -43,6 +43,8 @@ public InternalRealtimeSessionCreateRequestModel(string value) public static implicit operator InternalRealtimeSessionCreateRequestModel(string value) => new InternalRealtimeSessionCreateRequestModel(value); + public static implicit operator InternalRealtimeSessionCreateRequestModel?(string value) => value == null ? null : new InternalRealtimeSessionCreateRequestModel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRealtimeSessionCreateRequestModel other && Equals(other); diff --git a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestTurnDetectionEagerness.cs b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestTurnDetectionEagerness.cs index fb9173f1b..0065381db 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestTurnDetectionEagerness.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestTurnDetectionEagerness.cs @@ -37,6 +37,8 @@ public InternalRealtimeSessionCreateRequestTurnDetectionEagerness(string value) public static implicit operator InternalRealtimeSessionCreateRequestTurnDetectionEagerness(string value) => new InternalRealtimeSessionCreateRequestTurnDetectionEagerness(value); + public static implicit operator InternalRealtimeSessionCreateRequestTurnDetectionEagerness?(string value) => value == null ? null : new InternalRealtimeSessionCreateRequestTurnDetectionEagerness(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRealtimeSessionCreateRequestTurnDetectionEagerness other && Equals(other); diff --git a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestTurnDetectionType.cs b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestTurnDetectionType.cs index 40dc02e79..b4b3b071e 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestTurnDetectionType.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeSessionCreateRequestTurnDetectionType.cs @@ -31,6 +31,8 @@ public InternalRealtimeSessionCreateRequestTurnDetectionType(string value) public static implicit operator InternalRealtimeSessionCreateRequestTurnDetectionType(string value) => new InternalRealtimeSessionCreateRequestTurnDetectionType(value); + public static implicit operator InternalRealtimeSessionCreateRequestTurnDetectionType?(string value) => value == null ? null : new InternalRealtimeSessionCreateRequestTurnDetectionType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRealtimeSessionCreateRequestTurnDetectionType other && Equals(other); diff --git a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioFormat.cs b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioFormat.cs index d273f765c..8a05fb885 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioFormat.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioFormat.cs @@ -34,6 +34,8 @@ public InternalRealtimeTranscriptionSessionCreateRequestInputAudioFormat(string public static implicit operator InternalRealtimeTranscriptionSessionCreateRequestInputAudioFormat(string value) => new InternalRealtimeTranscriptionSessionCreateRequestInputAudioFormat(value); + public static implicit operator InternalRealtimeTranscriptionSessionCreateRequestInputAudioFormat?(string value) => value == null ? null : new InternalRealtimeTranscriptionSessionCreateRequestInputAudioFormat(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRealtimeTranscriptionSessionCreateRequestInputAudioFormat other && Equals(other); diff --git a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.cs b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.cs index fa1b67957..4a9cdfca2 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType.cs @@ -31,6 +31,8 @@ public InternalRealtimeTranscriptionSessionCreateRequestInputAudioNoiseReduction public static implicit operator InternalRealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType(string value) => new InternalRealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType(value); + public static implicit operator InternalRealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType?(string value) => value == null ? null : new InternalRealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRealtimeTranscriptionSessionCreateRequestInputAudioNoiseReductionType other && Equals(other); diff --git a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.cs b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.cs index 35aef1c6f..3411c1138 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel.cs @@ -34,6 +34,8 @@ public InternalRealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionM public static implicit operator InternalRealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel(string value) => new InternalRealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel(value); + public static implicit operator InternalRealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel?(string value) => value == null ? null : new InternalRealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRealtimeTranscriptionSessionCreateRequestInputAudioTranscriptionModel other && Equals(other); diff --git a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestModality.cs b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestModality.cs index 99b82cc95..672c3d982 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestModality.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestModality.cs @@ -31,6 +31,8 @@ public InternalRealtimeTranscriptionSessionCreateRequestModality(string value) public static implicit operator InternalRealtimeTranscriptionSessionCreateRequestModality(string value) => new InternalRealtimeTranscriptionSessionCreateRequestModality(value); + public static implicit operator InternalRealtimeTranscriptionSessionCreateRequestModality?(string value) => value == null ? null : new InternalRealtimeTranscriptionSessionCreateRequestModality(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRealtimeTranscriptionSessionCreateRequestModality other && Equals(other); diff --git a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness.cs b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness.cs index 9f5e29398..8c771b10c 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness.cs @@ -37,6 +37,8 @@ public InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness(s public static implicit operator InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness(string value) => new InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness(value); + public static implicit operator InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness?(string value) => value == null ? null : new InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionEagerness other && Equals(other); diff --git a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionType.cs b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionType.cs index d1fc871db..5cd63aa9c 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionType.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionType.cs @@ -31,6 +31,8 @@ public InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionType(string public static implicit operator InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionType(string value) => new InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionType(value); + public static implicit operator InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionType?(string value) => value == null ? null : new InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRealtimeTranscriptionSessionCreateRequestTurnDetectionType other && Equals(other); diff --git a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel.cs b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel.cs index c3e99f6f2..a006ca7a3 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel.cs @@ -34,6 +34,8 @@ public InternalRealtimeTranscriptionSessionCreateResponseInputAudioTranscription public static implicit operator InternalRealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel(string value) => new InternalRealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel(value); + public static implicit operator InternalRealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel?(string value) => value == null ? null : new InternalRealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRealtimeTranscriptionSessionCreateResponseInputAudioTranscriptionModel other && Equals(other); diff --git a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponseModality.cs b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponseModality.cs index 75c9ecceb..100b5c25d 100644 --- a/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponseModality.cs +++ b/src/Generated/Models/Realtime/InternalRealtimeTranscriptionSessionCreateResponseModality.cs @@ -31,6 +31,8 @@ public InternalRealtimeTranscriptionSessionCreateResponseModality(string value) public static implicit operator InternalRealtimeTranscriptionSessionCreateResponseModality(string value) => new InternalRealtimeTranscriptionSessionCreateResponseModality(value); + public static implicit operator InternalRealtimeTranscriptionSessionCreateResponseModality?(string value) => value == null ? null : new InternalRealtimeTranscriptionSessionCreateResponseModality(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalRealtimeTranscriptionSessionCreateResponseModality other && Equals(other); diff --git a/src/Generated/Models/Realtime/RealtimeAudioFormat.cs b/src/Generated/Models/Realtime/RealtimeAudioFormat.cs index db7621079..36192fcf1 100644 --- a/src/Generated/Models/Realtime/RealtimeAudioFormat.cs +++ b/src/Generated/Models/Realtime/RealtimeAudioFormat.cs @@ -36,6 +36,8 @@ public RealtimeAudioFormat(string value) public static implicit operator RealtimeAudioFormat(string value) => new RealtimeAudioFormat(value); + public static implicit operator RealtimeAudioFormat?(string value) => value == null ? null : new RealtimeAudioFormat(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is RealtimeAudioFormat other && Equals(other); diff --git a/src/Generated/Models/Realtime/ResponseConversationSelection.cs b/src/Generated/Models/Realtime/ResponseConversationSelection.cs index f4d230362..ce31b62d7 100644 --- a/src/Generated/Models/Realtime/ResponseConversationSelection.cs +++ b/src/Generated/Models/Realtime/ResponseConversationSelection.cs @@ -33,6 +33,8 @@ public ResponseConversationSelection(string value) public static implicit operator ResponseConversationSelection(string value) => new ResponseConversationSelection(value); + public static implicit operator ResponseConversationSelection?(string value) => value == null ? null : new ResponseConversationSelection(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ResponseConversationSelection other && Equals(other); diff --git a/src/Generated/Models/Realtime/SemanticEagernessLevel.cs b/src/Generated/Models/Realtime/SemanticEagernessLevel.cs index 85b851e11..a551d2622 100644 --- a/src/Generated/Models/Realtime/SemanticEagernessLevel.cs +++ b/src/Generated/Models/Realtime/SemanticEagernessLevel.cs @@ -39,6 +39,8 @@ public SemanticEagernessLevel(string value) public static implicit operator SemanticEagernessLevel(string value) => new SemanticEagernessLevel(value); + public static implicit operator SemanticEagernessLevel?(string value) => value == null ? null : new SemanticEagernessLevel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is SemanticEagernessLevel other && Equals(other); diff --git a/src/Generated/Models/Responses/ComputerToolEnvironment.cs b/src/Generated/Models/Responses/ComputerToolEnvironment.cs index 80f325d11..274593179 100644 --- a/src/Generated/Models/Responses/ComputerToolEnvironment.cs +++ b/src/Generated/Models/Responses/ComputerToolEnvironment.cs @@ -42,6 +42,8 @@ public ComputerToolEnvironment(string value) public static implicit operator ComputerToolEnvironment(string value) => new ComputerToolEnvironment(value); + public static implicit operator ComputerToolEnvironment?(string value) => value == null ? null : new ComputerToolEnvironment(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ComputerToolEnvironment other && Equals(other); diff --git a/src/Generated/Models/Responses/FileSearchToolRanker.cs b/src/Generated/Models/Responses/FileSearchToolRanker.cs index 0b8c6cc63..419f2af69 100644 --- a/src/Generated/Models/Responses/FileSearchToolRanker.cs +++ b/src/Generated/Models/Responses/FileSearchToolRanker.cs @@ -33,6 +33,8 @@ public FileSearchToolRanker(string value) public static implicit operator FileSearchToolRanker(string value) => new FileSearchToolRanker(value); + public static implicit operator FileSearchToolRanker?(string value) => value == null ? null : new FileSearchToolRanker(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is FileSearchToolRanker other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalCodeInterpreterToolCallItemResourceStatus.cs b/src/Generated/Models/Responses/InternalCodeInterpreterToolCallItemResourceStatus.cs index 0bbd27d1a..a80e50098 100644 --- a/src/Generated/Models/Responses/InternalCodeInterpreterToolCallItemResourceStatus.cs +++ b/src/Generated/Models/Responses/InternalCodeInterpreterToolCallItemResourceStatus.cs @@ -34,6 +34,8 @@ public InternalCodeInterpreterToolCallItemResourceStatus(string value) public static implicit operator InternalCodeInterpreterToolCallItemResourceStatus(string value) => new InternalCodeInterpreterToolCallItemResourceStatus(value); + public static implicit operator InternalCodeInterpreterToolCallItemResourceStatus?(string value) => value == null ? null : new InternalCodeInterpreterToolCallItemResourceStatus(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCodeInterpreterToolCallItemResourceStatus other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalComparisonFilterType.cs b/src/Generated/Models/Responses/InternalComparisonFilterType.cs index 8d8d89b5a..af4b2d413 100644 --- a/src/Generated/Models/Responses/InternalComparisonFilterType.cs +++ b/src/Generated/Models/Responses/InternalComparisonFilterType.cs @@ -43,6 +43,8 @@ public InternalComparisonFilterType(string value) public static implicit operator InternalComparisonFilterType(string value) => new InternalComparisonFilterType(value); + public static implicit operator InternalComparisonFilterType?(string value) => value == null ? null : new InternalComparisonFilterType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalComparisonFilterType other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalCompoundFilterType.cs b/src/Generated/Models/Responses/InternalCompoundFilterType.cs index 9585e845a..8705ddbb8 100644 --- a/src/Generated/Models/Responses/InternalCompoundFilterType.cs +++ b/src/Generated/Models/Responses/InternalCompoundFilterType.cs @@ -31,6 +31,8 @@ public InternalCompoundFilterType(string value) public static implicit operator InternalCompoundFilterType(string value) => new InternalCompoundFilterType(value); + public static implicit operator InternalCompoundFilterType?(string value) => value == null ? null : new InternalCompoundFilterType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalCompoundFilterType other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalComputerUsePreviewToolCallOutputOutputType.cs b/src/Generated/Models/Responses/InternalComputerUsePreviewToolCallOutputOutputType.cs index f8c76b097..e4ba02fba 100644 --- a/src/Generated/Models/Responses/InternalComputerUsePreviewToolCallOutputOutputType.cs +++ b/src/Generated/Models/Responses/InternalComputerUsePreviewToolCallOutputOutputType.cs @@ -28,6 +28,8 @@ public InternalComputerUsePreviewToolCallOutputOutputType(string value) public static implicit operator InternalComputerUsePreviewToolCallOutputOutputType(string value) => new InternalComputerUsePreviewToolCallOutputOutputType(value); + public static implicit operator InternalComputerUsePreviewToolCallOutputOutputType?(string value) => value == null ? null : new InternalComputerUsePreviewToolCallOutputOutputType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalComputerUsePreviewToolCallOutputOutputType other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalImageGenToolBackground.cs b/src/Generated/Models/Responses/InternalImageGenToolBackground.cs index e2eb285c1..51f5b974b 100644 --- a/src/Generated/Models/Responses/InternalImageGenToolBackground.cs +++ b/src/Generated/Models/Responses/InternalImageGenToolBackground.cs @@ -34,6 +34,8 @@ public InternalImageGenToolBackground(string value) public static implicit operator InternalImageGenToolBackground(string value) => new InternalImageGenToolBackground(value); + public static implicit operator InternalImageGenToolBackground?(string value) => value == null ? null : new InternalImageGenToolBackground(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalImageGenToolBackground other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalImageGenToolCallItemResourceStatus.cs b/src/Generated/Models/Responses/InternalImageGenToolCallItemResourceStatus.cs index 32c209d93..3a616e6bf 100644 --- a/src/Generated/Models/Responses/InternalImageGenToolCallItemResourceStatus.cs +++ b/src/Generated/Models/Responses/InternalImageGenToolCallItemResourceStatus.cs @@ -37,6 +37,8 @@ public InternalImageGenToolCallItemResourceStatus(string value) public static implicit operator InternalImageGenToolCallItemResourceStatus(string value) => new InternalImageGenToolCallItemResourceStatus(value); + public static implicit operator InternalImageGenToolCallItemResourceStatus?(string value) => value == null ? null : new InternalImageGenToolCallItemResourceStatus(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalImageGenToolCallItemResourceStatus other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalImageGenToolModeration.cs b/src/Generated/Models/Responses/InternalImageGenToolModeration.cs index f8d60bf77..fdbd0d196 100644 --- a/src/Generated/Models/Responses/InternalImageGenToolModeration.cs +++ b/src/Generated/Models/Responses/InternalImageGenToolModeration.cs @@ -31,6 +31,8 @@ public InternalImageGenToolModeration(string value) public static implicit operator InternalImageGenToolModeration(string value) => new InternalImageGenToolModeration(value); + public static implicit operator InternalImageGenToolModeration?(string value) => value == null ? null : new InternalImageGenToolModeration(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalImageGenToolModeration other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalImageGenToolOutputFormat.cs b/src/Generated/Models/Responses/InternalImageGenToolOutputFormat.cs index e588a0577..2c90defd2 100644 --- a/src/Generated/Models/Responses/InternalImageGenToolOutputFormat.cs +++ b/src/Generated/Models/Responses/InternalImageGenToolOutputFormat.cs @@ -34,6 +34,8 @@ public InternalImageGenToolOutputFormat(string value) public static implicit operator InternalImageGenToolOutputFormat(string value) => new InternalImageGenToolOutputFormat(value); + public static implicit operator InternalImageGenToolOutputFormat?(string value) => value == null ? null : new InternalImageGenToolOutputFormat(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalImageGenToolOutputFormat other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalImageGenToolQuality.cs b/src/Generated/Models/Responses/InternalImageGenToolQuality.cs index 5efbc280d..91dbe534b 100644 --- a/src/Generated/Models/Responses/InternalImageGenToolQuality.cs +++ b/src/Generated/Models/Responses/InternalImageGenToolQuality.cs @@ -37,6 +37,8 @@ public InternalImageGenToolQuality(string value) public static implicit operator InternalImageGenToolQuality(string value) => new InternalImageGenToolQuality(value); + public static implicit operator InternalImageGenToolQuality?(string value) => value == null ? null : new InternalImageGenToolQuality(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalImageGenToolQuality other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalImageGenToolSize.cs b/src/Generated/Models/Responses/InternalImageGenToolSize.cs index 8c17d82b6..57f31013f 100644 --- a/src/Generated/Models/Responses/InternalImageGenToolSize.cs +++ b/src/Generated/Models/Responses/InternalImageGenToolSize.cs @@ -37,6 +37,8 @@ public InternalImageGenToolSize(string value) public static implicit operator InternalImageGenToolSize(string value) => new InternalImageGenToolSize(value); + public static implicit operator InternalImageGenToolSize?(string value) => value == null ? null : new InternalImageGenToolSize(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalImageGenToolSize other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalIncludable.cs b/src/Generated/Models/Responses/InternalIncludable.cs index 4c267a22b..180691347 100644 --- a/src/Generated/Models/Responses/InternalIncludable.cs +++ b/src/Generated/Models/Responses/InternalIncludable.cs @@ -40,6 +40,8 @@ public InternalIncludable(string value) public static implicit operator InternalIncludable(string value) => new InternalIncludable(value); + public static implicit operator InternalIncludable?(string value) => value == null ? null : new InternalIncludable(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalIncludable other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalItemContentInputAudioFormat.cs b/src/Generated/Models/Responses/InternalItemContentInputAudioFormat.cs index 62573608d..6233c63b6 100644 --- a/src/Generated/Models/Responses/InternalItemContentInputAudioFormat.cs +++ b/src/Generated/Models/Responses/InternalItemContentInputAudioFormat.cs @@ -31,6 +31,8 @@ public InternalItemContentInputAudioFormat(string value) public static implicit operator InternalItemContentInputAudioFormat(string value) => new InternalItemContentInputAudioFormat(value); + public static implicit operator InternalItemContentInputAudioFormat?(string value) => value == null ? null : new InternalItemContentInputAudioFormat(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalItemContentInputAudioFormat other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalItemContentType.cs b/src/Generated/Models/Responses/InternalItemContentType.cs index 57a3ba440..bd4f6f938 100644 --- a/src/Generated/Models/Responses/InternalItemContentType.cs +++ b/src/Generated/Models/Responses/InternalItemContentType.cs @@ -46,6 +46,8 @@ public InternalItemContentType(string value) public static implicit operator InternalItemContentType(string value) => new InternalItemContentType(value); + public static implicit operator InternalItemContentType?(string value) => value == null ? null : new InternalItemContentType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalItemContentType other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalItemType.cs b/src/Generated/Models/Responses/InternalItemType.cs index 38dea6f37..df4fe61da 100644 --- a/src/Generated/Models/Responses/InternalItemType.cs +++ b/src/Generated/Models/Responses/InternalItemType.cs @@ -76,6 +76,8 @@ public InternalItemType(string value) public static implicit operator InternalItemType(string value) => new InternalItemType(value); + public static implicit operator InternalItemType?(string value) => value == null ? null : new InternalItemType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalItemType other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalLocalShellToolCallItemResourceStatus.cs b/src/Generated/Models/Responses/InternalLocalShellToolCallItemResourceStatus.cs index 0cc510697..01f6c1ddf 100644 --- a/src/Generated/Models/Responses/InternalLocalShellToolCallItemResourceStatus.cs +++ b/src/Generated/Models/Responses/InternalLocalShellToolCallItemResourceStatus.cs @@ -34,6 +34,8 @@ public InternalLocalShellToolCallItemResourceStatus(string value) public static implicit operator InternalLocalShellToolCallItemResourceStatus(string value) => new InternalLocalShellToolCallItemResourceStatus(value); + public static implicit operator InternalLocalShellToolCallItemResourceStatus?(string value) => value == null ? null : new InternalLocalShellToolCallItemResourceStatus(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalLocalShellToolCallItemResourceStatus other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalLocalShellToolCallOutputItemResourceStatus.cs b/src/Generated/Models/Responses/InternalLocalShellToolCallOutputItemResourceStatus.cs index 5e720b63e..da9a54d7b 100644 --- a/src/Generated/Models/Responses/InternalLocalShellToolCallOutputItemResourceStatus.cs +++ b/src/Generated/Models/Responses/InternalLocalShellToolCallOutputItemResourceStatus.cs @@ -34,6 +34,8 @@ public InternalLocalShellToolCallOutputItemResourceStatus(string value) public static implicit operator InternalLocalShellToolCallOutputItemResourceStatus(string value) => new InternalLocalShellToolCallOutputItemResourceStatus(value); + public static implicit operator InternalLocalShellToolCallOutputItemResourceStatus?(string value) => value == null ? null : new InternalLocalShellToolCallOutputItemResourceStatus(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalLocalShellToolCallOutputItemResourceStatus other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalModelIdsResponses.cs b/src/Generated/Models/Responses/InternalModelIdsResponses.cs index 16e2a91cc..8098a6cee 100644 --- a/src/Generated/Models/Responses/InternalModelIdsResponses.cs +++ b/src/Generated/Models/Responses/InternalModelIdsResponses.cs @@ -208,6 +208,8 @@ public InternalModelIdsResponses(string value) public static implicit operator InternalModelIdsResponses(string value) => new InternalModelIdsResponses(value); + public static implicit operator InternalModelIdsResponses?(string value) => value == null ? null : new InternalModelIdsResponses(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalModelIdsResponses other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalReasoningGenerateSummary.cs b/src/Generated/Models/Responses/InternalReasoningGenerateSummary.cs index 9090fb6a5..3188b2b21 100644 --- a/src/Generated/Models/Responses/InternalReasoningGenerateSummary.cs +++ b/src/Generated/Models/Responses/InternalReasoningGenerateSummary.cs @@ -34,6 +34,8 @@ public InternalReasoningGenerateSummary(string value) public static implicit operator InternalReasoningGenerateSummary(string value) => new InternalReasoningGenerateSummary(value); + public static implicit operator InternalReasoningGenerateSummary?(string value) => value == null ? null : new InternalReasoningGenerateSummary(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalReasoningGenerateSummary other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalReasoningItemSummaryPartType.cs b/src/Generated/Models/Responses/InternalReasoningItemSummaryPartType.cs index 717e06f11..0eb4bce31 100644 --- a/src/Generated/Models/Responses/InternalReasoningItemSummaryPartType.cs +++ b/src/Generated/Models/Responses/InternalReasoningItemSummaryPartType.cs @@ -28,6 +28,8 @@ public InternalReasoningItemSummaryPartType(string value) public static implicit operator InternalReasoningItemSummaryPartType(string value) => new InternalReasoningItemSummaryPartType(value); + public static implicit operator InternalReasoningItemSummaryPartType?(string value) => value == null ? null : new InternalReasoningItemSummaryPartType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalReasoningItemSummaryPartType other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalResponseStreamEventType.cs b/src/Generated/Models/Responses/InternalResponseStreamEventType.cs index ef8d92b00..830864a8f 100644 --- a/src/Generated/Models/Responses/InternalResponseStreamEventType.cs +++ b/src/Generated/Models/Responses/InternalResponseStreamEventType.cs @@ -184,6 +184,8 @@ public InternalResponseStreamEventType(string value) public static implicit operator InternalResponseStreamEventType(string value) => new InternalResponseStreamEventType(value); + public static implicit operator InternalResponseStreamEventType?(string value) => value == null ? null : new InternalResponseStreamEventType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalResponseStreamEventType other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalResponsesMessageRole.cs b/src/Generated/Models/Responses/InternalResponsesMessageRole.cs index 2cfee9fdf..971b3abf9 100644 --- a/src/Generated/Models/Responses/InternalResponsesMessageRole.cs +++ b/src/Generated/Models/Responses/InternalResponsesMessageRole.cs @@ -37,6 +37,8 @@ public InternalResponsesMessageRole(string value) public static implicit operator InternalResponsesMessageRole(string value) => new InternalResponsesMessageRole(value); + public static implicit operator InternalResponsesMessageRole?(string value) => value == null ? null : new InternalResponsesMessageRole(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalResponsesMessageRole other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalResponsesTextFormatType.cs b/src/Generated/Models/Responses/InternalResponsesTextFormatType.cs index 269427759..0fb3ce5d0 100644 --- a/src/Generated/Models/Responses/InternalResponsesTextFormatType.cs +++ b/src/Generated/Models/Responses/InternalResponsesTextFormatType.cs @@ -34,6 +34,8 @@ public InternalResponsesTextFormatType(string value) public static implicit operator InternalResponsesTextFormatType(string value) => new InternalResponsesTextFormatType(value); + public static implicit operator InternalResponsesTextFormatType?(string value) => value == null ? null : new InternalResponsesTextFormatType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalResponsesTextFormatType other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalToolChoiceObjectType.cs b/src/Generated/Models/Responses/InternalToolChoiceObjectType.cs index a3be715be..29335d120 100644 --- a/src/Generated/Models/Responses/InternalToolChoiceObjectType.cs +++ b/src/Generated/Models/Responses/InternalToolChoiceObjectType.cs @@ -46,6 +46,8 @@ public InternalToolChoiceObjectType(string value) public static implicit operator InternalToolChoiceObjectType(string value) => new InternalToolChoiceObjectType(value); + public static implicit operator InternalToolChoiceObjectType?(string value) => value == null ? null : new InternalToolChoiceObjectType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalToolChoiceObjectType other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalToolChoiceOptions.cs b/src/Generated/Models/Responses/InternalToolChoiceOptions.cs index 3205887a4..6ec69fb14 100644 --- a/src/Generated/Models/Responses/InternalToolChoiceOptions.cs +++ b/src/Generated/Models/Responses/InternalToolChoiceOptions.cs @@ -34,6 +34,8 @@ public InternalToolChoiceOptions(string value) public static implicit operator InternalToolChoiceOptions(string value) => new InternalToolChoiceOptions(value); + public static implicit operator InternalToolChoiceOptions?(string value) => value == null ? null : new InternalToolChoiceOptions(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalToolChoiceOptions other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalToolType.cs b/src/Generated/Models/Responses/InternalToolType.cs index b413b7c51..cfd98ad1f 100644 --- a/src/Generated/Models/Responses/InternalToolType.cs +++ b/src/Generated/Models/Responses/InternalToolType.cs @@ -49,6 +49,8 @@ public InternalToolType(string value) public static implicit operator InternalToolType(string value) => new InternalToolType(value); + public static implicit operator InternalToolType?(string value) => value == null ? null : new InternalToolType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalToolType other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalWebSearchPreviewToolSearchContextSize.cs b/src/Generated/Models/Responses/InternalWebSearchPreviewToolSearchContextSize.cs index d44b08995..50770514e 100644 --- a/src/Generated/Models/Responses/InternalWebSearchPreviewToolSearchContextSize.cs +++ b/src/Generated/Models/Responses/InternalWebSearchPreviewToolSearchContextSize.cs @@ -34,6 +34,8 @@ public InternalWebSearchPreviewToolSearchContextSize(string value) public static implicit operator InternalWebSearchPreviewToolSearchContextSize(string value) => new InternalWebSearchPreviewToolSearchContextSize(value); + public static implicit operator InternalWebSearchPreviewToolSearchContextSize?(string value) => value == null ? null : new InternalWebSearchPreviewToolSearchContextSize(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalWebSearchPreviewToolSearchContextSize other && Equals(other); diff --git a/src/Generated/Models/Responses/InternalWebSearchUserLocationKind.cs b/src/Generated/Models/Responses/InternalWebSearchUserLocationKind.cs index 7fe88c3ec..01ab23e5c 100644 --- a/src/Generated/Models/Responses/InternalWebSearchUserLocationKind.cs +++ b/src/Generated/Models/Responses/InternalWebSearchUserLocationKind.cs @@ -28,6 +28,8 @@ public InternalWebSearchUserLocationKind(string value) public static implicit operator InternalWebSearchUserLocationKind(string value) => new InternalWebSearchUserLocationKind(value); + public static implicit operator InternalWebSearchUserLocationKind?(string value) => value == null ? null : new InternalWebSearchUserLocationKind(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalWebSearchUserLocationKind other && Equals(other); diff --git a/src/Generated/Models/Responses/ResponseErrorCode.cs b/src/Generated/Models/Responses/ResponseErrorCode.cs index ec3223546..c03de0a41 100644 --- a/src/Generated/Models/Responses/ResponseErrorCode.cs +++ b/src/Generated/Models/Responses/ResponseErrorCode.cs @@ -81,6 +81,8 @@ public ResponseErrorCode(string value) public static implicit operator ResponseErrorCode(string value) => new ResponseErrorCode(value); + public static implicit operator ResponseErrorCode?(string value) => value == null ? null : new ResponseErrorCode(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ResponseErrorCode other && Equals(other); diff --git a/src/Generated/Models/Responses/ResponseImageDetailLevel.cs b/src/Generated/Models/Responses/ResponseImageDetailLevel.cs index 0348fa08a..0ea5cb39c 100644 --- a/src/Generated/Models/Responses/ResponseImageDetailLevel.cs +++ b/src/Generated/Models/Responses/ResponseImageDetailLevel.cs @@ -36,6 +36,8 @@ public ResponseImageDetailLevel(string value) public static implicit operator ResponseImageDetailLevel(string value) => new ResponseImageDetailLevel(value); + public static implicit operator ResponseImageDetailLevel?(string value) => value == null ? null : new ResponseImageDetailLevel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ResponseImageDetailLevel other && Equals(other); diff --git a/src/Generated/Models/Responses/ResponseIncompleteStatusReason.cs b/src/Generated/Models/Responses/ResponseIncompleteStatusReason.cs index 646bed150..662296dc6 100644 --- a/src/Generated/Models/Responses/ResponseIncompleteStatusReason.cs +++ b/src/Generated/Models/Responses/ResponseIncompleteStatusReason.cs @@ -33,6 +33,8 @@ public ResponseIncompleteStatusReason(string value) public static implicit operator ResponseIncompleteStatusReason(string value) => new ResponseIncompleteStatusReason(value); + public static implicit operator ResponseIncompleteStatusReason?(string value) => value == null ? null : new ResponseIncompleteStatusReason(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ResponseIncompleteStatusReason other && Equals(other); diff --git a/src/Generated/Models/Responses/ResponseReasoningEffortLevel.cs b/src/Generated/Models/Responses/ResponseReasoningEffortLevel.cs index 08c27d9b5..4fedd2456 100644 --- a/src/Generated/Models/Responses/ResponseReasoningEffortLevel.cs +++ b/src/Generated/Models/Responses/ResponseReasoningEffortLevel.cs @@ -36,6 +36,8 @@ public ResponseReasoningEffortLevel(string value) public static implicit operator ResponseReasoningEffortLevel(string value) => new ResponseReasoningEffortLevel(value); + public static implicit operator ResponseReasoningEffortLevel?(string value) => value == null ? null : new ResponseReasoningEffortLevel(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ResponseReasoningEffortLevel other && Equals(other); diff --git a/src/Generated/Models/Responses/ResponseReasoningSummaryVerbosity.cs b/src/Generated/Models/Responses/ResponseReasoningSummaryVerbosity.cs index 58a48a0c6..c7093172d 100644 --- a/src/Generated/Models/Responses/ResponseReasoningSummaryVerbosity.cs +++ b/src/Generated/Models/Responses/ResponseReasoningSummaryVerbosity.cs @@ -36,6 +36,8 @@ public ResponseReasoningSummaryVerbosity(string value) public static implicit operator ResponseReasoningSummaryVerbosity(string value) => new ResponseReasoningSummaryVerbosity(value); + public static implicit operator ResponseReasoningSummaryVerbosity?(string value) => value == null ? null : new ResponseReasoningSummaryVerbosity(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ResponseReasoningSummaryVerbosity other && Equals(other); diff --git a/src/Generated/Models/Responses/ResponseTruncationMode.cs b/src/Generated/Models/Responses/ResponseTruncationMode.cs index 8141123ee..bb4db2703 100644 --- a/src/Generated/Models/Responses/ResponseTruncationMode.cs +++ b/src/Generated/Models/Responses/ResponseTruncationMode.cs @@ -33,6 +33,8 @@ public ResponseTruncationMode(string value) public static implicit operator ResponseTruncationMode(string value) => new ResponseTruncationMode(value); + public static implicit operator ResponseTruncationMode?(string value) => value == null ? null : new ResponseTruncationMode(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is ResponseTruncationMode other && Equals(other); diff --git a/src/Generated/Models/Responses/WebSearchContextSize.cs b/src/Generated/Models/Responses/WebSearchContextSize.cs index 8a99324ed..f7db2a219 100644 --- a/src/Generated/Models/Responses/WebSearchContextSize.cs +++ b/src/Generated/Models/Responses/WebSearchContextSize.cs @@ -36,6 +36,8 @@ public WebSearchContextSize(string value) public static implicit operator WebSearchContextSize(string value) => new WebSearchContextSize(value); + public static implicit operator WebSearchContextSize?(string value) => value == null ? null : new WebSearchContextSize(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is WebSearchContextSize other && Equals(other); diff --git a/src/Generated/Models/VectorStores/InternalChunkingStrategyRequestParamType.cs b/src/Generated/Models/VectorStores/InternalChunkingStrategyRequestParamType.cs index 9048bf279..bd388a4bf 100644 --- a/src/Generated/Models/VectorStores/InternalChunkingStrategyRequestParamType.cs +++ b/src/Generated/Models/VectorStores/InternalChunkingStrategyRequestParamType.cs @@ -31,6 +31,8 @@ public InternalChunkingStrategyRequestParamType(string value) public static implicit operator InternalChunkingStrategyRequestParamType(string value) => new InternalChunkingStrategyRequestParamType(value); + public static implicit operator InternalChunkingStrategyRequestParamType?(string value) => value == null ? null : new InternalChunkingStrategyRequestParamType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalChunkingStrategyRequestParamType other && Equals(other); diff --git a/src/Generated/Models/VectorStores/InternalChunkingStrategyResponseParamType.cs b/src/Generated/Models/VectorStores/InternalChunkingStrategyResponseParamType.cs index 927c85292..e34367a8d 100644 --- a/src/Generated/Models/VectorStores/InternalChunkingStrategyResponseParamType.cs +++ b/src/Generated/Models/VectorStores/InternalChunkingStrategyResponseParamType.cs @@ -31,6 +31,8 @@ public InternalChunkingStrategyResponseParamType(string value) public static implicit operator InternalChunkingStrategyResponseParamType(string value) => new InternalChunkingStrategyResponseParamType(value); + public static implicit operator InternalChunkingStrategyResponseParamType?(string value) => value == null ? null : new InternalChunkingStrategyResponseParamType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalChunkingStrategyResponseParamType other && Equals(other); diff --git a/src/Generated/Models/VectorStores/InternalDotNetCombinedChunkingStrategyParamType.cs b/src/Generated/Models/VectorStores/InternalDotNetCombinedChunkingStrategyParamType.cs index b13405b89..cf36e94ed 100644 --- a/src/Generated/Models/VectorStores/InternalDotNetCombinedChunkingStrategyParamType.cs +++ b/src/Generated/Models/VectorStores/InternalDotNetCombinedChunkingStrategyParamType.cs @@ -34,6 +34,8 @@ public InternalDotNetCombinedChunkingStrategyParamType(string value) public static implicit operator InternalDotNetCombinedChunkingStrategyParamType(string value) => new InternalDotNetCombinedChunkingStrategyParamType(value); + public static implicit operator InternalDotNetCombinedChunkingStrategyParamType?(string value) => value == null ? null : new InternalDotNetCombinedChunkingStrategyParamType(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalDotNetCombinedChunkingStrategyParamType other && Equals(other); diff --git a/src/Generated/Models/VectorStores/InternalVectorStoreSearchRequestRankingOptionsRanker.cs b/src/Generated/Models/VectorStores/InternalVectorStoreSearchRequestRankingOptionsRanker.cs index 631d10865..e47dfddc2 100644 --- a/src/Generated/Models/VectorStores/InternalVectorStoreSearchRequestRankingOptionsRanker.cs +++ b/src/Generated/Models/VectorStores/InternalVectorStoreSearchRequestRankingOptionsRanker.cs @@ -31,6 +31,8 @@ public InternalVectorStoreSearchRequestRankingOptionsRanker(string value) public static implicit operator InternalVectorStoreSearchRequestRankingOptionsRanker(string value) => new InternalVectorStoreSearchRequestRankingOptionsRanker(value); + public static implicit operator InternalVectorStoreSearchRequestRankingOptionsRanker?(string value) => value == null ? null : new InternalVectorStoreSearchRequestRankingOptionsRanker(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is InternalVectorStoreSearchRequestRankingOptionsRanker other && Equals(other); diff --git a/src/Generated/Models/VectorStores/VectorStoreBatchFileJobStatus.cs b/src/Generated/Models/VectorStores/VectorStoreBatchFileJobStatus.cs index 7ed990a80..608731d5c 100644 --- a/src/Generated/Models/VectorStores/VectorStoreBatchFileJobStatus.cs +++ b/src/Generated/Models/VectorStores/VectorStoreBatchFileJobStatus.cs @@ -39,6 +39,8 @@ public VectorStoreBatchFileJobStatus(string value) public static implicit operator VectorStoreBatchFileJobStatus(string value) => new VectorStoreBatchFileJobStatus(value); + public static implicit operator VectorStoreBatchFileJobStatus?(string value) => value == null ? null : new VectorStoreBatchFileJobStatus(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is VectorStoreBatchFileJobStatus other && Equals(other); diff --git a/src/Generated/Models/VectorStores/VectorStoreCollectionOrder.cs b/src/Generated/Models/VectorStores/VectorStoreCollectionOrder.cs index cf2387da5..f551a974e 100644 --- a/src/Generated/Models/VectorStores/VectorStoreCollectionOrder.cs +++ b/src/Generated/Models/VectorStores/VectorStoreCollectionOrder.cs @@ -29,6 +29,8 @@ public VectorStoreCollectionOrder(string value) public static implicit operator VectorStoreCollectionOrder(string value) => new VectorStoreCollectionOrder(value); + public static implicit operator VectorStoreCollectionOrder?(string value) => value == null ? null : new VectorStoreCollectionOrder(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is VectorStoreCollectionOrder other && Equals(other); diff --git a/src/Generated/Models/VectorStores/VectorStoreFileAssociationErrorCode.cs b/src/Generated/Models/VectorStores/VectorStoreFileAssociationErrorCode.cs index 12b9ae9b8..4333806a3 100644 --- a/src/Generated/Models/VectorStores/VectorStoreFileAssociationErrorCode.cs +++ b/src/Generated/Models/VectorStores/VectorStoreFileAssociationErrorCode.cs @@ -36,6 +36,8 @@ public VectorStoreFileAssociationErrorCode(string value) public static implicit operator VectorStoreFileAssociationErrorCode(string value) => new VectorStoreFileAssociationErrorCode(value); + public static implicit operator VectorStoreFileAssociationErrorCode?(string value) => value == null ? null : new VectorStoreFileAssociationErrorCode(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is VectorStoreFileAssociationErrorCode other && Equals(other); diff --git a/src/Generated/Models/VectorStores/VectorStoreFileStatusFilter.cs b/src/Generated/Models/VectorStores/VectorStoreFileStatusFilter.cs index b9469d629..9c3fd2ce3 100644 --- a/src/Generated/Models/VectorStores/VectorStoreFileStatusFilter.cs +++ b/src/Generated/Models/VectorStores/VectorStoreFileStatusFilter.cs @@ -39,6 +39,8 @@ public VectorStoreFileStatusFilter(string value) public static implicit operator VectorStoreFileStatusFilter(string value) => new VectorStoreFileStatusFilter(value); + public static implicit operator VectorStoreFileStatusFilter?(string value) => value == null ? null : new VectorStoreFileStatusFilter(value); + [EditorBrowsable(EditorBrowsableState.Never)] public override bool Equals(object obj) => obj is VectorStoreFileStatusFilter other && Equals(other);