Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: googleapis/java-genai
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.4.0
Choose a base ref
...
head repository: googleapis/java-genai
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.5.0
Choose a head ref
  • 12 commits
  • 29 files changed
  • 5 contributors

Commits on Nov 16, 2026

  1. chore(main): release 2.5.0-SNAPSHOT (#1460)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
    release-please[bot] authored Nov 16, 2026
    Configuration menu
    Copy the full SHA
    c1687f9 View commit details
    Browse the repository at this point in the history
  2. test: run the shared gemini-embedding-001 Vertex test in us-central1

    PiperOrigin-RevId: 1023105664
    speedstorm1 authored and copybara-github committed Nov 16, 2026
    Configuration menu
    Copy the full SHA
    ca64f2a View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2026

  1. docs: note that the Live API and caches are not available on v1

    PiperOrigin-RevId: 1023247351
    MarkDaoust authored and copybara-github committed Nov 17, 2026
    Configuration menu
    Copy the full SHA
    e5dc84c View commit details
    Browse the repository at this point in the history
  2. fix(interactions): preserve 3-arg Function constructor in Java SDK

    PiperOrigin-RevId: 1023320995
    MarkDaoust authored and copybara-github committed Nov 17, 2026
    Configuration menu
    Copy the full SHA
    d19d94e View commit details
    Browse the repository at this point in the history
  3. feat(environments): introduce self-hosted BYOS mode, system_instructi…

    …on, custom_config, and environment_key in SDKs and CLI
    
    PiperOrigin-RevId: 1023372629
    google-genai-bot authored and copybara-github committed Nov 17, 2026
    Configuration menu
    Copy the full SHA
    cbcfc03 View commit details
    Browse the repository at this point in the history
  4. chore: explicitly use v1beta for Gemini API caching and Live tests

    PiperOrigin-RevId: 1023409102
    MarkDaoust authored and copybara-github committed Nov 17, 2026
    Configuration menu
    Copy the full SHA
    21865f6 View commit details
    Browse the repository at this point in the history
  5. feat: Add a history parameter to Chats.create and AsyncChats.create

    A chat session can now start from earlier turns, like `history` in the Python,
    Go and JavaScript SDKs:
    
        Chat chat = client.chats.create(model, config, history);
    
    The history is curated the same way as in those SDKs. Every turn must have the
    role `user` or `model`; otherwise `create` throws `IllegalArgumentException`.
    A `model` turn with invalid content is not sent to the model, and neither is
    the `user` turn before it.
    
    fix: Chat history no longer reorders turns after an invalid model response,
    and a turn without a role throws `IllegalArgumentException` instead of
    `NoSuchElementException`.
    PiperOrigin-RevId: 1023972476
    katlyn-edwards authored and copybara-github committed Nov 17, 2026
    Configuration menu
    Copy the full SHA
    a0c58aa View commit details
    Browse the repository at this point in the history
  6. refactor: Compare chat history roles with role.equals("user") in Chat…

    …Base
    
    A missing role now defaults to "" instead of null, so the role checks in
    `extractCuratedHistory` can read `role.equals("user")` rather than
    `"user".equals(role)`. Behavior is unchanged: a turn with no role still throws
    `IllegalArgumentException`.
    
    PiperOrigin-RevId: 1023984918
    katlyn-edwards authored and copybara-github committed Nov 17, 2026
    Configuration menu
    Copy the full SHA
    1b75883 View commit details
    Browse the repository at this point in the history
  7. chore: add a load-only mode to the Go and Java table tests

    PiperOrigin-RevId: 1024127887
    speedstorm1 authored and copybara-github committed Nov 17, 2026
    Configuration menu
    Copy the full SHA
    1e63416 View commit details
    Browse the repository at this point in the history

Commits on Nov 18, 2026

  1. feat(sdk): Add tool retrieval and function result schemas in public SDK

    PiperOrigin-RevId: 1024345066
    MarkDaoust authored and copybara-github committed Nov 18, 2026
    Configuration menu
    Copy the full SHA
    1893dbe View commit details
    Browse the repository at this point in the history
  2. fix: Override transitive commons-codec 1.11 with 1.18.0

    fixes #896
    
    PiperOrigin-RevId: 1024350097
    speedstorm1 authored and copybara-github committed Nov 18, 2026
    Configuration menu
    Copy the full SHA
    367f859 View commit details
    Browse the repository at this point in the history
  3. chore(main): release 2.5.0 (#1462)

    Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
    release-please[bot] authored Nov 18, 2026
    Configuration menu
    Copy the full SHA
    f8d4775 View commit details
    Browse the repository at this point in the history
Loading