Skip to content

Commit a574eb4

Browse files
committed
Fix id decoding
1 parent dd81a84 commit a574eb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

FirebaseAI/Sources/Types/Internal/InternalPart.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ extension FunctionCall: Codable {
139139
} else {
140140
args = JSONObject()
141141
}
142-
id = try container.decode(String.self, forKey: .id)
142+
id = try container.decodeIfPresent(String.self, forKey: .id)
143143
}
144144
}
145145

0 commit comments

Comments
 (0)