Skip to content

Commit 877a429

Browse files
authored
Prepare 2.2.0 release (Part 2) (#503)
1 parent 5dce104 commit 877a429

File tree

4 files changed

+16
-11
lines changed

4 files changed

+16
-11
lines changed

CHANGELOG.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 2.2.0 (Unreleased)
3+
## 2.2.0 (2025-07-02)
44

55
### Features Added
66

@@ -67,15 +67,15 @@
6767
- `SearchVectorStore` and `SearchVectorStoreAsync`
6868
- `UpdateVectorStoreFileAttributes` and `UpdateVectorStoreFileAttributes`
6969

70-
### Bugs fixed
70+
### Bugs Fixed
7171

7272
- OpenAI.Files:
7373
- Added a `SizeInBytesLong` property to `OpenAIFile` to correctly represent the size of a file.
7474
- OpenAI.Responses:
7575
- Fixed an issue where setting the `ReasoningSummaryVerbosity` property of `ResponseReasoningOptions` was sending the wrong property to the service.
7676
- Fixed an issue with the `CreateInputFilePart` method of `ResponseContentPart` not being able to send files as `BinaryData`.
7777

78-
### Breaking changes in Preview APIs
78+
### Breaking Changes in Preview APIs
7979

8080
- Removed the implicit operator from all models that converts a model to `BinaryContent`.
8181
- Removed the explicit operator from all models that converts a `ClientResult` to a model.
@@ -117,7 +117,7 @@
117117
- OpenAI.Responses:
118118
- Added the `ResponseToolChoice` class to help specify which tool the model should select when generating a response. ([aaa924e](https://github.com/openai/openai-dotnet/commit/aaa924ecde1b2281257f26824fea038a3b1efe35))
119119

120-
### Breaking changes in Preview APIs
120+
### Breaking Changes in Preview APIs
121121

122122
- OpenAI.Assistants:
123123
- Removed the default constructor and the use of the `required` keyword from the `FileSearchRankingOptions` and `FunctionToolDefinition` classes to align with the rest of the library. ([86407c8](https://github.com/openai/openai-dotnet/commit/86407c80b35271713b2d92c87943a0c7e025d28f))
@@ -149,7 +149,7 @@
149149

150150
## 2.2.0-beta.2 (2025-02-18)
151151

152-
### Bugs fixed
152+
### Bugs Fixed
153153

154154
- OpenAI.Chat:
155155
- Fixed an issue that caused calls to the `CompleteChatStreaming` and `CompleteChatStreamingAsync` methods to fail with audio-enabled models unless provided a `ChatCompletionOptions` instance that had previously been used in a non-streaming `CompleteChat` or `CompleteChatAsync` method call. ([d6615ab](https://github.com/openai/openai-dotnet/commit/d6615abe2d04d8d09fbe150941cd8d3c118117d2))
@@ -158,7 +158,7 @@
158158

159159
## 2.2.0-beta.1 (2025-02-07)
160160

161-
### Features added
161+
### Features Added
162162

163163
- OpenAI.Audio:
164164
- Added explicit support for new values of `GeneratedSpeechVoice`. ([0e0c460](https://github.com/openai/openai-dotnet/commit/0e0c460c88424fc2241956ed5ead6dd5ed7638ec))
@@ -189,7 +189,7 @@
189189
- OpenAI.RealtimeConversation:
190190
- Added explicit support for new values of `ConversationVoice`. ([0e0c460](https://github.com/openai/openai-dotnet/commit/0e0c460c88424fc2241956ed5ead6dd5ed7638ec))
191191

192-
### Breaking changes in Preview APIs
192+
### Breaking Changes in Preview APIs
193193

194194
- OpenAI.Assistants:
195195
- Removed the setters of the `IDictionary<string, string> Metadata` properties of the "options" classes (e.g., `AssistantCreationOptions`) to be able to guarantee that the collections are always initialized. ([0e0c460](https://github.com/openai/openai-dotnet/commit/0e0c460c88424fc2241956ed5ead6dd5ed7638ec))
@@ -210,7 +210,7 @@
210210

211211
## 2.1.0 (2024-12-04)
212212

213-
### Features added
213+
### Features Added
214214

215215
- OpenAI.Assistants:
216216
- Added a `Content` property to `RunStepFileSearchResult` ([`step_details.tool_calls.file_search.results.content` in the REST API](https://platform.openai.com/docs/api-reference/run-steps/step-object)). ([bf3f0ed](https://github.com/openai/openai-dotnet/commit/bf3f0eddeda1957a998491e36d7fb551e99be916))
@@ -229,15 +229,15 @@
229229
- Renamed the `ToolKind` property of `RunStepToolCall` to `Kind`. ([bf3f0ed](https://github.com/openai/openai-dotnet/commit/bf3f0eddeda1957a998491e36d7fb551e99be916))
230230
- Replaced the `FileSearchRanker` and `FileSearchScoreThreshold` properties of `RunStepToolCall` with a new `FileSearchRankingOptions` property that contains both values to make it clearer how they are related. ([bf3f0ed](https://github.com/openai/openai-dotnet/commit/bf3f0eddeda1957a998491e36d7fb551e99be916))
231231

232-
### Bugs fixed
232+
### Bugs Fixed
233233

234234
- OpenAI.RealtimeConversation:
235235
- Fixed serialization issues with `ConversationItem` creation of system and assistant messages. ([bf3f0ed](https://github.com/openai/openai-dotnet/commit/bf3f0eddeda1957a998491e36d7fb551e99be916))
236236
- Fixed an issue causing a deadlock when calling the `RealtimeConversationSession`'s `SendInputAudio` method overload that takes a `BinaryData` parameter. ([f491c2d](https://github.com/openai/openai-dotnet/commit/f491c2d5a3894953e0bc112431ea3844a64496da))
237237

238238
## 2.1.0-beta.2 (2024-11-04)
239239

240-
### Features added
240+
### Features Added
241241

242242
- OpenAI.Chat:
243243
- Added a `StoredOutputEnabled` property to `ChatCompletionOptions` ([`store` in the REST API](https://platform.openai.com/docs/api-reference/chat/create#chat-create-store)). ([b0f9e5c](https://github.com/openai/openai-dotnet/commit/b0f9e5c3b9708a802afa6ce7489636d2084e7d61))

src/OpenAI.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<Copyright>Copyright (c) 2024 OpenAI (https://openai.com)</Copyright>
1010

1111
<VersionPrefix>2.2.0</VersionPrefix>
12-
<VersionSuffix>beta.4</VersionSuffix>
12+
<VersionSuffix></VersionSuffix>
1313

1414
<TargetFrameworks>net8.0;net6.0;netstandard2.0</TargetFrameworks>
1515
<LangVersion>latest</LangVersion>

tests/Chat/ChatTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ public async Task TwoTurnChat()
344344
Assert.That(secondResult.Value.Content[0].Text.ToLowerInvariant(), Contains.Substring("isosceles"));
345345
}
346346

347+
[Ignore("Temporarily disabled due to service instability.")]
347348
[Test]
348349
public async Task ChatWithVision()
349350
{

tests/Responses/ResponsesTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,7 @@ public async Task MessageHistoryWorks()
496496
Assert.That(response, Is.Not.Null);
497497
}
498498

499+
[Ignore("Temporarily disabled due to service instability.")]
499500
[Test]
500501
public async Task ImageInputWorks()
501502
{
@@ -512,6 +513,9 @@ public async Task ImageInputWorks()
512513
ResponseContentPart.CreateInputImagePart(imageBytes, "image/png", ResponseImageDetailLevel.Low),
513514
]),
514515
]);
516+
517+
Console.WriteLine(response.GetOutputText());
518+
Assert.That(response.GetOutputText().ToLowerInvariant(), Does.Contain("dog").Or.Contain("cat").IgnoreCase);
515519
}
516520

517521
[Test]

0 commit comments

Comments
 (0)