From 9664ef8447e760c0567057e0d0406464ef8f1292 Mon Sep 17 00:00:00 2001
From: Travis Wilson <35748617+trrwilson@users.noreply.github.com>
Date: Mon, 26 Aug 2024 13:41:53 -0700
Subject: [PATCH] 2.0.0-beta.10 prep part 2 (#189)
---
CHANGELOG.md | 15 +++++++++++++++
src/OpenAI.csproj | 2 +-
tests/Chat/ChatSmokeTests.cs | 5 ++---
3 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d8777eb6..08113ab1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -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
diff --git a/src/OpenAI.csproj b/src/OpenAI.csproj
index ccedc487..2a1dd21b 100644
--- a/src/OpenAI.csproj
+++ b/src/OpenAI.csproj
@@ -5,7 +5,7 @@
OpenAI
2.0.0
- beta.9
+ beta.10
netstandard2.0;net6.0
latest
diff --git a/tests/Chat/ChatSmokeTests.cs b/tests/Chat/ChatSmokeTests.cs
index 169cb428..f06d97a9 100644
--- a/tests/Chat/ChatSmokeTests.cs
+++ b/tests/Chat/ChatSmokeTests.cs
@@ -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);
@@ -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"));
}
}