File tree 1 file changed +3
-2
lines changed
aiplatform/api/AIPlatform.Samples
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 19
19
using Google . Cloud . AIPlatform . V1 ;
20
20
using System ;
21
21
using System . Threading . Tasks ;
22
+ using static Google . Cloud . AIPlatform . V1 . Tool . Types ;
22
23
23
24
public class GroundingWebSample
24
25
{
25
26
public async Task < string > GenerateTextWithGroundingWeb (
26
27
string projectId = "your-project-id" ,
27
28
string location = "us-central1" ,
28
29
string publisher = "google" ,
29
- string model = "gemini-1.5 -flash-001"
30
+ string model = "gemini-2.0 -flash-001"
30
31
)
31
32
{
32
33
var predictionServiceClient = new PredictionServiceClientBuilder
@@ -54,7 +55,7 @@ public async Task<string> GenerateTextWithGroundingWeb(
54
55
{
55
56
new Tool
56
57
{
57
- GoogleSearchRetrieval = new GoogleSearchRetrieval ( )
58
+ GoogleSearch = new GoogleSearch ( )
58
59
}
59
60
}
60
61
} ;
You can’t perform that action at this time.
0 commit comments