Skip to content

Commit f74a426

Browse files
jonasstenbergcopybara-github
authored andcommitted
Copybara import of the project:
-- c78d473 by Jonas Stenberg <js@squidler.io>: fix: initialize comprehensive and curated history in constructor The ChatBase constructor was ignoring its parameters and always initializing comprehensiveHistory and curatedHistory as empty lists. This prevented any pre-existing conversation history from being used. COPYBARA_INTEGRATE_REVIEW=#783 from jonasstenberg:patch-1 c78d473 PiperOrigin-RevId: 875404679
1 parent e8bd2c8 commit f74a426

8 files changed

Lines changed: 9 additions & 30 deletions

File tree

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.41.0"
2+
".": "1.40.0"
33
}

CHANGELOG.md

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,5 @@
11
# Changelog
22

3-
## [1.41.0](https://github.com/googleapis/java-genai/compare/v1.40.0...v1.41.0) (2026-02-26)
4-
5-
6-
### Features
7-
8-
* Add Image Grounding support to GoogleSearch tool ([0daefbc](https://github.com/googleapis/java-genai/commit/0daefbc3ea09a341162ff95b68bf7f2e25fa41ea))
9-
* enable server side MCP and disable all other AFC when server side MCP is configured. ([498a2c4](https://github.com/googleapis/java-genai/commit/498a2c422dabb493d9b3b133b88156e5b44abae0))
10-
* examples ([917aee0](https://github.com/googleapis/java-genai/commit/917aee09737fec695fdb4fb665e6aaebfcf0a2fc))
11-
* initial integration ([917aee0](https://github.com/googleapis/java-genai/commit/917aee09737fec695fdb4fb665e6aaebfcf0a2fc))
12-
* set up pom + fix test ([917aee0](https://github.com/googleapis/java-genai/commit/917aee09737fec695fdb4fb665e6aaebfcf0a2fc))
13-
14-
15-
### Bug Fixes
16-
17-
* use `NonClosingDelegatingHttpClient` ([917aee0](https://github.com/googleapis/java-genai/commit/917aee09737fec695fdb4fb665e6aaebfcf0a2fc))
18-
19-
20-
### Documentation
21-
22-
* explain how to run tests ([4f6a811](https://github.com/googleapis/java-genai/commit/4f6a8112e8513bed34a5d35a16f21459006944c3))
23-
243
## [1.40.0](https://github.com/googleapis/java-genai/compare/v1.39.0...v1.40.0) (2026-02-19)
254

265

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ If you're using Maven, add the following to your dependencies:
1616
<dependency>
1717
<groupId>com.google.genai</groupId>
1818
<artifactId>google-genai</artifactId>
19-
<version>1.41.0</version>
19+
<version>1.36.0</version>
2020
</dependency>
2121
</dependencies>
2222
```

examples/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@
55

66
<groupId>com.google.genai.examples</groupId>
77
<artifactId>google-genai-examples</artifactId>
8-
<version>1.41.0</version><!-- {x-version-update:google-genai:current} -->
8+
<version>1.41.0-SNAPSHOT</version><!-- {x-version-update:google-genai:current} -->
99
<name>google-genai-examples</name>
1010

1111
<properties>
1212
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1313
<maven.compiler.source>1.8</maven.compiler.source>
1414
<maven.compiler.target>1.8</maven.compiler.target>
1515
<!-- {x-version-update-start:google-genai:current} -->
16-
<google-genai.version>1.41.0</google-genai.version>
16+
<google-genai.version>1.41.0-SNAPSHOT</google-genai.version>
1717
<!-- {x-version-update-end} -->
1818
</properties>
1919
<build>

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<groupId>com.google.genai</groupId>
77
<artifactId>google-genai</artifactId>
88
<name>google-genai</name>
9-
<version>1.41.0</version><!-- {x-version-update:google-genai:current} -->
9+
<version>1.41.0-SNAPSHOT</version><!-- {x-version-update:google-genai:current} -->
1010
<packaging>jar</packaging>
1111
<description>
1212
Java idiomatic SDK for the Gemini Developer APIs and Vertex AI APIs.

src/main/java/com/google/genai/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
public abstract class ApiClient implements AutoCloseable {
5656

5757
// {x-version-update-start:google-genai:released}
58-
private static final String SDK_VERSION = "1.41.0";
58+
private static final String SDK_VERSION = "1.40.0";
5959
// {x-version-update-end:google-genai:released}
6060
private static final Logger logger = Logger.getLogger(ApiClient.class.getName());
6161

src/main/java/com/google/genai/ChatBase.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ class ChatBase {
3737
private static final Logger logger = Logger.getLogger(ChatBase.class.getName());
3838

3939
ChatBase(List<Content> comprehensiveHistory, List<Content> curatedHistory) {
40-
this.comprehensiveHistory = new ArrayList<>();
41-
this.curatedHistory = new ArrayList<>();
40+
this.comprehensiveHistory = comprehensiveHistory;
41+
this.curatedHistory = curatedHistory;
4242
}
4343

4444
/**

versions.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Format:
22
# module:released-version:current-version
33

4-
google-genai:1.41.0:1.41.0
4+
google-genai:1.40.0:1.41.0-SNAPSHOT

0 commit comments

Comments
 (0)