Skip to content

Commit dc5942f

Browse files
committed
Merge branch 'dlr/firebaseai-live-api' of github.com:firebase/firebase-ios-sdk into dlr/firebaseai-live-api
2 parents 2b3e3c3 + 6e80ac0 commit dc5942f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

FirebaseAI/Sources/Types/Internal/Live/LiveSessionService.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ actor LiveSessionService {
146146

147147
/// Start a fresh websocket to the backend, and listen for responses.
148148
///
149-
/// Will hold off on sending any messages until the server sends a setupComplete mesage.
149+
/// Will hold off on sending any messages until the server sends a setupComplete message.
150150
///
151151
/// Will also close out the old websocket and the previous long running tasks.
152152
private func listenToServer(_ setupComplete: CheckedContinuation<Void, any Error>) async {

FirebaseAI/Sources/Types/Public/Live/LiveGenerationConfig.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,18 +106,18 @@ public struct LiveGenerationConfig: Sendable {
106106
/// - inputAudioTranscription: Configures (and enables) input transcriptions when streaming to
107107
/// the model.
108108
///
109-
/// Input transcripts are the model's interprutation of audio data sent to it, and they are
110-
/// populated in model responses via ``LiveServerContent``. When this fields is set to `nil`,
109+
/// Input transcripts are the model's interpretation of audio data sent to it, and they are
110+
/// populated in model responses via ``LiveServerContent``. When this field is set to `nil`,
111111
/// input transcripts are not populated in model responses.
112112
/// - outputAudioTranscription: Configures (and enables) output transcriptions when streaming to
113113
/// the model.
114114
///
115115
/// Output transcripts are text representations of the audio the model is sending to the
116116
/// client, and they are populated in model responses via ``LiveServerContent``. When this
117-
/// fields is set to `nil`, output transcripts are not populated in model responses.
117+
/// field is set to `nil`, output transcripts are not populated in model responses.
118118
///
119119
/// > Important: Transcripts are independent to the model turn. This means transcripts may
120-
/// > come earlier or later than when the model sends the corresponding audio responses.
120+
/// > come earlier or later than when the model sends the corresponding audio responses.
121121
public init(temperature: Float? = nil, topP: Float? = nil, topK: Int? = nil,
122122
candidateCount: Int? = nil, maxOutputTokens: Int? = nil,
123123
presencePenalty: Float? = nil, frequencyPenalty: Float? = nil,

FirebaseAI/Sources/Types/Public/Live/LiveServerContent.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,15 @@ public struct LiveServerContent: LiveServerMessage {
4646
///
4747
/// For realtime playback, there will be a delay between when the model finishes generating
4848
/// content and the client has finished playing back the generated content. `generationComplete`
49-
/// indicates that the model is done generating data, while `isturnComplete` indicates the model
49+
/// indicates that the model is done generating data, while `isTurnComplete` indicates the model
5050
/// is waiting for additional client messages. Sending a message during this delay may cause a
5151
/// `wasInterrupted` message to be sent.
5252
///
5353
/// Note that if the model `wasInterrupted`, this will not be set. The model will go from
5454
/// `wasInterrupted` -> `turnComplete`.
5555
public var isGenerationComplete: Bool { serverContent.generationComplete ?? false }
5656

57-
/// Metadata specifing the sources used to ground generated content.
57+
/// Metadata specifying the sources used to ground generated content.
5858
public var groundingMetadata: GroundingMetadata? { serverContent.groundingMetadata }
5959

6060
/// The model's interpretation of what the client said in an audio message.

0 commit comments

Comments
 (0)