Skip to content

chore(main): release 2.0.0 - #1377

Merged
MarkDaoust merged 8 commits into
mainfrom
release-please--branches--main
Nov 6, 2026
Merged

MarkDaoust merged 8 commits into
mainfrom
release-please--branches--main

Conversation

@release-please

@release-please release-please Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

🤖 I have created a release beep boop

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.
    • 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

  • refresh the access token on every HTTP attempt so retries and queued async calls do not send an expired token (eb3a674)
  • respect configured and default API version for Gemini API file uploads across SDKs (22ad0a9)
  • stop Vertex replay clients from fetching real OAuth tokens (524d7c8)

Documentation

  • clarify that ClientOptions.maxConnections and maxConnectionsPerHost only limit asynchronous requests (e742930)
  • update remaining documentation links from ai.google.dev to aistudio.google.com. (17d87f4)

Miscellaneous Chores


This PR was generated with Release Please. See documentation.

@release-please
release-please Bot force-pushed the release-please--branches--main branch 14 times, most recently from 551171b to 27ea4fc Compare November 5, 2026 20:49
@release-please
release-please Bot force-pushed the release-please--branches--main branch 2 times, most recently from daad0c4 to 8a739c9 Compare November 6, 2026 01:20
@release-please release-please Bot changed the title chore(main): release 1.81.0 chore(main): release 2.0.0 Nov 6, 2026
@release-please
release-please Bot force-pushed the release-please--branches--main branch from 8a739c9 to b4318b6 Compare November 6, 2026 02:02
Comment thread versions.txt Outdated
# module:released-version:current-version

google-genai:1.80.0:1.81.0-SNAPSHOT No newline at end of file
google-genai:1.81.0:1.81.0 No newline at end of file

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need to update this version to 2.0.0

@jaycee-li

Copy link
Copy Markdown
Collaborator

There are 3 entries in bug fixes section for refresh the access token..., can we remove the last 2 of them? I reverted that CL once so there were 3 entries.

@MarkDaoust
MarkDaoust merged commit 0379a6a into main Nov 6, 2026
14 of 15 checks passed
@release-please

release-please Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor Author

🤖 Created releases:

🌻

copybara-service Bot pushed a commit that referenced this pull request Nov 9, 2026
--
0379a6a by release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>:

chore(main): release 2.0.0 (#1377)

* chore(main): release 2.0.0

* Update CHANGELOG.md

* Update CHANGELOG.md

* Update pom.xml

* Update ApiClient.java

* Update pom.xml

* Update versions.txt

* Update README.md

---------

Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
Co-authored-by: Mark Daoust <[email protected]>
--
7baf55e by release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>:

chore(main): release 2.1.0-SNAPSHOT

COPYBARA_INTEGRATE_REVIEW=#1408 from googleapis:release-please--branches--main 7baf55e
PiperOrigin-RevId: 1017498404
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants