Skip to content

Commit

Permalink
fix: correct class name in system test
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 579293600
  • Loading branch information
vertex-sdk-bot authored and copybara-github committed Nov 3, 2023
1 parent 1473e19 commit b822b57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/system/aiplatform/test_language_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def test_text_generation(self):
aiplatform.init(project=e2e_base._PROJECT, location=e2e_base._LOCATION)

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

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

0 comments on commit b822b57

Please sign in to comment.