Commit 2ab1a94
authored
Prepare 2.0.0-beta.12 release (Part 1) (#216)
### Features Added
- The library now includes support for the new [OpenAI o1](https://openai.com/o1/) model family.
- `ChatCompletionOptions` will automatically apply its `MaxOutputTokenCount` value (renamed from `MaxTokens`) to the new `max_completion_tokens` request body property
- `Usage` includes a new `OutputTokenDetails` property with a `ReasoningTokenCount` value that will reflect `o1` model use of this new subcategory of output tokens.
- Note that `OutputTokenCount` (`completion_tokens`) is the *sum* of displayed tokens generated by the model *and* (when applicable) these new reasoning tokens
- Assistants file search now includes support for `RankingOptions`
- Use of the `include[]` query string parameter and retrieval of run step detail result content is currently only available via protocol methods
- Added support for the Uploads API in `FileClient`. This `Experimental` feature allows uploading large files in multiple parts.
- The feature is supported by the `CreateUpload`, `AddUploadPart`, `CompleteUpload`, and `CancelUpload` protocol methods.
### Breaking Changes
- Renamed `ChatMessageContentPart`'s `CreateTextMessageContentPart` factory method to `CreateTextPart`.
- Renamed `ChatMessageContentPart`'s `CreateImageMessageContentPart` factory method to `CreateImagePart`.
- Renamed `ChatMessageContentPart`'s `CreateRefusalMessageContentPart` factory method to `CreateRefusalPart`.
- Renamed `ImageChatMessageContentPartDetail` to `ChatImageDetailLevel`.
- Removed `ChatMessageContentPart`'s `ToString` overload.
- Renamed the `MaxTokens` property in `ChatCompletionOptions` to `MaxOutputTokenCount`
- Renamed properties in `ChatTokenUsage`:
- `InputTokens` is renamed to `InputTokenCount`
- `OutputTokens` is renamed to `OutputTokenCount`
- `TotalTokens` is renamed to `TotalTokenCount`
- Removed the common `ListOrder` enum from the top-level `OpenAI` namespace in favor of individual enums in their corresponding sub-namespace.
- Renamed the `PageSize` property to `PageSizeLimit`.
- Updated deletion methods to return a result object instead of a `bool`. Affected methods:
- `DeleteAssitant`, `DeleteMessage`, and `DeleteThread` in `AssistantClient`.
- `DeleteVectorStore` and `RemoveFileFromStore` in `VectorStoreClient`.
- `DeleteModel` in `ModelClient`.
- `DeleteFile` in `FileClient`.
- Removed setters from collection properties.
- Renamed `ChatTokenLogProbabilityInfo` to `ChatTokenLogProbabilityDetails`.
- Renamed `ChatTokenTopLogProbabilityInfo` to `ChatTokenTopLogProbabilityDetails`.
- Renamed the `Utf8ByteValues` properties of `ChatTokenLogProbabilityDetails` and `ChatTokenTopLogProbabilityDetails` to `Utf8Bytes` and changed their type from `IReadOnlyList<int>` to `ReadOnlyMemory<byte>?`.
- Renamed the `Start` and `End` properties of `TranscribedSegment` and `TranscribedWord` to `StartTime` and `EndTime`.
- Changed the type of `TranscribedSegment`'s `AverageLogProbability` and `NoSpeechProbability` properties from `double` to `float`.
- Changed the type of `TranscribedSegment`'s `SeekOffset` property from `long` to `int`.
- Changed the type of `TranscribedSegment`'s `TokenIds` property from `IReadOnlyList<long>` to `IReadOnlyList<int>`.
- Updated the `Embedding.Vector` property to the `Embedding.ToFloats()` method.
- Removed the optional parameter from the constructors of `VectorStoreCreationHelper`, `AssistantChatMessage`, and `ChatFunction`.
- Removed the optional `purpose` parameter from `FileClient.GetFilesAsync` and `FileClient.GetFiles` methods, and added overloads where `purpose` is required.
- Renamed `ModerationClient`'s `ClassifyTextInput` methods to `ClassifyText`.
- Removed duplicated `Created` property from `GeneratedImageCollection`.
### Bugs Fixed
- Addressed an issue that caused multi-page queries of fine-tuning jobs, checkpoints, and events to fail.
- `ChatCompletionOptions` can now be serialized via `ModelReaderWriter.Write()` prior to calling `CompleteChat` using the options
### Other Changes
- Added support for `CancellationToken` to `ModelClient` methods.
- Applied the `Obsolete` attribute where appropriate to align with the existing deprecations in the REST API.1 parent dce79fc commit 2ab1a94
File tree
393 files changed
+16877
-7106
lines changed- .github/workflows
- api
- examples
- Assistants
- Audio
- Chat
- Embeddings
- src
- Custom
- Assistants
- Internal
- Pagination
- Streaming
- Audio
- Batch
- Internal/Pagination
- Chat
- Internal
- Streaming
- Common
- Embeddings
- Files
- Internal
- FineTuning
- Internal
- Pagination
- Images
- Internal
- LegacyCompletions/Internal
- Models
- Internal
- Moderations
- VectorStores
- Internal
- Pagination
- Generated
- Models
- Utility
- Telemetry
- tests
- Assistants
- Audio
- Batch
- Chat
- Embeddings
- Files
- FineTuning
- Images
- Models
- Moderations
- Telemetry
- Utility
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
393 files changed
+16877
-7106
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
3 | 59 | | |
4 | 60 | | |
5 | 61 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | | - | |
| 36 | + | |
0 commit comments