We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 678e3ca commit 7ffdacbCopy full SHA for 7ffdacb
FirebaseVertexAI/Sources/GenerateContentResponse.swift
@@ -91,10 +91,10 @@ public struct GenerateContentResponse: Sendable {
91
/// Returns inline data parts found in any `Part`s of the first candidate of the response, if any.
92
public var inlineDataParts: [InlineDataPart] {
93
guard let candidate = candidates.first else {
94
- VertexLog.error(
95
- code: .generateContentResponseNoCandidates,
96
- "Could not get inline data parts because the response has no candidates. The accessor only checks the first candidate."
97
- )
+ VertexLog.error(code: .generateContentResponseNoCandidates, """
+ Could not get inline data parts because the response has no candidates. The accessor only \
+ checks the first candidate.
+ """)
98
return []
99
}
100
return candidate.content.parts.compactMap { $0 as? InlineDataPart }
0 commit comments