---
title: "google-generativeai 0.8.0 Breaking Changes on PyPI"
description: "What each google-generativeai release removed, renamed or changed: 105 breaking changes in 2 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/google-generativeai
last_updated: 2026-12-04
---

# 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

Latest version `0.8.6`, released December 16, 2025. 

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [0.6.0](#v-0-6-0) to [0.8.0](#v-0-8-0): 8 breaking changes in 1 version.

## google-generativeai 0.8.0 breaking changes

google-generativeai 0.8.0, released September 10, 2024: 8 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](https://github.com/google-gemini/deprecated-generative-ai-python/releases/tag/v0.8.0)
- **Removed** `TextService`  

The DiscussService and TextService classes were removed in this release. Code using them must be moved to the newer APIs. [github.com](https://github.com/google-gemini/deprecated-generative-ai-python/releases/tag/v0.8.0)
- **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](https://github.com/google-gemini/deprecated-generative-ai-python/releases/tag/v0.8.0)
- **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](https://pypi.org/project/google-generativeai/0.8.0/)
- **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](https://pypi.org/project/google-generativeai/0.8.0/)
- **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](https://pypi.org/project/google-generativeai/0.8.0/)
- **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](https://pypi.org/project/google-generativeai/0.8.0/)
- **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](https://pypi.org/project/google-generativeai/0.8.0/)

## google-generativeai 0.6.0 breaking changes

google-generativeai 0.6.0, released June 3, 2024: 97 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](https://github.com/google-gemini/deprecated-generative-ai-python/releases/tag/v0.6.0)
- **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](https://pypi.org/project/google-generativeai/0.6.0/)
- **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](https://pypi.org/project/google-generativeai/0.6.0/)
- **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](https://pypi.org/project/google-generativeai/0.6.0/)
- **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](https://pypi.org/project/google-generativeai/0.6.0/)
- **Signature changed** `google.generativeai.ChatSession.history`  

Was history: list\[glm.Content\]; now history: list\[protos.Content\]. [pypi.org](https://pypi.org/project/google-generativeai/0.6.0/)
- **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](https://pypi.org/project/google-generativeai/0.6.0/)
- **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](https://pypi.org/project/google-generativeai/0.6.0/)
- **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](https://pypi.org/project/google-generativeai/0.6.0/)
- **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](https://pypi.org/project/google-generativeai/0.6.0/)

And 87 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
