Skip to content

Commit

Permalink
docs(generativeai): update todo comments for quick start guide exampl…
Browse files Browse the repository at this point in the history
…es (#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
  • Loading branch information
msampathkumar authored Sep 17, 2024
1 parent 612eae4 commit fd9e83f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion generative_ai/gemini_guide_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def generate_text() -> str:

from vertexai.generative_models import GenerativeModel, Part

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

model = GenerativeModel("gemini-1.5-flash-001")
Expand Down
2 changes: 1 addition & 1 deletion generative_ai/gemini_text_input_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def generate_from_text_input() -> str:
import vertexai
from vertexai.generative_models import GenerativeModel

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

Expand Down
3 changes: 2 additions & 1 deletion generative_ai/gemini_video_audio.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ def analyze_video_with_audio() -> str:
import vertexai
from vertexai.generative_models import GenerativeModel, Part

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

model = GenerativeModel("gemini-1.5-flash-001")
Expand Down

0 comments on commit fd9e83f

Please sign in to comment.