Prepare 2.0.0-beta.12 release (Part 1) #216
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Features Added
ChatCompletionOptions
will automatically apply itsMaxOutputTokenCount
value (renamed fromMaxTokens
) to the newmax_completion_tokens
request body propertyUsage
includes a newOutputTokenDetails
property with aReasoningTokenCount
value that will reflecto1
model use of this new subcategory of output tokens.OutputTokenCount
(completion_tokens
) is the sum of displayed tokens generated by the model and (when applicable) these new reasoning tokensRankingOptions
include[]
query string parameter and retrieval of run step detail result content is currently only available via protocol methodsFileClient
. ThisExperimental
feature allows uploading large files in multiple parts.CreateUpload
,AddUploadPart
,CompleteUpload
, andCancelUpload
protocol methods.Breaking Changes
ChatMessageContentPart
'sCreateTextMessageContentPart
factory method toCreateTextPart
.ChatMessageContentPart
'sCreateImageMessageContentPart
factory method toCreateImagePart
.ChatMessageContentPart
'sCreateRefusalMessageContentPart
factory method toCreateRefusalPart
.ImageChatMessageContentPartDetail
toChatImageDetailLevel
.ChatMessageContentPart
'sToString
overload.MaxTokens
property inChatCompletionOptions
toMaxOutputTokenCount
ChatTokenUsage
:InputTokens
is renamed toInputTokenCount
OutputTokens
is renamed toOutputTokenCount
TotalTokens
is renamed toTotalTokenCount
ListOrder
enum from the top-levelOpenAI
namespace in favor of individual enums in their corresponding sub-namespace.PageSize
property toPageSizeLimit
.bool
. Affected methods:DeleteAssitant
,DeleteMessage
, andDeleteThread
inAssistantClient
.DeleteVectorStore
andRemoveFileFromStore
inVectorStoreClient
.DeleteModel
inModelClient
.DeleteFile
inFileClient
.ChatTokenLogProbabilityInfo
toChatTokenLogProbabilityDetails
.ChatTokenTopLogProbabilityInfo
toChatTokenTopLogProbabilityDetails
.Utf8ByteValues
properties ofChatTokenLogProbabilityDetails
andChatTokenTopLogProbabilityDetails
toUtf8Bytes
and changed their type fromIReadOnlyList<int>
toReadOnlyMemory<byte>?
.Start
andEnd
properties ofTranscribedSegment
andTranscribedWord
toStartTime
andEndTime
.TranscribedSegment
'sAverageLogProbability
andNoSpeechProbability
properties fromdouble
tofloat
.TranscribedSegment
'sSeekOffset
property fromlong
toint
.TranscribedSegment
'sTokenIds
property fromIReadOnlyList<long>
toIReadOnlyList<int>
.Embedding.Vector
property to theEmbedding.ToFloats()
method.VectorStoreCreationHelper
,AssistantChatMessage
, andChatFunction
.purpose
parameter fromFileClient.GetFilesAsync
andFileClient.GetFiles
methods, and added overloads wherepurpose
is required.ModerationClient
'sClassifyTextInput
methods toClassifyText
.Created
property fromGeneratedImageCollection
.Bugs Fixed
ChatCompletionOptions
can now be serialized viaModelReaderWriter.Write()
prior to callingCompleteChat
using the optionsOther Changes
CancellationToken
toModelClient
methods.Obsolete
attribute where appropriate to align with the existing deprecations in the REST API.