Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

LiveConnectConfig missing historyConfig for Gemini Live 3.1

オープン
#974 コメント 1 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@hemasekhar-p がすでに取り組んでいます。

2026年4月30日 から。

  • #1118 @arnabnandy7 による — オープン

評価

この issue はまだ評価されていません。

説明

priority: p2 type: feature request

LiveConnectConfig missing historyConfig for Gemini Live 3.1 history seeding

Description

I am using the Java GenAI SDK with Gemini Live 3.1, but I cannot configure historyConfig in LiveConnectConfig.

The field appears to be required for Gemini Live 3.1 history seeding to work correctly, but in the Java SDK the LiveConnectConfig class does not expose historyConfig.

Because of that, when using Gemini Live 3.1 from Java, the conversation history is not working as expected.

Without historyConfig enabled, the Gemini Live session freezes/hangs when I send conversation history.

Dependency version

com.google.genai
google-genai
1.51.0

Model
gemini-3.1-flash-live-preview
Current behavior

LiveConnectConfig does not contain a historyConfig / history_config field.

Example:

LiveConnectConfig config = LiveConnectConfig.builder()
.responseModalities(List.of(Modality.Known.AUDIO))
.systemInstruction(
Content.builder()
.role("user")
.parts(List.of(Part.fromText(systemPrompt)))
.build()
)
// Missing:
// .historyConfig(...)
.build();

Because this config is missing, initial conversation history does not work correctly with Gemini Live 3.1.

Expected behavior

The Java SDK should expose historyConfig in LiveConnectConfig, similar to other SDKs.

Expected example:

LiveConnectConfig config = LiveConnectConfig.builder()
.responseModalities(List.of(Modality.Known.AUDIO))
.historyConfig(
HistoryConfig.builder()
.initialHistoryInClientContent(true)
.build()
)
.build();
Why this is needed

Gemini Live 3.1 appears to require history configuration for initial history/client content behavior. Without historyConfig, Java users cannot properly seed or continue conversation history when using Gemini Live 3.1.

See 'When migrating from gemini-2.5-flash-native-audio-preview-12-2025 to gemini-3.1-flash-live-preview' in https://github.com/google-gemini/gemini-skills/blob/main/skills/gemini-live-api-dev/SKILL.md

Impact

This blocks Java users from using Gemini Live 3.1 with conversation history properly.

Request

Please add support for historyConfig / HistoryConfig in the Java SDK LiveConnectConfig, similar to the support available in other SDKs.

主要言語
Java
スター
398
フォーク
126
平均マージ
1日 12時間
マージ済み PR(30日)
71

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

googleapis/java-genai のほかの issue

googleapis/java-genai の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。