From f8d44050c379fd990ae05d63f0b9e82fc2e9cc9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jochen=20Kirst=C3=A4tter?= <7329802+jochenkirstaetter@users.noreply.github.com> Date: Mon, 8 Dec 2025 15:53:26 +0400 Subject: [PATCH 1/2] use proper Gemini model --- .../AgentProviders/Agent_With_GoogleGemini/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet/samples/GettingStarted/AgentProviders/Agent_With_GoogleGemini/Program.cs b/dotnet/samples/GettingStarted/AgentProviders/Agent_With_GoogleGemini/Program.cs index db633dc47d..906583bc2b 100644 --- a/dotnet/samples/GettingStarted/AgentProviders/Agent_With_GoogleGemini/Program.cs +++ b/dotnet/samples/GettingStarted/AgentProviders/Agent_With_GoogleGemini/Program.cs @@ -11,7 +11,7 @@ const string JokerName = "JokerAgent"; string apiKey = Environment.GetEnvironmentVariable("GOOGLE_GENAI_API_KEY") ?? throw new InvalidOperationException("Please set the GOOGLE_GENAI_API_KEY environment variable."); -string model = Environment.GetEnvironmentVariable("GOOGLE_GENAI_MODEL") ?? "gemini-2.5-fast"; +string model = Environment.GetEnvironmentVariable("GOOGLE_GENAI_MODEL") ?? "gemini-2.5-flash"; // Using a Google GenAI IChatClient implementation // Until the PR https://github.com/googleapis/dotnet-genai/pull/81 is not merged this option From a8f0d8356b67c2b78719697b24098cfec03f7ef5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jochen=20Kirst=C3=A4tter?= <7329802+jochenkirstaetter@users.noreply.github.com> Date: Mon, 8 Dec 2025 16:31:34 +0400 Subject: [PATCH 2/2] use named parameters --- .../AgentProviders/Agent_With_GoogleGemini/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet/samples/GettingStarted/AgentProviders/Agent_With_GoogleGemini/Program.cs b/dotnet/samples/GettingStarted/AgentProviders/Agent_With_GoogleGemini/Program.cs index 906583bc2b..89c86d5c56 100644 --- a/dotnet/samples/GettingStarted/AgentProviders/Agent_With_GoogleGemini/Program.cs +++ b/dotnet/samples/GettingStarted/AgentProviders/Agent_With_GoogleGemini/Program.cs @@ -28,7 +28,7 @@ // Using a community driven Mscc.GenerativeAI.Microsoft package ChatClientAgent agentCommunity = new( - new GeminiChatClient(apiKey, model), + new GeminiChatClient(apiKey: apiKey, model: model), name: JokerName, instructions: JokerInstructions);