.NET SDK
$
npx @buildinternet/releases get openai-net-sdkMon
Wed
Fri
NovDecJanFebMarAprMayJunJulAugSepOctNov
LessMore
Releases3Avg0/wk
Last Checked
16h ago
npx @buildinternet/releases get openai-net-sdkModerationInputPartKind enum to an extensible enum.CodeInterpreterCallStatusComputerCallActionKindComputerCallActionMouseButtonComputerCallOutputStatusComputerCallStatusFileSearchCallStatusFunctionCallOutputStatusFunctionCallStatusImageGenerationCallStatusMessageRoleMessageStatusReasoningStatusResponseContentPartKindResponseMessageAnnotationKindResponseStatusResponseTextFormatKindWebSearchCallStatusUnknown value from MessageRole, ResponseContentPartKind, and ResponseTextFormatKind. Unrecognized values are now kept as-is.InputAudio and OutputAudio values to ResponseContentPartKind.FunctionCallOutputResponseItem to support multimodal function outputs.
FunctionOutput changed from a settable string to a get-only IList<ResponseContentPart>. To update the output on an existing item, modify the list instead of assigning the property.FunctionCallOutputResponseItem constructor that takes a function output and the ResponseItem.CreateFunctionCallOutputItem factory now take IEnumerable<ResponseContentPart> instead of string. For text-only output, pass [ResponseContentPart.CreateInputTextPart(output)].output field now serializes as an array of content parts. On deserialization, a plain string is still accepted and becomes a single input text part.FunctionCallOutputStatus from a fixed enum to a string-backed extensible enum. The InProgress, Completed, and Incomplete values are still available.VectorStoreExpirationAnchor, VectorStoreFileStatus, and VectorStoreStatus enums to extensible enums.Unknown value from VectorStoreExpirationAnchor, VectorStoreFileStatus, and VectorStoreStatus. Unrecognized values are now kept as-is.Thank you to our developer community members who helped to make the OpenAI client library better with their contributions to this release:
ExtraHigh and Max values to the ChatReasoningEffortLevel extensible enum.DecisionsClient with the following methods: CreateDecision and CreateDecisionAsync.DecisionsPredicateQuestion), which return the probability that a condition is true.DecisionsChoiceQuestion), which select from a fixed set of choices.DecisionsScoreQuestion), which evaluate input against a rubric of score levels.DecisionsUserMessageItem) support input text, images, and JSON.DecisionsAssistantMessageItem) support output text and refusals.DecisionsDeveloperMessageItem and DecisionsSystemMessageItem) support text.PromptCacheKey and PromptCacheOptions properties to DecisionCreationOptions.DecisionsPromptCacheOptions type with the Mode and TimeToLive properties.DecisionsPromptCacheBreakpoint type for explicit breakpoints on supported message or tool-output text and image parts.CreateResponse operations.
CreateResponseStreamingAsync.
ResponseReasoningContext extensible enum with the Auto, CurrentTurn, and AllTurns values.Context property to ResponseReasoningOptions.CreateStreamingResult method to ResponsesClient, which lets derived clients observe or transform the updates of a streaming response while the returned result keeps sole ownership of that response.ApplyPatchOperation class hierarchy.
ApplyPatchOperationKind extensible enum.Kind property to ApplyPatchOperation.protected internal constructor to ApplyPatchOperation that takes a ApplyPatchOperationKind parameter.CodeInterpreterCallOutput class hierarchy.
CodeInterpreterCallOutputKind extensible enum.Kind property to CodeInterpreterCallOutput.protected internal constructor to CodeInterpreterCallOutput that takes a CodeInterpreterCallOutputKind parameter.CodeInterpreterToolContainerConfiguration class hierarchy.
CodeInterpreterToolContainerConfigurationKind extensible enum.Kind property to CodeInterpreterToolContainerConfiguration.protected internal constructor to CodeInterpreterToolContainerConfiguration that takes a CodeInterpreterToolContainerConfigurationKind parameter.ComputerCallOutput class hierarchy.
ComputerCallOutputKind extensible enum.Kind property to ComputerCallOutput.protected internal constructor to ComputerCallOutput that takes a ComputerCallOutputKind parameter.ReasoningSummaryPart class hierarchy.
ReasoningSummaryPartKind extensible enum.Kind property to ReasoningSummaryPart.protected internal constructor to ReasoningSummaryPart that takes a ReasoningSummaryPartKind parameter.WebSearchAction class hierarchy.
WebSearchActionKind extensible enum.Kind property to WebSearchAction.protected internal constructor to WebSearchAction that takes a WebSearchActionKind parameter.WebSearchActionSource class hierarchy.
WebSearchActionSourceKind extensible enum.Kind property to WebSearchActionSource.protected internal constructor to WebSearchActionSource that takes a WebSearchActionSourceKind parameter.WebSearchToolLocation class hierarchy.
WebSearchToolLocationKind extensible enum.Kind property to WebSearchToolLocation.protected internal constructor to WebSearchToolLocation that takes a WebSearchToolLocationKind parameter.CreateThreadAndRun protocol method of AssistantClient discarded the caller's RequestOptions. This caused the synchronous CreateThreadAndRun convenience method to ignore its CancellationToken. The asynchronous methods were not affected.CreateThreadAndRun and CreateThreadAndRunStreamingAsync methods of AssistantClient threw a NullReferenceException when the optional threadOptions parameter was omitted.EndIndex property of TextAnnotationUpdate returned the start index for streamed text annotations of a type that the library does not model.ModifyAssistant protocol method of AssistantClient would incorrectly discard its CancellationToken.JsonPatch values for message content and content-part properties were emitted alongside modeled values as duplicate JSON properties instead of taking precedence.ChatResponseFormat to honor root-level JsonPatch values.gen_ai.client.token.usage with the current OpenTelemetry inference usage counters and per-operation token histograms when OTEL_SEMCONV_STABILITY_OPT_IN includes gen_ai_latest_experimental. Counters include token modality and available cache and reasoning subsets. The default semantic convention mode remains unchanged.gen_ai.client.token.usage with the current OpenTelemetry inference usage counters and per-operation token histograms when OTEL_SEMCONV_STABILITY_OPT_IN includes gen_ai_latest_experimental. Counters include token modality and available cache and reasoning subsets. The default semantic convention mode remains unchanged.options parameter of the constructors of AssistantClient from OpenAIClientOptions to the functionally-equivalent AssistantClientOptions.Task<AsyncStreamingResult<T>> instead of AsyncCollectionResult<T>. Awaiting the call sends the request and completes once the service response is established, so its Status, ReasonPhrase, and Headers are available before the updates are read. The result can be enumerated once and owns the response; enumerate it to completion or dispose it to release the connection. The synchronous counterparts have been removed:
CreateRunStreaming, CreateThreadAndRunStreaming, and SubmitToolOutputsToRunStreaming methods of the AssistantClient; use the corresponding *Async methods instead.Task<AsyncStreamingResult<T>> instead of AsyncCollectionResult<T>. Awaiting the call sends the request and completes once the service response is established, so its Status, ReasonPhrase, and Headers are available before the updates are read. The result can be enumerated once and owns the response; enumerate it to completion or dispose it to release the connection. The synchronous counterparts have been removed:
GenerateSpeechStreaming and TranscribeAudioStreaming methods of the AudioClient; use the corresponding *Async methods instead.options parameter of the constructors of BatchClient from OpenAIClientOptions to the functionally-equivalent BatchClientOptions.options parameter of the constructors of ContainerClient from OpenAIClientOptions to the functionally-equivalent ContainerClientOptions.options parameter of the constructors of ConversationClient from OpenAIClientOptions to the functionally-equivalent ConversationClientOptions.options parameter of the constructors of EvaluationClient from OpenAIClientOptions to the functionally-equivalent EvaluationClientOptions.options parameter of the constructors of FineTuningClient from OpenAIClientOptions to the functionally-equivalent FineTuningClientOptions.options parameter of the constructors of GraderClient from OpenAIClientOptions to the functionally-equivalent GraderClientOptions.RealtimeClient and RealtimeSessionClient are now async-only. The synchronous service and session operations they previously exposed (session and client-secret creation, sending commands and audio, receiving updates, session configuration, and conversation item helpers) have been removed, along with the underlying synchronous connection path. Use the corresponding *Async APIs instead.Task<AsyncStreamingResult<T>> instead of AsyncCollectionResult<T>. Awaiting the call sends the request and completes once the service response is established, so its Status, ReasonPhrase, and Headers are available before the updates are read. The result can be enumerated once and owns the response; enumerate it to completion or dispose it to release the connection. The synchronous counterparts have been removed:
CreateResponseStreaming and GetResponseStreaming methods of the ResponsesClient; use the corresponding *Async methods instead.options parameter of the constructors of SkillClient from OpenAIClientOptions to the functionally-equivalent SkillClientOptions.options parameter of the constructors of VectorStoreClient from OpenAIClientOptions to the functionally-equivalent VectorStoreClientOptions.options parameter of the constructors of VideoClient from OpenAIClientOptions to the functionally-equivalent VideoClientOptions.Thank you to our developer community members who helped to make the OpenAI client library better with their contributions to this release:
GenerateSpeechStreamingAsyncTranscribeAudioStreamingAsyncOTEL_SEMCONV_STABILITY_OPT_IN to include gen_ai_latest_experimental to emit gen_ai.provider.name instead of gen_ai.system. The default remains compatible with OpenTelemetry GenAI Semantic Conventions v1.27.0. GenAI histograms now also advertise the recommended explicit bucket boundaries. (A community contribution, courtesy of trask)GenerateImagesStreamingAsyncGenerateImageEditsStreamingAsyncRealtimeClientCommand class hierarchy.
RealtimeClientCommandKind extensible enum.Kind property to RealtimeClientCommand.protected internal constructor to RealtimeClientCommand that takes a RealtimeClientCommandKind parameter.RealtimeServerUpdate class hierarchy.
RealtimeServerUpdateKind extensible enum.Kind property to RealtimeServerUpdate.protected internal constructor to RealtimeServerUpdate that takes a RealtimeServerUpdateKind parameter.RealtimeItem class hierarchy.
RealtimeItemKind extensible enum.Kind property to RealtimeItem.protected internal constructor to RealtimeItem that takes a RealtimeItemKind parameter.RealtimeTool class hierarchy.
RealtimeToolKind extensible enum.Kind property to RealtimeTool.protected internal constructor to RealtimeTool that takes a RealtimeToolKind parameter.ResponseTool:
CustomToolResponseItem:
CustomToolCallItemCustomToolCallOutputItemStreamingResponseUpdate:
StreamingResponseCustomToolCallInputDeltaUpdateStreamingResponseCustomToolCallInputDoneUpdateCustomToolFormat type with the following derived types:
CustomToolTextFormatCustomToolGrammarFormatCacheWriteTokenCount property to ResponseInputTokenUsageDetails.ExtraHigh and Max values to the ResponseReasoningEffortLevel extensible enum.ResponseReasoningContext extensible enum with the Auto, CurrentTurn, and AllTurns values. (A community contribution, courtesy of hogeheer499-commits)Context property to ResponseReasoningOptions. (A community contribution, courtesy of hogeheer499-commits)/realtime/, avoiding duplicate path segments. (A community contribution, courtesy of jstar0)JsonPatch not propagating correctly through certain types.Status property of the derived types of ResponseItem was not deserialized correctly when null.UsageBytes property of VectorStore was incorrectly deserialized using GetInt32() instead of GetInt64().System.ClientModel dependency to version 1.15.0. For more information, see the System.ClientModel changelog.RealtimeLogProbabilityDetails type to RealtimeTokenLogProbabilityDetails for consistency.Logprobs property of RealtimeServerUpdateConversationItemInputAudioTranscriptionCompleted to TranscriptionTokenLogProbabilities for consistency.Logprobs property of RealtimeServerUpdateConversationItemInputAudioTranscriptionDelta to TranscriptionTokenLogProbabilities for consistency.GlobalMcpToolCallApprovalPolicy type to DefaultMcpToolCallApprovalPolicy for consistency.GlobalPolicy property of McpToolCallApprovalPolicy to DefaultPolicy for consistency.UsageBytes property of VectorStore from int to long.Thank you to our developer community members who helped to make the OpenAI client library better with their contributions to this release:
X-Stainless-Lang, X-Stainless-Package-Version, X-Stainless-Runtime, X-Stainless-Runtime-Version, X-Stainless-OS, and X-Stainless-Arch), bringing the .NET library to parity with the other official OpenAI SDKs. These restate information already present in the User-Agent header in a machine-parseable form, plus the process CPU architecture, so consumers no longer need to parse the user agent string. Any value you set yourself is preserved. The User-Agent header itself is unchanged.OpenAI.DisableTelemetry AppContext switch or the OPENAI_DISABLE_TELEMETRY environment variable. When enabled, the library sends neither the X-Stainless-* headers nor the User-Agent header that it would otherwise add. See Telemetry and privacy for details.include values on conversation item list, create, and retrieve requests were incorrectly serialized as a single comma-delimited query value instead of repeated include[] parameters, causing requests to fail with HTTP 400 responses.Kind property of ResponseContentPart could not be set correctly.Patch would not propagate correctly through the McpToolCallApprovalPolicy and CodeInterpreterToolContainer types.UserAgentApplicationId from 24 characters to 512. Application identifiers up to that length are now accepted and passed through to the User-Agent header verbatim; longer values throw ArgumentOutOfRangeException when a client is created, so that the header cannot be inflated without bound. The identifier is ignored, and the limit not applied, when telemetry is disabled and no User-Agent will be sent.OPENAI001. These types were previously marked with a dedicated OPENAICUA001 code, which has been removed. Consumers who explicitly suppressed OPENAICUA001 should suppress OPENAI001 instead (the same code already used by the other experimental Responses APIs).Thank you to our developer community members who helped to make the OpenAI client library better with their contributions to this release:
ContainerNetworkPolicy type with the following derived types:
ContainerAllowlistNetworkPolicyContainerDisabledNetworkPolicyContainerNetworkPolicyKind extensible enum.ContainerNetworkPolicyDomainSecret type.NetworkPolicy property to ContainerCreationOptions.ContainerMemoryLimit extensible enum.MemoryLimit property to ContainerCreationOptions.Name property to ContainerCollectionOptions.ConversationClient:
ConversationCreationOptions type.ConversationUpdateOptions type.ConversationDeletionResult type.ConversationResource type.ConversationClient:
CreateConversation and CreateConversationAsyncDeleteConversation and DeleteConversationAsyncGetConversation and GetConversationAsyncUpdateConversation and UpdateConversationAsyncResponsePromptCacheRetentionPolicy extensible enum.PromptCacheKey and PromptCacheRetentionPolicy properties to CreateResponseOptions.PromptCacheKey and PromptCacheRetentionPolicy properties to ResponseResult.ChatMessageContentPart.CreateImagePart(Uri) incorrectly serializing image_url.url via Uri.ToString(), which would unescape percent-encoded characters (e.g., %20 → space) and break downstream image fetches. The serialized URL now uses Uri.AbsoluteUri to preserve percent-encoding.System.ClientModel dependency to version 1.14.0. For more information, see the System.ClientModel changelog.DeleteContainerResponse to ContainerDeletionResult.DeleteContainerFileResponse to ContainerFileDeletionResult.ContainerResourceExpiresAfter to ContainerExpirationPolicy.CreateContainerBody to ContainerCreationOptions.Minutes property of ContainerExpirationPolicy to Duration.Id property of ContainerDeletionResult to ContainerId.Id property of ContainerFileDeletionResult to ContainerFileId.ExpiresAfter property of ContainerResource to ExpirationPolicy.Anchor property of ContainerExpirationPolicy from string to ContainerExpirationPolicyAnchor?.Duration property of ContainerExpirationPolicy from int to TimeSpan?.ExpiresAfter property of ContainerResource from ContainerResourceExpiresAfter to ContainerExpirationPolicy.ContainerResourceExpiresAfter class.options parameter of type RequestOptions required for several methods in the ConversationClient in order to disambiguate the new overloads.Thank you to our developer community members who helped to make the OpenAI client library better with their contributions to this release:
ChatWebSearchContextSize extensible enum.SearchContextSize property to ChatWebSearchOptions.SkillClient with the following methods:
UploadSkill and UploadSkillAsyncUpdateSkill and UpdateSkillAsyncGetSkill and GetSkillAsyncGetSkills and GetSkillsAsyncDownloadSkill and DownloadSkillAsyncDeleteSkill and DeleteSkillAsyncUploadSkillVersion and UploadSkillVersionAsyncGetSkillVersion and GetSkillVersionAsyncGetSkillVersions and GetSkillVersionsAsyncDownloadSkillVersion and DownloadSkillVersionAsyncDeleteSkillVersion and DeleteSkillVersionAsyncResponseTokenLogProbabilityDetails type.ResponseTokenTopLogProbabilityDetails type.OutputTextTokenLogProbabilities property to ResponseContentPart.TokenLogProbabilities property to StreamingResponseOutputTextDeltaUpdate.TokenLogProbabilities property to StreamingResponseOutputTextDoneUpdate.FunctionName property to StreamingResponseFunctionCallArgumentsDoneUpdate.ResponseItem class hierarchy.
ResponseItemKind extensible enum.Kind property to ResponseItem.ResponseItem that takes a ResponseItemKind parameter.ResponseTool class hierarchy.
ResponseToolKind extensible Enum.Kind property to ResponseTool.ResponseTool that takes a ResponseToolKind parameter.StreamingResponseUpdate class hierarchy.
StreamingResponseUpdateKind extensible enum.Kind property to StreamingResponseUpdate.StreamingResponseUpdate that takes a StreamingResponseUpdateKind parameter.NullReferenceException when a streaming response delivered an unmodeled error event. The SSE error frame is now surfaced as a ClientResultException so the failure is observable, while the unknown-event path stays covered.UploadFile and UploadFileAsync method overloads in OpenAIFileClient that take a filePath were incorrectly using the entire path as the filename.AudioEndTime property of RealtimeClientCommandConversationItemTruncate was incorrectly serialized as a float instead of an integer.KnownSpeakerReferenceUris property of AudioTranscriptionOptions from IList<Uri> to IList<string>.CreateContainerFile and CreateContainerFileAsync methods of ContainerClient to UploadContainerFile and UploadContainerFileAsync.Order property of ContainerFileCollectionOptions from ContainerCollectionOrder? to ContainerFileCollectionOrder?.Options property of RealtimeClientSettings from OpenAIClientOptions to RealtimeClientOptions.AddResponsesClient and AddKeyedResponsesClient IHostApplicationBuilder extension methods under the OpenAI.Responses namespace.action and background parameters from the constructor of ImageGenerationCallResponseItem.ImageGenToolCallBackground type in favor of ImageGenerationToolBackground.ImageGenToolCallOutputFormat type in favor of ImageGenerationToolOutputFileFormat.ImageGenToolCallQuality type in favor of ImageGenerationToolQuality.ImageGenToolCallSize type in favor of ImageGenerationToolSize.Action property of ImageGenerationCallResponseItem from ImageGenerationToolAction to ImageGenerationToolAction?.Background property of ImageGenerationCallResponseItem from ImageGenToolCallBackground to ImageGenerationToolBackground?.OutputFormat property of ImageGenerationCallResponseItem from ImageGenToolCallOutputFormat to ImageGenerationToolOutputFileFormat?.Quality property of ImageGenerationCallResponseItem from ImageGenToolCallQuality to ImageGenerationToolQuality?.Size property of ImageGenerationCallResponseItem from ImageGenToolCallSize to ImageGenerationToolSize?.OutputFormat property of ImageGenerationCallResponseItem to OutputFileFormat.Options property of ResponsesClientSettings from OpenAIClientOptions to ResponsesClientOptions.options parameters in the constructors of ResponsesClient from OpenAIClientOptions to ResponsesClientOptions.ResponsesClient for consistency:
CompactResponse and CompactResponseAsyncGetInputTokenCount and GetInputTokenCountAsyncStreamingResponseTextAnnotationAddedUpdate to StreamingResponseOutputTextAnnotationAddedUpdate.