Skip to content

Commit b822b57

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
fix: correct class name in system test
PiperOrigin-RevId: 579293600
1 parent 1473e19 commit b822b57

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/system/aiplatform/test_language_models.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_text_generation(self):
5050
aiplatform.init(project=e2e_base._PROJECT, location=e2e_base._LOCATION)
5151

5252
model = TextGenerationModel.from_pretrained("google/text-bison@001")
53-
grounding_source = language_models.WebSearchGroundingSource()
53+
grounding_source = language_models.GroundingSource.WebSearch()
5454
assert model.predict(
5555
"What is the best recipe for banana bread? Recipe:",
5656
max_output_tokens=128,
@@ -78,7 +78,7 @@ async def test_text_generation_model_predict_async(self):
7878
aiplatform.init(project=e2e_base._PROJECT, location=e2e_base._LOCATION)
7979

8080
model = TextGenerationModel.from_pretrained("google/text-bison@001")
81-
grounding_source = language_models.WebSearchGroundingSource()
81+
grounding_source = language_models.GroundingSource.WebSearch()
8282
response = await model.predict_async(
8383
"What is the best recipe for banana bread? Recipe:",
8484
max_output_tokens=128,

0 commit comments

Comments
 (0)