Skip to content

Commit 1ed2365

Browse files
msampathkumarriathakkar
authored andcommitted
docs(generativeai): update todo comments for quick start guide examples (GoogleCloudPlatform#12597)
## Description Fixes: [b/362352967](https://b.corp.google.com/362352967) Note: Before submitting a pull request, please open an issue for discussion if you are not associated with Google. ## Checklist - [ ] I have followed [Sample Guidelines from AUTHORING_GUIDE.MD](https://togithub.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md) - [ ] README is updated to include [all relevant information](https://togithub.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md#readme-file) - [ ] **Tests** pass: `nox -s py-3.9` (see [Test Environment Setup](https://togithub.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md#test-environment-setup)) - [ ] **Lint** pass: `nox -s lint` (see [Test Environment Setup](https://togithub.com/GoogleCloudPlatform/python-docs-samples/blob/main/AUTHORING_GUIDE.md#test-environment-setup)) - [ ] These samples need a new **API enabled** in testing projects to pass (let us know which ones) - [ ] These samples need a new/updated **env vars** in testing projects set to pass (let us know which ones) - [ ] This sample adds a new sample directory, and I updated the [CODEOWNERS file](https://togithub.com/GoogleCloudPlatform/python-docs-samples/blob/main/.github/CODEOWNERS) with the codeowners for this sample - [ ] This sample adds a new **Product API**, and I updated the [Blunderbuss issue/PR auto-assigner](https://togithub.com/GoogleCloudPlatform/python-docs-samples/blob/main/.github/blunderbuss.yml) with the codeowners for this sample - [x] Please **merge** this PR for me once it is approved
1 parent bf16b03 commit 1ed2365

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

generative_ai/gemini_guide_example.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def generate_text() -> str:
2222

2323
from vertexai.generative_models import GenerativeModel, Part
2424

25-
# TODO(developer): Update project_id and location
25+
# TODO(developer): Update & uncomment line below
26+
# PROJECT_ID = "your-project-id"
2627
vertexai.init(project=PROJECT_ID, location="us-central1")
2728

2829
model = GenerativeModel("gemini-1.5-flash-001")

generative_ai/gemini_text_input_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def generate_from_text_input() -> str:
2121
import vertexai
2222
from vertexai.generative_models import GenerativeModel
2323

24-
# TODO(developer): Update project_id
24+
# TODO(developer): Update & uncomment line below
2525
# PROJECT_ID = "your-project-id"
2626
vertexai.init(project=PROJECT_ID, location="us-central1")
2727

generative_ai/gemini_video_audio.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ def analyze_video_with_audio() -> str:
2222
import vertexai
2323
from vertexai.generative_models import GenerativeModel, Part
2424

25-
# TODO(developer): Update project_id and location
25+
# TODO(developer): Update & uncomment line below
26+
# PROJECT_ID = "your-project-id"
2627
vertexai.init(project=PROJECT_ID, location="us-central1")
2728

2829
model = GenerativeModel("gemini-1.5-flash-001")

0 commit comments

Comments
 (0)