Skip to content

chore(deps): bump com.google.genai:google-genai from 1.80.0 to 2.0.0 - #437

Merged
xavidop merged 1 commit into
mainfrom
dependabot/maven/com.google.genai-google-genai-2.0.0
Nov 16, 2026
Merged

xavidop merged 1 commit into
mainfrom
dependabot/maven/com.google.genai-google-genai-2.0.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026

Copy link
Copy Markdown
Contributor

Bumps com.google.genai:google-genai from 1.80.0 to 2.0.0.

Release notes

Sourced from com.google.genai:google-genai's releases.

v2.0.0

2.0.0 (2026-11-06)

⚠ BREAKING CHANGES

  • Default Gemini Developer API version is now v1 (was v1beta) (88bc413)

    • Clients targeting the Gemini Developer API now default to API version v1 instead of v1beta.
    • No effect on Gemini Enterprise (Vertex AI) defaults: Clients with .enterprise(true) are unaffected by this default change and continue to default to v1beta1.
    • Some models are not available on v1, notably: the gemini-flash-latest, gemini-flash-lite-latest and gemini-pro-latest aliases, and some -preview models. They exist only on v1beta. To keep using them, use a specific stable model version, or switch back to v1beta as shown below.
    • Some model aliases are not available on v1, notably: gemini-flash-latest, gemini-flash-lite-latest and gemini-pro-latest. They exist only on v1beta. To keep using them, use a specific model version, or switch back to v1beta as shown below.
    • How to configure or restore the previous default via environment variable: Set GOOGLE_GENAI_API_VERSION (works for both Gemini Developer API and Enterprise / Vertex AI clients when no version is set in code):
      # Restores the beta default ('v1beta' on Gemini Developer API, 'v1beta1' on Enterprise / Vertex AI)
      export GOOGLE_GENAI_API_VERSION=beta
      Or set an explicit API version string on either platform (e.g. 'v1', 'v1beta', 'v1beta1')
      export GOOGLE_GENAI_API_VERSION=v1beta

    • How to set the API version in code: Pass HttpOptions when building the Client (takes precedence over GOOGLE_GENAI_API_VERSION):
      import com.google.genai.Client;
      import com.google.genai.types.HttpOptions;
      Client client =
      Client.builder()
      .httpOptions(HttpOptions.builder().apiVersion("v1beta").build())
      .build();

  • interactions: CodeExecutionResultStep.result changed from String to the CodeExecutionResultStepResult union (e551d17)

    • The wire JSON for text-only results is unchanged, but Java code constructing or reading CodeExecutionResultStep.result() must now use CodeExecutionResultStepResult:
      • Constructing: Use CodeExecutionResultStepResult.of("...") (or CodeExecutionResultStepResult.of(contentList) for multimodal outputs).
      • Reading: Use step.result().flatMap(CodeExecutionResultStepResult::string) for a string result, or step.result().flatMap(CodeExecutionResultStepResult::arrayOfContent) for multimodal List<Content> output.

Features

  • Add source_text to AudioTranscriptionConfig and SmartTranscriptionMode. (04a5b93)
  • Add MALFORMED_RESPONSE to FinishReason (f96561b), refs #2937
  • cli: use gemini-3.5-transcribe as default model for transcribe command (bc3779f)
  • default Gemini API version to v1 instead of v1beta across SDKs (88bc413)
  • Disable GenerateVideos for Gemini API, update tests/READMEs (30cb945)
  • interactions: add Office and OpenDocument MIME types (e8448b2)
  • interactions: support multimodal content in CodeExecutionResultStep.result (e551d17)
  • support GOOGLE_GENAI_API_VERSION environment variable across SDKs (88bc413)
  • update discovery doc (9bd8ae3)

Bug Fixes

... (truncated)

Changelog

Sourced from com.google.genai:google-genai's changelog.

2.0.0 (2026-11-06)

⚠ BREAKING CHANGES

  • Default Gemini Developer API version is now v1 (was v1beta) (88bc413)

    • Clients targeting the Gemini Developer API now default to API version v1 instead of v1beta.
    • No effect on Gemini Enterprise (Vertex AI) defaults: Clients with .vertexAI(true) are unaffected by this default change and continue to default to v1beta1.
    • Some models are not available on v1, notably: the gemini-flash-latest, gemini-flash-lite-latest and gemini-pro-latest aliases, and some -preview models. They exist only on v1beta. To keep using them, use a specific stable model version, or switch back to v1beta as shown below.
    • How to configure or restore the previous default via environment variable: Set GOOGLE_GENAI_API_VERSION (works for both Gemini Developer API and Enterprise / Vertex AI clients when no version is set in code):
      # Restores the beta default ('v1beta' on Gemini Developer API, 'v1beta1' on Enterprise / Vertex AI)
      export GOOGLE_GENAI_API_VERSION=beta
      Or set an explicit API version string on either platform (e.g. 'v1', 'v1beta', 'v1beta1')
      export GOOGLE_GENAI_API_VERSION=v1beta

    • How to set the API version in code: Pass HttpOptions when building the Client (takes precedence over GOOGLE_GENAI_API_VERSION):
      import com.google.genai.Client;
      import com.google.genai.types.HttpOptions;
      Client client =
      Client.builder()
      .httpOptions(HttpOptions.builder().apiVersion("v1beta").build())
      .build();

  • interactions: CodeExecutionResultStep.result changed from String to the CodeExecutionResultStepResult union (e551d17)

    • The wire JSON for text-only results is unchanged, but Java code constructing or reading CodeExecutionResultStep.result() must now use CodeExecutionResultStepResult:
      • Constructing: Use CodeExecutionResultStepResult.of("...") (or CodeExecutionResultStepResult.of(contentList) for multimodal outputs).
      • Reading: Use step.result().flatMap(CodeExecutionResultStepResult::string) for a string result, or step.result().flatMap(CodeExecutionResultStepResult::arrayOfContent) for multimodal List<Content> output.

Features

  • Add source_text to AudioTranscriptionConfig and SmartTranscriptionMode. (04a5b93)
  • Add MALFORMED_RESPONSE to FinishReason (f96561b), refs #2937
  • cli: use gemini-3.5-transcribe as default model for transcribe command (bc3779f)
  • default Gemini API version to v1 instead of v1beta across SDKs (88bc413)
  • Disable GenerateVideos for Gemini API, update tests/READMEs (30cb945)
  • interactions: add Office and OpenDocument MIME types (e8448b2)
  • interactions: support multimodal content in CodeExecutionResultStep.result (e551d17)
  • support GOOGLE_GENAI_API_VERSION environment variable across SDKs (88bc413)
  • update discovery doc (9bd8ae3)

Bug Fixes

... (truncated)

Commits
  • 0379a6a chore(main): release 2.0.0 (#1377)
  • 6f06afe chore: set version to 2.0.0
  • 4d8b034 chore: switch example model from gemini-flash-latest to gemini-3.8-flash
  • 17d87f4 docs: update remaining documentation links from ai.google.dev to aistudio.goo...
  • 20aa739 chore: update Speakeasy OpenAPI generator to v2.959.1
  • f96561b feat: Add MALFORMED_RESPONSE to FinishReason
  • fd5b460 chore: Make the deprecated Value response_format field internal-only and up...
  • e551d17 feat(interactions)!: support multimodal content in CodeExecutionResultStep.re...
  • 9bd8ae3 feat: update discovery doc
  • 524d7c8 fix: stop Vertex replay clients from fetching real OAuth tokens
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [com.google.genai:google-genai](https://github.com/googleapis/java-genai) from 1.80.0 to 2.0.0.
- [Release notes](https://github.com/googleapis/java-genai/releases)
- [Changelog](https://github.com/googleapis/java-genai/blob/main/CHANGELOG.md)
- [Commits](googleapis/java-genai@v1.80.0...v2.0.0)

---
updated-dependencies:
- dependency-name: com.google.genai:google-genai
  dependency-version: 2.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file maven labels Nov 16, 2026
@xavidop
xavidop merged commit 17bf841 into main Nov 16, 2026
12 checks passed
@xavidop
xavidop deleted the dependabot/maven/com.google.genai-google-genai-2.0.0 branch November 16, 2026 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file maven

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant