Skip to content

Commit 0d9ae19

Browse files
.NET: use valid Gemini model (#2695)
* use proper Gemini model * use named parameters --------- Co-authored-by: Roger Barreto <[email protected]>
1 parent 90964ac commit 0d9ae19

File tree

1 file changed

+2
-2
lines changed
  • dotnet/samples/GettingStarted/AgentProviders/Agent_With_GoogleGemini

1 file changed

+2
-2
lines changed

dotnet/samples/GettingStarted/AgentProviders/Agent_With_GoogleGemini/Program.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
const string JokerName = "JokerAgent";
1212

1313
string apiKey = Environment.GetEnvironmentVariable("GOOGLE_GENAI_API_KEY") ?? throw new InvalidOperationException("Please set the GOOGLE_GENAI_API_KEY environment variable.");
14-
string model = Environment.GetEnvironmentVariable("GOOGLE_GENAI_MODEL") ?? "gemini-2.5-fast";
14+
string model = Environment.GetEnvironmentVariable("GOOGLE_GENAI_MODEL") ?? "gemini-2.5-flash";
1515

1616
// Using a Google GenAI IChatClient implementation
1717
// Until the PR https://github.com/googleapis/dotnet-genai/pull/81 is not merged this option
@@ -28,7 +28,7 @@
2828
// Using a community driven Mscc.GenerativeAI.Microsoft package
2929

3030
ChatClientAgent agentCommunity = new(
31-
new GeminiChatClient(apiKey, model),
31+
new GeminiChatClient(apiKey: apiKey, model: model),
3232
name: JokerName,
3333
instructions: JokerInstructions);
3434

0 commit comments

Comments
 (0)