google-generativeai breaking changes
google-generativeai 0.8.0 (September 10, 2024) is its newest release with breaking changes, 8 of them. The first: Removed DiscussService. Every breaking API change we have recorded in google-generativeai on PyPI: 105 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.
Updated December 4, 2026
On this page
Latest version 0.8.6, released December 16, 2025.
Packages on PyPI run on Python. Python end of life dates.
google-generativeai 0.8.0 breaking changes
- Removed
DiscussService
The DiscussService and TextService classes were removed in this release. Code using them must be moved to the newer APIs. github.com - Removed
TextService
The DiscussService and TextService classes were removed in this release. Code using them must be moved to the newer APIs. github.com - Default changed
GOOGLE_API_KEY
The default API key environment variable is now GEMINI_API_KEY rather than GOOGLE_API_KEY. Users relying on GOOGLE_API_KEY must set GEMINI_API_KEY or pass the key explicitly. github.com - Signature changed
google.generativeai.discuss.get_default_discuss_async_client
Was def get_default_discuss_async_client() -> glm.DiscussServiceAsyncClient; now from google.generativeai.client import get_default_discuss_async_client. pypi.org - Signature changed
google.generativeai.discuss.get_default_discuss_client
Was def get_default_discuss_client() -> glm.DiscussServiceClient; now from google.generativeai.client import get_default_discuss_client. pypi.org - Signature changed
google.generativeai.GenerationConfig.__init__
Was def __init__(self, candidate_count: int | None = None, stop_sequences: Iterable[str] | None = None, max_output_tokens: int | None = None, temperature: float | None = None, top_p: float | None = None, top_k: int | None = None... pypi.org - Signature changed
google.generativeai.GenerationConfig.response_schema
Was response_schema: protos.Schema | Mapping[str, Any] | None; now response_schema: protos.Schema | Mapping[str, Any] | type | None. pypi.org - Signature changed
google.generativeai.text.get_default_text_client
Was def get_default_text_client() -> glm.TextServiceClient; now from google.generativeai.client import get_default_text_client. pypi.org
google-generativeai 0.6.0 breaking changes
- Behavior changed
The harm category option now accepts only the subset of categories supported by Gemini. Code that uses other harm categories may need to change. github.com - Signature changed
google.generativeai.answer.generate_answer
Was def generate_answer(*, model: model_types.AnyModelNameOptions = DEFAULT_ANSWER_MODEL, contents: content_types.ContentsType, inline_passages: GroundingPassagesOptions | None = None, semantic_retriever: SemanticRetrieverConfigOptions |... pypi.org - Signature changed
google.generativeai.answer.generate_answer_async
Was async def generate_answer_async(*, model: model_types.AnyModelNameOptions = DEFAULT_ANSWER_MODEL, contents: content_types.ContentsType, inline_passages: GroundingPassagesOptions | None = None, semantic_retriever... pypi.org - Signature changed
google.generativeai.chat
Was def chat(*, model: model_types.AnyModelNameOptions | None = 'models/chat-bison-001', context: str | None = None, examples: discuss_types.ExamplesOptions | None = None, messages: discuss_types.MessagesOptions | None = None, temperature... pypi.org - Signature changed
google.generativeai.chat_async
Was async def chat_async(*, model: model_types.AnyModelNameOptions | None = 'models/chat-bison-001', context: str | None = None, examples: discuss_types.ExamplesOptions | None = None, messages: discuss_types.MessagesOptions | None = None... pypi.org - Signature changed
google.generativeai.ChatSession.history
Was history: list[glm.Content]; now history: list[protos.Content]. pypi.org - Signature changed
google.generativeai.ChatSession.rewind
Was def rewind(self) -> tuple[glm.Content, glm.Content]; now def rewind(self) -> tuple[protos.Content, protos.Content]. pypi.org - Signature changed
google.generativeai.ChatSession.send_message
Was def send_message(self, content: content_types.ContentType, *, generation_config: generation_types.GenerationConfigType = None, safety_settings: safety_types.SafetySettingOptions = None, stream: bool = False, tools... pypi.org - Signature changed
google.generativeai.ChatSession.send_message_async
Was async def send_message_async(self, content: content_types.ContentType, *, generation_config: generation_types.GenerationConfigType = None, safety_settings: safety_types.SafetySettingOptions = None, stream: bool = False, tools... pypi.org - Signature changed
google.generativeai.client.FileServiceClient.create_file
Was def create_file(self, path: str | pathlib.Path | os.PathLike, *, mime_type: str | None = None, name: str | None = None, display_name: str | None = None, resumable: bool = True) -> glm.File; now def create_file(self, path: str |... pypi.org
And 87 more in this version. Sign up to see every change
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.