Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
paulb777 committed Feb 26, 2025
1 parent 7aa43d5 commit 3fefa79
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions FirebaseVertexAI/Sources/GenerativeModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,9 @@ public final class GenerativeModel: Sendable {
isStreaming: true,
options: requestOptions)

var responseIterator = generativeAIService.loadRequestStream(request: generateContentRequest)
.makeAsyncIterator()
return AsyncThrowingStream {
var responseIterator = self.generativeAIService.loadRequestStream(
request: generateContentRequest
).makeAsyncIterator()
let response: GenerateContentResponse?
do {
response = try await responseIterator.next()
Expand Down

0 comments on commit 3fefa79

Please sign in to comment.