Skip to content

Commit 839bbca

Browse files
committed
Add FoundationModels import in GenerativeModel
1 parent f50ccbc commit 839bbca

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

FirebaseAI/Sources/GenerativeModel.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
import FirebaseAppCheckInterop
1616
import FirebaseAuthInterop
1717
import Foundation
18+
#if canImport(FoundationModels)
19+
import FoundationModels
20+
#endif // canImport(FoundationModels)
1821

1922
/// A type that represents a remote multimodal model (like Gemini), with the ability to generate
2023
/// content based on various input types.

0 commit comments

Comments
 (0)