diff --git a/samples/Console.Minimal.Prompt/Console.Minimal.Prompt.csproj b/samples/Console.Minimal.Prompt/Console.Minimal.Prompt.csproj
index a245c29..c2ef481 100644
--- a/samples/Console.Minimal.Prompt/Console.Minimal.Prompt.csproj
+++ b/samples/Console.Minimal.Prompt/Console.Minimal.Prompt.csproj
@@ -11,7 +11,7 @@
-
+
diff --git a/samples/Console.Minimal.Prompt/Program.cs b/samples/Console.Minimal.Prompt/Program.cs
index 75ce6bb..348f808 100644
--- a/samples/Console.Minimal.Prompt/Program.cs
+++ b/samples/Console.Minimal.Prompt/Program.cs
@@ -21,7 +21,8 @@
}
// Create a new instance of the GenerativeModel class.
-var model = new GenerativeModel(apiKey);
+var genai = new GoogleAI(apiKey);
+var model = genai.GenerativeModel();
// Create a loop to keep the program running until the user exits entering the Escape key.
var hint = " (Press Escape to exit)";
diff --git a/samples/Web.Minimal.Api/Program.cs b/samples/Web.Minimal.Api/Program.cs
index 268dc19..dfd1a0e 100644
--- a/samples/Web.Minimal.Api/Program.cs
+++ b/samples/Web.Minimal.Api/Program.cs
@@ -6,7 +6,8 @@
app.MapGet("/", async (IGenerativeModelService service) =>
{
- var result = await service.GenerateContent("Write about the history of Mauritius.");
+ var model = service.CreateInstance();
+ var result = await model.GenerateContent("Write about the history of Mauritius.");
return result.Text;
});
diff --git a/samples/Web.Minimal.Api/Web.Minimal.Api.csproj b/samples/Web.Minimal.Api/Web.Minimal.Api.csproj
index 857d3d0..22d9e45 100644
--- a/samples/Web.Minimal.Api/Web.Minimal.Api.csproj
+++ b/samples/Web.Minimal.Api/Web.Minimal.Api.csproj
@@ -12,7 +12,7 @@
-
+
diff --git a/samples/Web.Mvc/Web.Mvc.csproj b/samples/Web.Mvc/Web.Mvc.csproj
index c7c8974..ffafd05 100644
--- a/samples/Web.Mvc/Web.Mvc.csproj
+++ b/samples/Web.Mvc/Web.Mvc.csproj
@@ -7,7 +7,7 @@
-
+
diff --git a/src/Mscc.GenerativeAI/CHANGELOG.md b/src/Mscc.GenerativeAI/CHANGELOG.md
index b0935c0..bb251c8 100644
--- a/src/Mscc.GenerativeAI/CHANGELOG.md
+++ b/src/Mscc.GenerativeAI/CHANGELOG.md
@@ -17,6 +17,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- improve response in SSE format
+- update samples to latest NuGet package
### Fixed