File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ def test_text_generation(self):
50
50
aiplatform .init (project = e2e_base ._PROJECT , location = e2e_base ._LOCATION )
51
51
52
52
model = TextGenerationModel .from_pretrained ("google/text-bison@001" )
53
- grounding_source = language_models .WebSearchGroundingSource ()
53
+ grounding_source = language_models .GroundingSource . WebSearch ()
54
54
assert model .predict (
55
55
"What is the best recipe for banana bread? Recipe:" ,
56
56
max_output_tokens = 128 ,
@@ -78,7 +78,7 @@ async def test_text_generation_model_predict_async(self):
78
78
aiplatform .init (project = e2e_base ._PROJECT , location = e2e_base ._LOCATION )
79
79
80
80
model = TextGenerationModel .from_pretrained ("google/text-bison@001" )
81
- grounding_source = language_models .WebSearchGroundingSource ()
81
+ grounding_source = language_models .GroundingSource . WebSearch ()
82
82
response = await model .predict_async (
83
83
"What is the best recipe for banana bread? Recipe:" ,
84
84
max_output_tokens = 128 ,
You can’t perform that action at this time.
0 commit comments