You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update LiveModelFutures to return LiveSessionFutures instead of LiveSession (#6834)
Update the `connect` method of` LiveModelFutures` class to return
`ListenableFuture` instead of `LiveSession`.
This change reduces the burden on Java developers, as they would have to
create a `LiveSessionFutures` object anyway.
Additionally, the `startAudioConverstion` method is now annotated with
`@JvmOverloads` to maintain compatibility with Java.
Copy file name to clipboardExpand all lines: firebase-vertexai/CHANGELOG.md
+7
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,11 @@
1
1
# Unreleased
2
+
*[changed]**Breaking Change**: `LiveModelFutures.connect` now returns `ListenableFuture<LiveSessionFutures>` instead of `ListenableFuture<LiveSession>`.
3
+
***Action Required:** Remove any transformations from LiveSession object to LiveSessionFutures object.
4
+
***Action Required:** Change type of variable handling `LiveModelFutures.connect` to `ListenableFuture<LiveSessionsFutures>`
5
+
*[changed]**Breaking Change**: Removed `UNSPECIFIED` value for enum class `ResponseModality`
6
+
***Action Required:** Remove all references to `ResponseModality.UNSPECIFIED`
7
+
*[changed]**Breaking Change**: Renamed `LiveGenerationConfig.setResponseModalities` to `LiveGenerationConfig.setResponseModality`
8
+
***Action Required:** Replace all references of `LiveGenerationConfig.setResponseModalities` with `LiveGenerationConfig.setResponseModality`
2
9
*[feature] Added support for `HarmBlockThreshold.OFF`. See the
method public abstract com.google.common.util.concurrent.ListenableFuture<kotlin.Unit> send(String text);
133
133
method public abstract com.google.common.util.concurrent.ListenableFuture<kotlin.Unit> sendFunctionResponse(java.util.List<com.google.firebase.vertexai.type.FunctionResponsePart> functionList);
134
134
method public abstract com.google.common.util.concurrent.ListenableFuture<kotlin.Unit> sendMediaStream(java.util.List<com.google.firebase.vertexai.type.MediaData> mediaChunks);
135
+
method public abstract com.google.common.util.concurrent.ListenableFuture<kotlin.Unit> startAudioConversation();
135
136
method public abstract com.google.common.util.concurrent.ListenableFuture<kotlin.Unit> startAudioConversation(kotlin.jvm.functions.Function1<? super com.google.firebase.vertexai.type.FunctionCallPart,com.google.firebase.vertexai.type.FunctionResponsePart>? functionCallHandler);
136
137
method public abstract com.google.common.util.concurrent.ListenableFuture<kotlin.Unit> stopAudioConversation();
method public com.google.firebase.vertexai.type.LiveGenerationConfig.Builder setFrequencyPenalty(Float? frequencyPenalty);
598
599
method public com.google.firebase.vertexai.type.LiveGenerationConfig.Builder setMaxOutputTokens(Integer? maxOutputTokens);
599
600
method public com.google.firebase.vertexai.type.LiveGenerationConfig.Builder setPresencePenalty(Float? presencePenalty);
600
-
method public com.google.firebase.vertexai.type.LiveGenerationConfig.Builder setResponseModalities(com.google.firebase.vertexai.type.ResponseModality? responseModalities);
601
+
method public com.google.firebase.vertexai.type.LiveGenerationConfig.Builder setResponseModality(com.google.firebase.vertexai.type.ResponseModality? responseModality);
601
602
method public com.google.firebase.vertexai.type.LiveGenerationConfig.Builder setSpeechConfig(com.google.firebase.vertexai.type.SpeechConfig? speechConfig);
602
603
method public com.google.firebase.vertexai.type.LiveGenerationConfig.Builder setTemperature(Float? temperature);
603
604
method public com.google.firebase.vertexai.type.LiveGenerationConfig.Builder setTopK(Integer? topK);
0 commit comments