Skip to content

Commit

Permalink
2.0.0-beta.10 prep part 2 (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
trrwilson authored Aug 26, 2024
1 parent d84bf54 commit 9664ef8
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
# Release History

## 2.0.0-beta.10 (2024-08-26)

### Breaking Changes

- Renamed `AudioClient`'s `GenerateSpeechFromText` methods to simply `GenerateSpeech`. ([d84bf54](https://github.com/openai/openai-dotnet/commit/d84bf54df14ddac4c49f6efd61467b600d34ecd7))
- Changed the type of `OpenAIFileInfo`'s `SizeInBytes` property from `long?` to `int?`. ([d84bf54](https://github.com/openai/openai-dotnet/commit/d84bf54df14ddac4c49f6efd61467b600d34ecd7))

### Bugs Fixed

- Fixed a newly introduced bug ([#185](https://github.com/openai/openai-dotnet/pull/185)) where providing `OpenAIClientOptions` to a top-level `OpenAIClient` did not carry over to scenario clients (e.g. `ChatClient`) created via that top-level client ([d84bf54](https://github.com/openai/openai-dotnet/commit/d84bf54df14ddac4c49f6efd61467b600d34ecd7))

### Other Changes

- Removed the version path parameter "v1" from the default endpoint URL. ([d84bf54](https://github.com/openai/openai-dotnet/commit/d84bf54df14ddac4c49f6efd61467b600d34ecd7))

## 2.0.0-beta.9 (2024-08-23)

### Features Added
Expand Down
2 changes: 1 addition & 1 deletion src/OpenAI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<PackageTags>OpenAI</PackageTags>

<VersionPrefix>2.0.0</VersionPrefix>
<VersionSuffix>beta.9</VersionSuffix>
<VersionSuffix>beta.10</VersionSuffix>

<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
Expand Down
5 changes: 2 additions & 3 deletions tests/Chat/ChatSmokeTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -594,13 +594,12 @@ public void TopLevelClientOptionsPersistence()
OpenAIClientOptions options = new()
{
Transport = mockTransport,
Endpoint = new Uri("https://api.openai.com/expected/test/endpoint"),
Endpoint = new Uri("https://my.custom.com/expected/test/endpoint"),
};
Uri observedEndpoint = null;
options.AddPolicy(new TestPipelinePolicy(message =>
{
observedEndpoint = message?.Request?.Uri;
Console.WriteLine($"foo: {message.Request.Uri.AbsoluteUri}");
}),
PipelinePosition.PerCall);

Expand All @@ -609,6 +608,6 @@ public void TopLevelClientOptionsPersistence()
ClientResult first = firstClient.CompleteChat("Hello, world");

Assert.That(observedEndpoint, Is.Not.Null);
Assert.That(observedEndpoint.AbsoluteUri, Does.Contain("expected/test/endpoint"));
Assert.That(observedEndpoint.AbsoluteUri, Does.Contain("my.custom.com/expected/test/endpoint"));
}
}

0 comments on commit 9664ef8

Please sign in to comment.