Skip to content

Commit c4f685d

Browse files
Update FirebaseVertexAI/Sources/GenerateContentResponse.swift
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent a2e7116 commit c4f685d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

FirebaseVertexAI/Sources/GenerateContentResponse.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,15 +97,15 @@ public struct GenerateContentResponse: Sendable {
9797
)
9898
return []
9999
}
100-
let inlineData: [InlineDataPart] = candidate.content.parts.compactMap { part in
100+
let inlineDataParts: [InlineDataPart] = candidate.content.parts.compactMap { part in
101101
switch part {
102102
case let inlineDataPart as InlineDataPart:
103103
return inlineDataPart
104104
default:
105105
return nil
106106
}
107107
}
108-
return inlineData
108+
return inlineDataParts
109109
}
110110

111111
/// Initializer for SwiftUI previews or tests.

0 commit comments

Comments
 (0)