Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Commit 94a0f57

Browse files
authored
Update __init__.py
1 parent 658b54b commit 94a0f57

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

google/generativeai/__init__.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@
3939
See the [python quickstart](https://ai.google.dev/tutorials/python_quickstart) for more details.
4040
"""
4141
from __future__ import annotations
42+
import warnings
43+
import textwrap
4244

4345
from google.generativeai import version
4446

@@ -77,6 +79,19 @@
7779

7880
__version__ = version.__version__
7981

82+
83+
warnings.warn(
84+
textwrap.dedent("""\
85+
All support for the `google.generativeai` package has ended. It will no longer be receiving
86+
updates bug fixes. Please see the upgrade instructions in the [README][1]
87+
88+
1: https://github.com/google-gemini/deprecated-generative-ai-python/blob/main/README.md
89+
""",
90+
FutureWarning,
91+
stacklevel=2
92+
)
93+
94+
8095
del embedding
8196
del files
8297
del generative_models

0 commit comments

Comments
 (0)