|
1 | 1 | # Release History
|
2 | 2 |
|
3 |
| -## 2.0.0-beta.14 (Unreleased) |
| 3 | +## 2.0.0 (2024-09-30) |
| 4 | + |
| 5 | +> [!NOTE] |
| 6 | +> First stable version of the official OpenAI library for .NET. |
| 7 | +
|
| 8 | +### Features Added |
| 9 | + |
| 10 | +- Support for OpenAI's latest flagship models, including GPT-4o, GPT-4o mini, o1-preview, and o1-mini |
| 11 | +- Support for the entire OpenAI REST API, including: |
| 12 | + - Structured outputs |
| 13 | + - Reasoning tokens |
| 14 | + - Experimental support for Assistants beta v2 |
| 15 | +- Support for sync and async APIs |
| 16 | +- Convenient APIs to facilitate working with streaming chat completions and assistants |
| 17 | +- Tons of other quality-of-life features for ease of use and productivity |
4 | 18 |
|
5 | 19 | ### Breaking Changes
|
6 | 20 |
|
7 |
| -- Implemented `ChatMessageContent` to encapsulate the representation of content parts in `ChatMessage`, `ChatCompletion`, and `StreamingChatCompletionUpdate`. (commit_hash) |
8 |
| -- Changed the representation of function arguments to `BinaryData` in `ChatToolCall`, `StreamingChatToolCallUpdate`, `ChatFunctionCall`, and `StreamingChatFunctionCallUpdate`. (commit_hash) |
9 |
| -- Renamed `OpenAIClientOptions`'s `ApplicationId` to `UserAgentApplicationId` (commit_hash) |
10 |
| -- Renamed `StreamingChatToolCallUpdate`'s `Id` to `ToolCallId` (commit_hash) |
11 |
| -- Renamed `StreamingChatCompletionUpdate`'s `Id` to `CompletionId` (commit_hash) |
12 |
| -- Replaced `Auto` and `None` in the deprecated `ChatFunctionChoice` with `CreateAutoChoice()` and `CreateNoneChoice()` (commit_hash) |
13 |
| -- Replaced the deprecated `ChatFunctionChoice(ChatFunction)` constructor with `CreateNamedChoice(string functionName)` (commit_hash) |
14 |
| -- Renamed `FileClient` to `OpenAIFileClient` and the corresponding `GetFileClient()` method in `OpenAIClient` to `GetOpenAIFileClient()`. (commit_hash) |
15 |
| -- Renamed `ModelClient` to `OpenAIModelClient` and the corresponding `GetModelClient()` method in `OpenAIClient` to `GetOpenAIModelClient()`. (commit_hash) |
| 21 | +> [!NOTE] |
| 22 | +> The following breaking changes only apply when upgrading from the previous 2.0.0-beta.* versions. |
| 23 | +
|
| 24 | +- Implemented `ChatMessageContent` to encapsulate the representation of content parts in `ChatMessage`, `ChatCompletion`, and `StreamingChatCompletionUpdate`. ([31c2ba6](https://github.com/openai/openai-dotnet/commit/31c2ba63c625b1b4fc2640ddf378a97e89b89167)) |
| 25 | +- Changed the representation of function arguments to `BinaryData` in `ChatToolCall`, `StreamingChatToolCallUpdate`, `ChatFunctionCall`, and `StreamingChatFunctionCallUpdate`. ([31c2ba6](https://github.com/openai/openai-dotnet/commit/31c2ba63c625b1b4fc2640ddf378a97e89b89167)) |
| 26 | +- Renamed `OpenAIClientOptions`'s `ApplicationId` to `UserAgentApplicationId`. ([31c2ba6](https://github.com/openai/openai-dotnet/commit/31c2ba63c625b1b4fc2640ddf378a97e89b89167)) |
| 27 | +- Renamed `StreamingChatToolCallUpdate`'s `Id` to `ToolCallId`. ([31c2ba6](https://github.com/openai/openai-dotnet/commit/31c2ba63c625b1b4fc2640ddf378a97e89b89167)) |
| 28 | +- Renamed `StreamingChatCompletionUpdate`'s `Id` to `CompletionId`. ([31c2ba6](https://github.com/openai/openai-dotnet/commit/31c2ba63c625b1b4fc2640ddf378a97e89b89167)) |
| 29 | +- Replaced `Auto` and `None` in the deprecated `ChatFunctionChoice` with `CreateAutoChoice()` and `CreateNoneChoice()`. ([31c2ba6](https://github.com/openai/openai-dotnet/commit/31c2ba63c625b1b4fc2640ddf378a97e89b89167)) |
| 30 | +- Replaced the deprecated `ChatFunctionChoice(ChatFunction)` constructor with `CreateNamedChoice(string functionName)`. ([31c2ba6](https://github.com/openai/openai-dotnet/commit/31c2ba63c625b1b4fc2640ddf378a97e89b89167)) |
| 31 | +- Renamed `FileClient` to `OpenAIFileClient` and the corresponding `GetFileClient()` method in `OpenAIClient` to `GetOpenAIFileClient()`. ([31c2ba6](https://github.com/openai/openai-dotnet/commit/31c2ba63c625b1b4fc2640ddf378a97e89b89167)) |
| 32 | +- Renamed `ModelClient` to `OpenAIModelClient` and the corresponding `GetModelClient()` method in `OpenAIClient` to `GetOpenAIModelClient()`. ([31c2ba6](https://github.com/openai/openai-dotnet/commit/31c2ba63c625b1b4fc2640ddf378a97e89b89167)) |
16 | 33 |
|
17 | 34 | ## 2.0.0-beta.13 (2024-09-27)
|
18 | 35 |
|
|
0 commit comments