From 21f1f123de1c2d65350b1201578bb2c222863610 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 17 Jul 2025 00:41:55 +0000 Subject: [PATCH] Bump the dotnet group with 1 update (#47426) * Bump the dotnet group with 1 update Bumps Microsoft.Extensions.AI.Abstractions from 9.5.0 to 9.7.1 --- updated-dependencies: - dependency-name: Microsoft.Extensions.AI.Abstractions dependency-version: 9.7.1 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: dotnet ... Signed-off-by: dependabot[bot] * fix build warnings --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Genevieve Warren <24882762+gewarren@users.noreply.github.com> --- .../ConsoleAI.StatelessStateful.csproj | 6 +++++- .../ConsoleAI.StatelessStateful/Program.cs | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/docs/ai/snippets/microsoft-extensions-ai/ConsoleAI.StatelessStateful/ConsoleAI.StatelessStateful.csproj b/docs/ai/snippets/microsoft-extensions-ai/ConsoleAI.StatelessStateful/ConsoleAI.StatelessStateful.csproj index 6e861d87b1e04..4b977f1d178e4 100644 --- a/docs/ai/snippets/microsoft-extensions-ai/ConsoleAI.StatelessStateful/ConsoleAI.StatelessStateful.csproj +++ b/docs/ai/snippets/microsoft-extensions-ai/ConsoleAI.StatelessStateful/ConsoleAI.StatelessStateful.csproj @@ -8,7 +8,11 @@ - + + + + + diff --git a/docs/ai/snippets/microsoft-extensions-ai/ConsoleAI.StatelessStateful/Program.cs b/docs/ai/snippets/microsoft-extensions-ai/ConsoleAI.StatelessStateful/Program.cs index ca7933fc0aec7..acb73e2ac5758 100644 --- a/docs/ai/snippets/microsoft-extensions-ai/ConsoleAI.StatelessStateful/Program.cs +++ b/docs/ai/snippets/microsoft-extensions-ai/ConsoleAI.StatelessStateful/Program.cs @@ -1,7 +1,7 @@ -using Microsoft.Extensions.AI; +using Microsoft.Extensions.AI; +using OllamaSharp; -IChatClient client = new SampleChatClient( - new Uri("http://coolsite.ai"), "target-ai-model"); +IChatClient client = new OllamaApiClient(new Uri("http://localhost:11434"), "llama3.1"); // List history = [];