Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenkirstaetter committed Nov 26, 2024
1 parent fa0a203 commit 04d9c62
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 6 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ Access and integrate the Gemini API into your .NET applications. The packages su

Read more about [Mscc.GenerativeAI.Web](./src/Mscc.GenerativeAI.Web) and how to add it to your ASP.NET (Core) web applications.
Read more about [Mscc.GenerativeAI.Google](./src/Mscc.GenerativeAI.Google).
Read more about [Mscc.GenerativeAI.Microsoft](./src/Mscc.GenerativeAI.Microsoft) and how to use it with Semantic Kernel.

## Install the package 🖥️

Expand All @@ -36,7 +37,7 @@ Alternatively, add the following line to your `.csproj` file.

```text
<ItemGroup>
<PackageReference Include="Mscc.GenerativeAI" Version="1.9.5" />
<PackageReference Include="Mscc.GenerativeAI" Version="1.9.6" />
</ItemGroup>
```

Expand Down Expand Up @@ -119,7 +120,7 @@ Google AI with OAuth. Use `gcloud auth application-default print-access-token` t
```csharp
using Mscc.GenerativeAI;
// Google AI with OAuth. Use `gcloud auth application-default print-access-token` to get the access token.
var model = new GenerativeModel(model: Model.GeminiPro);
var model = new GenerativeModel(model: Model.Gemini15Pro);
model.AccessToken = accessToken;
```

Expand Down Expand Up @@ -207,7 +208,7 @@ The simplest version is to toggle the boolean property `UseGrounding`, like so.
var apiKey = "your_api_key";
var prompt = "What is the current Google stock price?";
var genAi = new GoogleAI(apiKey);
var model = genAi.GenerativeModel("gemini-1.5-pro-002");
var model = genAi.GenerativeModel(Model.Gemini15Pro002);
model.UseGrounding = true;

var response = await model.GenerateContent(prompt);
Expand All @@ -220,7 +221,7 @@ In case that you would like to have more control over the Google Search retrieva
var apiKey = "your_api_key";
var prompt = "Who won Wimbledon this year?";
IGenerativeAI genAi = new GoogleAI(apiKey);
var model = genAi.GenerativeModel("gemini-1.5-pro-002",
var model = genAi.GenerativeModel(Model.Gemini15Pro002,
tools: [new Tool { GoogleSearchRetrieval =
new(DynamicRetrievalConfigMode.ModeUnspecified, 0.06f) }]);

Expand Down Expand Up @@ -357,7 +358,7 @@ Read more about [Tune Gemini Pro in Google AI Studio or with the Gemini API](htt

The folders [samples](./samples) and [tests](./tests) contain more examples.

- [Simple console application](./samples/Console.Minimal.Prompt)
- [Sample console application](./samples/Console.Minimal.Prompt)
- [ASP.NET Core Minimal web application](./samples/Web.Minimal.Api)
- [ASP.NET Core MVP web application](./samples/Web.Mvc) (work in progress!)

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.9.5
1.9.6
7 changes: 7 additions & 0 deletions src/Mscc.GenerativeAI.Google/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
### Fixed

## 1.9.6

### Changed

- update NuGet packages
- bump version

## 1.9.5

### Changed
Expand Down
7 changes: 7 additions & 0 deletions src/Mscc.GenerativeAI.Microsoft/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
### Fixed

## 1.9.6

### Changed

- use explicit/aliases namespace
- update NuGet packages

## 1.9.5

### Changed
Expand Down
7 changes: 7 additions & 0 deletions src/Mscc.GenerativeAI.Web/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
### Fixed

## 1.9.6

### Changed

- update NuGet packages
- bump version

## 1.9.5

### Changed
Expand Down
12 changes: 12 additions & 0 deletions src/Mscc.GenerativeAI/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
### Fixed

## 1.9.6

### Added

- add Project IDX development environment
- add OpenAI sample app

### Changed

- rename due to type/namespace conflict
- update NuGet packages

## 1.9.5

### Added
Expand Down

0 comments on commit 04d9c62

Please sign in to comment.