From 73fcda94b77c309b9b0913fab8996f4e3f0f7f67 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jochen=20Kirst=C3=A4tter?=
<7329802+jochenkirstaetter@users.noreply.github.com>
Date: Thu, 28 Mar 2024 10:26:16 +0400
Subject: [PATCH] bump version v0.9.3
---
README.md | 2 +-
VERSION | 2 +-
src/Mscc.GenerativeAI.Google/CHANGELOG.md | 6 ++++++
src/Mscc.GenerativeAI.Web/CHANGELOG.md | 6 ++++++
src/Mscc.GenerativeAI/CHANGELOG.md | 8 ++++++++
src/Mscc.GenerativeAI/GenerativeModel.cs | 8 ++------
6 files changed, 24 insertions(+), 8 deletions(-)
diff --git a/README.md b/README.md
index ced1ad1..b940926 100644
--- a/README.md
+++ b/README.md
@@ -33,7 +33,7 @@ Alternatively, add the following line to your `.csproj` file.
```text
-
+
```
diff --git a/VERSION b/VERSION
index f514a2f..b3ec163 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.9.1
\ No newline at end of file
+0.9.3
\ No newline at end of file
diff --git a/src/Mscc.GenerativeAI.Google/CHANGELOG.md b/src/Mscc.GenerativeAI.Google/CHANGELOG.md
index 59ba5f7..76ee227 100644
--- a/src/Mscc.GenerativeAI.Google/CHANGELOG.md
+++ b/src/Mscc.GenerativeAI.Google/CHANGELOG.md
@@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
### Fixed
+## 0.9.3
+
+### Changed
+
+- bump version
+
## 0.9.2
### Changed
diff --git a/src/Mscc.GenerativeAI.Web/CHANGELOG.md b/src/Mscc.GenerativeAI.Web/CHANGELOG.md
index 748cc39..db03cd4 100644
--- a/src/Mscc.GenerativeAI.Web/CHANGELOG.md
+++ b/src/Mscc.GenerativeAI.Web/CHANGELOG.md
@@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
### Fixed
+## 0.9.3
+
+### Changed
+
+- bump version
+
## 0.9.2
### Changed
diff --git a/src/Mscc.GenerativeAI/CHANGELOG.md b/src/Mscc.GenerativeAI/CHANGELOG.md
index 36a0fb9..8c98108 100644
--- a/src/Mscc.GenerativeAI/CHANGELOG.md
+++ b/src/Mscc.GenerativeAI/CHANGELOG.md
@@ -13,12 +13,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Feature suggestion: Add logs with LogLevel using the Standard logging in .NET ([#6](https://github.com/mscraftsman/generative-ai/issues/6))
- implement Automatic Function Call (AFC)
+### Changed
+### Fixed
+
+## 0.9.3
+
### Changed
- apply default config and settings to request
### Fixed
+- Fix a bug in Initialize_Model() test by Will ([#13](https://github.com/mscraftsman/generative-ai/issues/13))
+- Fixes ContentResponse class issue by Will ([#16](https://github.com/mscraftsman/generative-ai/issues/16))
+
## 0.9.2
### Added
diff --git a/src/Mscc.GenerativeAI/GenerativeModel.cs b/src/Mscc.GenerativeAI/GenerativeModel.cs
index dba11bb..7a7aa97 100644
--- a/src/Mscc.GenerativeAI/GenerativeModel.cs
+++ b/src/Mscc.GenerativeAI/GenerativeModel.cs
@@ -455,18 +455,14 @@ public async Task TransferOwnership(string model, string emailAddress)
/// Required. The resource name of the model. This name should match a model name returned by the models.list method. Format: models/model-id or tunedModels/my-model-id
///
///
- public async Task GetModel(string model = null)
+ public async Task GetModel(string? model = null)
{
if (_useVertexAi)
{
throw new NotSupportedException();
}
- if (model is null)
- {
- model = _model;
- }
-
+ model ??= _model;
model = model.SanitizeModelName();
if (!string.IsNullOrEmpty(_apiKey) && model.StartsWith("tunedModel", StringComparison.InvariantCultureIgnoreCase))
{