Content-Length: 297112 | pFad | https://github.com/googleapis/python-aiplatform/commit/cfd96d804e66befe84c2eb6d259aa50faca2b5db

3C docs: GenAI - Updated the README for GA · googleapis/python-aiplatform@cfd96d8 · GitHub
Skip to content

Commit cfd96d8

Browse files
Ark-kuncopybara-github
authored andcommitted
docs: GenAI - Updated the README for GA
PiperOrigin-RevId: 607380683
1 parent 07c2a25 commit cfd96d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

vertexai/generative_models/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,19 +25,19 @@ For detailed instructions, see [Introduction to multimodal classes in the Vertex
2525

2626
#### Imports:
2727
```python
28-
from vertexai.preview.generative_models import GenerativeModel, Image, Content, Part, Tool, FunctionDeclaration, GenerationConfig
28+
from vertexai.generative_models import GenerativeModel, Image, Content, Part, Tool, FunctionDeclaration, GenerationConfig
2929
```
3030

3131
#### Basic generation:
3232
```python
33-
from vertexai.preview.generative_models import GenerativeModel
33+
from vertexai.generative_models import GenerativeModel
3434
model = GenerativeModel("gemini-pro")
3535
print(model.generate_content("Why is sky blue?"))
3636
```
3737

3838
#### Using images and videos
3939
```python
40-
from vertexai.preview.generative_models import GenerativeModel, Image
40+
from vertexai.generative_models import GenerativeModel, Image
4141
vision_model = GenerativeModel("gemini-pro-vision")
4242

4343
# Local image
@@ -55,7 +55,7 @@ print(vision_model.generate_content(["What is in the video? ", video_part]))
5555

5656
#### Chat
5757
```
58-
from vertexai.preview.generative_models import GenerativeModel, Image
58+
from vertexai.generative_models import GenerativeModel, Image
5959
vision_model = GenerativeModel("gemini-ultra-vision")
6060
vision_chat = vision_model.start_chat()
6161
image = Image.load_from_file("image.jpg")

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/python-aiplatform/commit/cfd96d804e66befe84c2eb6d259aa50faca2b5db

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy