Skip to content

Commit c4f4776

Browse files
author
PHAN Xuan Quang
committed
fix check API key
1 parent a24b6cc commit c4f4776

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Gemini.NET/Gemini.NET.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
1616
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1717
<PackageRequireLicenseAcceptance>True</PackageRequireLicenseAcceptance>
18-
<Version>2.2.1</Version>
18+
<Version>2.2.2</Version>
1919
</PropertyGroup>
2020

2121
<ItemGroup>

Gemini.NET/Generator.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ public async Task<bool> IsValidApiKeyAsync()
4040
var apiRequest = new ApiRequestBuilder()
4141
.WithPrompt("Say `Hello World` to me!")
4242
.DisableAllSafetySettings()
43-
.WithDefaultGenerationConfig(0.2F)
43+
.WithDefaultGenerationConfig()
4444
.Build();
4545

4646
try
4747
{
48-
await GenerateContentAsync(apiRequest, ModelVersion.Gemini_20_Flash_Lite).ConfigureAwait(false);
48+
await GenerateContentAsync(apiRequest, ModelVersion.Gemini_15_Flash).ConfigureAwait(false);
4949
return true;
5050
}
5151
catch

0 commit comments

Comments
 (0)