Skip to content

Commit 37e6d63

Browse files
yinghsienwucopybara-github
authored andcommitted
docs: Add more explicit Gen AI SDK reference
PiperOrigin-RevId: 735890795
1 parent 9e3c9f4 commit 37e6d63

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

README.rst

+21-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,29 @@ Vertex AI SDK for Python
55
Gemini API and Generative AI on Vertex AI
66
-----------------------------------------
77

8-
.. note::
8+
> [!IMPORTANT]
99

10-
For Gemini API and Generative AI on Vertex AI, please reference `Vertex Generative AI SDK for Python`_
10+
> For Gemini API and Generative AI on Vertex AI, please reference `Vertex Generative AI SDK for Python`_
1111
.. _Vertex Generative AI SDK for Python: https://cloud.google.com/vertex-ai/generative-ai/docs/reference/python/latest
12-
12+
From Gemini 2.0 onwards this SDK will no longer be developing new Gemini API
13+
features. Any new Gemini API code should be written using the new SDK, `google-genai` ([github](https://github.com/googleapis/python-genai), [pypi](https://pypi.org/project/google-genai/)). See the migration guide below to upgrade to the new SDK.
14+
15+
# Upgrade the Google GenAI SDK for Python
16+
17+
With Gemini 2 we are offering a [new SDK](https://github.com/googleapis/python-genai)
18+
([google-genai](https://pypi.org/project/google-genai/)). The updated SDK is fully compatible with all Gemini API models and features, including recent additions like the [live API](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/multimodal-live#get-started) (audio + video streaming), improved tool usage (
19+
[code execution](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/code-execution#googlegenaisdk_tools_code_exec_with_txt-python_genai_sdk),
20+
[function calling](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/function-calling#examples_of_function_calling) and integrated
21+
[Google search grounding](https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/ground-with-google-search#googlegenaisdk_tools_google_search_with_txt-python_genai_sdk)),
22+
and media generation ([Imagen](https://cloud.google.com/vertex-ai/generative-ai/docs/image/overview)).
23+
This SDK allows you to connect to the Gemini API through either
24+
[Google AI Studio](https://aistudio.google.com/prompts/new_chat?model=gemini-2.0-flash-exp) or
25+
[Vertex AI](https://cloud.google.com/vertex-ai/generative-ai/docs/gemini-v2).
26+
27+
The [google-cloud-aiplatform](https://pypi.org/project/google-cloud-aiplatform)
28+
package will continue to support the original Gemini models and Vertex AI services.
29+
It <em>can</em> also be used with Gemini 2 models, just with a limited feature
30+
set. All new Gemini 2 features will be developed in the new Google GenAI SDK.
1331
-----------------------------------------
1432

1533
|GA| |pypi| |versions| |unit-tests| |system-tests| |sample-tests|

0 commit comments

Comments
 (0)