Skip to content

Commit

Permalink
bump version v0.9.3
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenkirstaetter committed Mar 28, 2024
1 parent 54c90ee commit 73fcda9
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Alternatively, add the following line to your `.csproj` file.

```text
<ItemGroup>
<PackageReference Include="Mscc.GenerativeAI" Version="0.9.2" />
<PackageReference Include="Mscc.GenerativeAI" Version="0.9.3" />
</ItemGroup>
```

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.1
0.9.3
6 changes: 6 additions & 0 deletions src/Mscc.GenerativeAI.Google/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions src/Mscc.GenerativeAI.Web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions src/Mscc.GenerativeAI/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 2 additions & 6 deletions src/Mscc.GenerativeAI/GenerativeModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -455,18 +455,14 @@ public async Task<string> TransferOwnership(string model, string emailAddress)
/// <param name="model">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</param>
/// <returns></returns>
/// <exception cref="NotSupportedException"></exception>
public async Task<ModelResponse> GetModel(string model = null)
public async Task<ModelResponse> 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))
{
Expand Down

0 comments on commit 73fcda9

Please sign in to comment.