Skip to content

Commit 7ffdacb

Browse files
Update FirebaseVertexAI/Sources/GenerateContentResponse.swift
Co-authored-by: Andrew Heard <andrewheard@google.com>
1 parent 678e3ca commit 7ffdacb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

FirebaseVertexAI/Sources/GenerateContentResponse.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,10 @@ public struct GenerateContentResponse: Sendable {
9191
/// Returns inline data parts found in any `Part`s of the first candidate of the response, if any.
9292
public var inlineDataParts: [InlineDataPart] {
9393
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-
)
94+
VertexLog.error(code: .generateContentResponseNoCandidates, """
95+
Could not get inline data parts because the response has no candidates. The accessor only \
96+
checks the first candidate.
97+
""")
9898
return []
9999
}
100100
return candidate.content.parts.compactMap { $0 as? InlineDataPart }

0 commit comments

Comments
 (0)