LiveConnectConfig missing historyConfig for Gemini Live 3.1
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
Issue này chưa được đánh giá.
Mô tả
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.
- Ngôn ngữ chính
- Java
- Star
- 399
- Fork
- 127
- Merge trung bình
- 1 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 74
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của googleapis/java-genai
-
ResponseStream.close() can block on the reader lock before closing the HTTP responseCó thể đã có người làm @hirematha đã nhận 7 ngày trước. Đang mởpriority: p2 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
googleapis/java-genai#1372 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Interactions API: GaosClientException.getMessage() only returns "400 . API error occurred" and omits the server error detailsCó thể làm lại được @hemasekhar-p đã nhận 31 ngày trước và không có pull request nào đang mở. Đang mởpriority: p2 type: bug
googleapis/java-genai#1282 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Interactions API: store(false) omits "id", breaking Interaction and InteractionCompletedEvent deserializationCó thể làm lại được @hemasekhar-p đã nhận 31 ngày trước và không có pull request nào đang mở. Đang mởpriority: p2 type: bug
googleapis/java-genai#1281 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Interaction.outputText() always returns Optional.empty() (SDK-computed field is never populated)Có thể làm lại được @hemasekhar-p đã nhận 31 ngày trước và không có pull request nào đang mở. Đang mởpriority: p2 type: bug
googleapis/java-genai#1280 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Gen AI with structured output - `propertyOrdering` in Python vs. Java implementationsCó thể đã có người làm @hemasekhar-p đã nhận 85 ngày trước. Đang mởpriority: p3 type: feature request
googleapis/java-genai#1169 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của googleapis/java-genai
Issue tương tự
-
API `/api/dataverses/{identifier}/dataset/linkingDataverses?alreadyLinking=true` returns at most 1 collectionCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởType: Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
javaoperatorsdk.client.oauth-token has no effect on the Kubernetes clientCó thể đã có người làm @RaphaelFakhri đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
MCP add-on: JSON responses with non-ASCII characters are truncated (wrong Content-Length)Có thể đã có người làm @dhanushbs10 đã nhận hôm nay. Đang mởadd-on bug in:mcp
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Map.Coordinate does not implement proper equalsCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởvaadin-map
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
vaadin/flow-components#10586 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
WeReadInstaller writes the launcher database on the main thread at handover (Activity pause timeout)Đang mởbug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100